The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Apache as file owner
#1
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.
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?
Reply


Messages In This Thread
Apache as file owner - by internet54 - 2010-01-09, 07:18:42
Apache as file owner - by Rich - 2010-01-09, 08:07:59
Apache as file owner - by internet54 - 2010-01-09, 08:14:18
Apache as file owner - by ccagle8 - 2010-01-09, 08:44:14
Apache as file owner - by internet54 - 2010-01-09, 08:52:19
Apache as file owner - by internet54 - 2010-01-12, 02:29:28



Users browsing this thread: 1 Guest(s)