Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-23-2009 15:41:39

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Unable to edit Display Include

Hi

I'm trying to edit the Skin Widget Account Menu from within CCP7's control panel.
All I want to do is change "Send Contact Message" to "Contact us".

When I click "Submit" I get a 501/505 error and the change doesn't register.

If I try to upload a modified file (skinwidgetaccount.php), I don't have sufficient permissions, and don't really want to be changing CORE permissions...

Any ideas?

Kind regards
Paul

Offline

 

#2 08-23-2009 16:16:38

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

Change the permissions on the CCP private directory and all of the directories and files under it to 777 and see if it resolves the problem. If it does you'll want to do the same thing for the public skins and media directories and files too.

Offline

 

#3 08-23-2009 16:25:27

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

Thanks for the quick response, Dave.
Unable to change the permissions via FTP or CPanel - is this something only the hosting co can change?

(For some reason the folder shows the owner as "99" - not seen that before)

Kind regards
Paul

Last edited by NicheDev (08-23-2009 16:27:13)

Offline

 

#4 08-23-2009 16:26:12

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

Shouldn't be but if you can't do it then your provider certainly can.

Offline

 

#5 08-24-2009 15:27:52

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

Ok, the hostco changed the store-private permissions (and all folders and files beneath it) to 0777. It made no difference, I can't save the modified skinwidgetaccount.php file to the site, nor can I FTP it.

I notice that if I FTP to the site and try to open the store-private/core/CORE folder, I can't. The folder won't open. Other CORE folders do open, though.

I have no trouble FTP'ing the entire CORE folder to my desktop - I can then see all the files therein and edit them if I want to, but I can't upload them back up to the server again.

The CORE folder (and several others including downloads, media, skins, uploads, utilities and the main config.php file in the root, are all shown as owned by "99" which I assume is the webserver/Apache (?), whereas most other folders are owned by my account name. Is that how things should be set? It's a new CCP7 installation, not a 6 to 7 upgrade.

Any ideas please? Sorry if this is a newbie question.

Kind regards
Paul

Last edited by NicheDev (08-24-2009 15:29:06)

Offline

 

#6 08-24-2009 15:39:38

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

Sounds like the ownership isn't correct either for some reason (unrelated to how CCP sets the permissions during installation).  Back to your provider to get the ownership problem straightened out.

Offline

 

#7 08-24-2009 15:45:32

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

Should ownership of all the folders be in my username rather than 99(Apache)? (another newbie question no doubt, but I just don't want to break CCP or jeopardise its security)

And if it turns out that ownership was the cause of these issues rather than permissions, should I then revert the store-private folder and its files back to 0755?

Regards
Paul
(always learning...)

Last edited by NicheDev (08-24-2009 16:46:10)

Offline

 

#8 08-25-2009 06:01:34

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

Depends on the host setup but usually yes.  You don't want to change the permissions after the ownership change.

Offline

 

#9 08-25-2009 10:52:45

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

Thanks Dave. I'm finding out more and more things about CCP7 every day. In the process I'm learning more about CSS, PHP and a host of other things.
Great software, guys - you obviously have a passion for what you do.

Paul

Offline

 

#10 08-25-2009 11:02:15

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

One can learn about all of those things forever smile  After 30+ years of computer "stuff" I still learn something new every day.

Offline

 

#11 08-25-2009 14:20:39

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

I bet you do!

Erm, I still have the above issue, sorry.

My host changed ownership of all the folders/files to my hosting account username, but I still can't save my changes to skinwidgets_account.php via CCP7 control panel. I keep getting that 501 error on clicking "submit".

From within my FTP program (WinSCP) I can see the CORE folder but can't open it. If I rename it to say CORE1, I CAN then open it. I rename back to CORE and cannot open it.

From within my webhosting cPanel>File Manager I can see the CORE folder AND open it, AND modify and save  skinwidget_account.php.

I just can't do it from within CCP7...

Kind regards
Paul

Offline

 

#12 08-25-2009 14:30:50

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

It has to be an ownership/permissions issue Paul and your host is going to have to sort it out.  Unfortunately there is no one answer/solution to how things are set up since just about every provider does it differently (the joys of flexibility). From what you've described the key seems to be that the group owner of the files needs to include the user that the web server runs as.

Offline

 

#13 08-26-2009 10:18:19

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

The hosting people changed a couple of things.
Now I can edit the various php files from within CCP7 and save them to the server. That works fine.
Except that when the file is saved to the server, it looks like the script isn't changing the files content but deletes it and then recreates it using the new content, which then causes a change in owner/group permissions FROM "hosting username" / 0777  TO "99" / 0755.

The result is that I can't FTP updated files to the webserver, nor can I change ownership of the files that have been modified within CCP7. I suppose neither of those is a major issue, but it does stop me from using DW to modify files locally and then FTP to the site. The only workround I can see is to modify within DW, copy and paste the new code to the php file within CCP7, and save to the server. Hardly ergonomic.

This is getting a bit complicated. What's the way forward, Dave?

Kind regards
Paul

Offline

 

#14 08-26-2009 10:36:01

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

A different host?  Gosh knows what in the world they're doing or why but it is unlike anything I've ever run across.

Offline

 

#15 08-26-2009 11:18:37

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

We've been with them for years with a couple of other ecommerce sites. They've been absolutely great.

I need to narrow this down and there's no-one else I can ask - the hostco and cart supplier blame each other and I'm kinda stuck in the middle.

1. On a typical CCP7 installation on a shared server, who should own the CORE files - the webserver (99) or my hostco username?

2. And for, say, the CORE folder and everything below it, permissions should be 0777 (or better, 0755)?

3. CCP7 updates the php file on saving through its control panel, it doesn't delete then recreate the file?

4. I should be able to edit the php files within CCP7 if I want to, AND FTP modified copies to the webserver if I want to, yes? They're not mutually exclusive? And to achieve that, what ownerships are needed?

Sorry this is dragging on, Dave, it's wasting a lot of time and I just want to get the site running. It certainly feels like an ownership thing but like most hands-on business guys my knowledge is limited and sometimes we need a little hand-holding...

Kind regards
Paul

Offline

 

#16 08-26-2009 11:48:08

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

1. The web server process creates them and owner and group depends on the providers setup.

2. 777

3. It simply writes the contents.

4. Yes.  Depends entirely on your provider Paul.  With permissions at 777 with your id as the owner the web server would typically be in the group owner group so it or your ID would be able to modify the contents.

Offline

 

#17 08-26-2009 12:33:51

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

>>>3. It simply writes the contents.

That's not what seems to be happening.
If the 'ownership' changes from me to "99" when I ask CCP to make changes to the file contents, then surely CCP is removing it and re-creating it, because I assume CCP doesn't have the necessary privileges to change the owner to another user, so surely if it's changing the owner to itself it must be removing the file and re-creating it?

P.S.
Just received from the hosting co:
I suspect it's the way PHP is dealing with the file that is removing and re-creating it, rather than their script doing it. Unless you can get the script to create the files with 666 or 777 permissions then you'll not be able to edit the file via FTP.

Last edited by NicheDev (08-26-2009 12:35:52)

Offline

 

#18 08-26-2009 12:49:33

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

I stand corrected.  When files are updated they are removed first then written.

Offline

 

#19 08-26-2009 12:55:48

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

No problem, Dave, we're both working towards a solution.

So the hostco says: Unless you can get the script to create the files with 666 or 777 permissions then you'll not be able to edit the file via FTP.

Can that be done?

Am I really the only one with this issue?

Regards
Paul

Offline

 

#20 08-26-2009 12:59:24

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

The default permissions in V7 are 755. If you look near the top of admin.php you'll see 3 variables that contain 755 as their value.  Try changing the first one of those to 777 and see if it improves things.

Offline

 

#21 08-26-2009 16:06:41

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

Initially that didn't make any difference to the FTP access issue, but after clearing all local caches I retried and now I can access the php files via the CCP7 dashboard AND my FTP client. Which is what I've been trying to achieve all along! A great big thank you Dave for your patience.

Do I need to do anything with admin.php now re the change to 777?

And finally, is security jeopardised by any of this?

Kind regards
Paul

Offline

 

#22 08-26-2009 16:12:02

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

No x2.

The things some providers do just make me want to scream smile

Last edited by Dave (08-26-2009 16:12:29)

Offline

 

#23 08-26-2009 16:16:32

NicheDev
Member
Registered: 02-04-2009
Posts: 152

Re: Unable to edit Display Include

Nearly as bad as newbies, huh?  smile
Thanks again!
Paul

Offline

 

#24 08-26-2009 16:26:55

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Unable to edit Display Include

NicheDev wrote:

Nearly as bad as newbies, huh?  smile

Naw, not at all.  Glad we got you sorted out finally.

Offline

 

Board footer