#1  
Old 1st April 2008, 08:01
v2k v2k is offline
Member
 
Join Date: Sep 2007
Location: Vancouver, Canada
Posts: 93
Thanks: 3
Thanked 1 Time in 1 Post
Default PHP's user

Running perfect setup fedora 7.

Warning: imagepng() [function.imagepng]: SAFE MODE Restriction in effect. The script whose uid is 500 is not allowed to access /var/www/html/test owned by uid 48 in /var/www/html/test.php on line 139

apache is user 48 and that's the user that is running apache. however, php is running as another user on the system. how do I get it to run php using the apache user?
Reply With Quote
Sponsored Links
  #2  
Old 1st April 2008, 13:08
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

You cannot do that if you are using safe mode http://www.php.net/manual/en/features.safe-mode.php
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 1st April 2008, 19:01
v2k v2k is offline
Member
 
Join Date: Sep 2007
Location: Vancouver, Canada
Posts: 93
Thanks: 3
Thanked 1 Time in 1 Post
 
Default

I was just trying to get everything running through safe_mode. I think what was happening is that not all the php files were owned by apache. So when it included some files by other users it switched its uid. I did a:

chown -hR apache /html/*

and that seems to have worked on my test server.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hacking attack (ubuntu 7.04 server + local root exploit on kernel) smoko General 4 15th September 2013 05:05
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Anything I can do against illegal login-requests? schmidtedv Installation/Configuration 17 7th November 2008 09:25
Ruby / FastCGI Problem Chad Server Operation 1 8th March 2008 20:38
log files cruz Technical 3 15th May 2007 14:35


All times are GMT +2. The time now is 16:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.