Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

safe mode caused error messages 1

Status
Not open for further replies.

leegold2

Technical User
Oct 10, 2004
116
Hi,

When I turned on safe mode I got the folowing error messages in my PHP scripts. i was wondering if anyone could tell me what safe mode did and how to fix? Thanks:


Warning: main() [function.main]: SAFE MODE Restriction in effect. The script whose uid is 10374241 is not allowed to access /usr/local/php/HTML/Table.php owned by uid 0 in /htdocs/htget/search013.php on line 41

Warning: main(HTML/Table.php) [function.main]: failed to open stream: No such file or directory in /htdocs/htget/search013.php on line 41

Fatal error: main() [function.require]: Failed opening required 'HTML/Table.php' (include_path='.:/usr/local/lib/php') in /htdocs/htget/search013.php on line 41
 
This is explained in the PHP online manual section titled "Safe Mode".

But to quote the page:

When safe_mode is on, PHP checks to see if the owner of the current script matches the owner of the file to be operated on by a file function or its directory.

The user with a UID on a unix-like OS is nearly always root. Change ownership of the file so that it matches the user as which your web server runs.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top