2010-01-09, 07:18:42
Ok, I ran into another problem.
I developed the entire website on my localhost machine. Everything worked flawlessly.
Uploading the site has been interesting.
I now understand the system needs file permissions on /data/ and /backups/ AND their sub dirs as 777.
I also understand that the system creates its own .xml files with the permissions as 644, and the server STILL writes to them.
Here is my problem. I installed GS and then uploaded my data. The site visually runs great for the visitor and there are no problems on the front end. However, the backend is where the issue lies. My files were uploaded via FTP and the files were labeled with my login's user (typical of all servers). So my pages have the file owner as user:user. Then comes the problem...
Example:
mypage.xml (chown = user:user)
^ This is NOT editable by GS. When I login to the admin panel and edit the page it throws an error stating that I don't have permission. However, I can create as many new pages as I want.
Here's my research. The new pages that are created are like this...
Example:
mypage2.xml (chown = apache:apache)
^ This page is FULLY editable by GS. However, the owner is apache and I cannot do anything to the file outside of GS. I can't modify the file in FTP, or in my hosting control panel because the user is apache instead of user.
------------------
I think this needs to be addressed as it gives people no option but to have SSH access to change the owner of the files to apache:apache when they upload a completed site to the web.
I hope this makes sense.
I developed the entire website on my localhost machine. Everything worked flawlessly.
Uploading the site has been interesting.
I now understand the system needs file permissions on /data/ and /backups/ AND their sub dirs as 777.
I also understand that the system creates its own .xml files with the permissions as 644, and the server STILL writes to them.
Here is my problem. I installed GS and then uploaded my data. The site visually runs great for the visitor and there are no problems on the front end. However, the backend is where the issue lies. My files were uploaded via FTP and the files were labeled with my login's user (typical of all servers). So my pages have the file owner as user:user. Then comes the problem...
Example:
mypage.xml (chown = user:user)
^ This is NOT editable by GS. When I login to the admin panel and edit the page it throws an error stating that I don't have permission. However, I can create as many new pages as I want.
Here's my research. The new pages that are created are like this...
Example:
mypage2.xml (chown = apache:apache)
^ This page is FULLY editable by GS. However, the owner is apache and I cannot do anything to the file outside of GS. I can't modify the file in FTP, or in my hosting control panel because the user is apache instead of user.
------------------
I think this needs to be addressed as it gives people no option but to have SSH access to change the owner of the files to apache:apache when they upload a completed site to the web.
I hope this makes sense.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.
Have you ever coded in your underwear before?
Have you ever coded in your underwear before?