Results 1 to 7 of 7
Thread: Apache problem
-
05-04-2006, 04:12 AM #1Junior Guru
- Join Date
- Mar 2005
- Posts
- 196
Apache problem
I use cPanel server and I have a problem:
When php script creates a file it seems that its owner and group becaomes automatically 'nobody'. It makes more difficult to use these created files because of that.
How could I change this setting?
-
05-29-2006, 10:15 AM #2Web Hosting Guru
- Join Date
- May 2006
- Location
- Teh Interweb
- Posts
- 314
In your apache config file you can set apache to run as a specific user and group in the VirtualHost directive.
Example:
Code:<VirtualHost 10.1.2.3> ServerAdmin webmaster@host.foo.com DocumentRoot /www/docs/host.foo.com ServerName host.foo.com ErrorLog logs/host.foo.com-error_log TransferLog logs/host.foo.com-access_log User: username Group: groupname </VirtualHost>
-
05-29-2006, 10:19 AM #3Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
Look into using PHP suEXEC Support.
Edit: Nevermind, that's what I get for skimming through a post.Last edited by Patrick; 05-29-2006 at 10:31 AM.
-
05-29-2006, 10:27 AM #4Engineer
- Join Date
- Jan 2005
- Location
- Scotland, UK
- Posts
- 2,681
Originally Posted by Pat HServer Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
Check our wordpress varnish plugin. Contact us for quote: sales@admingeekz.com
-
05-29-2006, 10:30 AM #5Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
Originally Posted by Scott.Mc
However, he would still have to know what site is creating these nobody files in order to change the User/Group.
-
06-29-2006, 01:19 PM #6Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 30
When I goto my httpd.conf and set apache to run as
user apache
group apache
(Used to be nobody,nobody)
All of my webpages return 403 errors..
If I login to the server and try to su to user apache I get
'this account is currently not available'
But id apache
returns that the group and user exists..
-
06-29-2006, 01:59 PM #7Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 30
Chmod all web directories to public_html to 755 fixed this, but is that what I should have done?