Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 09:17:22 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155553 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Safe Mode on?  (Read 2396 times)
a2aseppa
Guest
« on: February 02, 2005, 01:13:29 PM »

I have a safe mode on at  server (hosted).

I get this error message when trying to view my pages;

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access ../config.php owned by uid 1163 in /home/users/medium/sites/medium.kapsi.fi/www/wb/pages/testi.php on line 3

Warning: main(../config.php): failed to open stream: Success in /home/users/medium/sites/medium.kapsi.fi/www/wb/pages/testi.php on line 3

Fatal error: main(): Failed opening required '../config.php' (include_path='.:/usr/local/php4-cgi/include/php/:/home/www/smarty/current/libs') in /home/users/medium/sites/medium.kapsi.fi/www/wb/pages/testi.php on line 3


I tried php.cgi and .htaccess trick but ii gave me internal server error.
Any help?
Logged
fienieg
Guest
« Reply #1 on: February 02, 2005, 06:42:29 PM »

That's the safe mode... at least that's one of your problems. Try persueding your hosting company to turn it off!
Logged
Christian

Offline Offline

Posts: 108


WWW
« Reply #2 on: February 02, 2005, 11:50:38 PM »

Quote from: a2aseppa
I have a safe mode on at  server (hosted).

I get this error message when trying to view my pages;

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access ../config.php owned by uid 1163 in /home/users/medium/sites/medium.kapsi.fi/www/wb/pages/testi.php on line 3

Warning: main(../config.php): failed to open stream: Success in /home/users/medium/sites/medium.kapsi.fi/www/wb/pages/testi.php on line 3

Fatal error: main(): Failed opening required '../config.php' (include_path='.:/usr/local/php4-cgi/include/php/:/home/www/smarty/current/libs') in /home/users/medium/sites/medium.kapsi.fi/www/wb/pages/testi.php on line 3


I tried php.cgi and .htaccess trick but ii gave me internal server error.
Any help?


Hi, download the files in /pages-Directory for test per ftp to your pc, then delete the files in /pages - Directory on your Webserver, then upload files per ftp to pages directory, this will set the owner of files to ftp:ftp, and it will run. Or turn safe mode off...
Logged
a2aseppa
Guest
« Reply #3 on: February 04, 2005, 08:07:09 AM »

I tried yor tip and it gave me an error when I tried to view pages:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@kapsi.fi and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


I am not sure should there be more info in php.cgi file? now there's only one line: #!/usr/bin/php4

And in .htaccess there's this:
RemoveHandler .php
AddType application/cgi-php php
Action application/cgi-php /wb/pages/php.cgi
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!