Help - Search - Members - Calendar
Full Version: Safe Mode Restriction
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
DanH42
My PHP page keeps giving me the error:

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 177601 is not allowed to access (the PHP file) owned by uid 2001 in (another PHP file) on line 1

This sounds like a problem with the hosting, not the PHP. How do I turn Safe Mode off?
NaRzY
Safe Mode (PHP) is a ON to protect the servers and will not be turned off.
JROUD
I have the same problem:

Warning: scandir() [function.scandir]: SAFE MODE Restriction in effect. The script whose uid is 56724 is not allowed to access /www/uuuq.com/p/r/i/pristanishe/htdocs owned by uid 2003 in /www/uuuq.com/p/r/i/pristanishe/htdocs/manager.php on line 40

QUOTE
Safe Mode (PHP) is a ON to protect the servers and will not be turned off.

No! Safe mode is on in order to earn money! angry.gif
What is threat in this functions use?
DanH42
QUOTE(NaRzY @ Sep 4 2009, 11:05 AM) *
Safe Mode (PHP) is a ON to protect the servers and will not be turned off.

Ok, but WHY? I'm not doing anything to harm the servers. Shouldn't there be some process in place to disable Safe Mode?
Banjo
QUOTE(JROUD @ Sep 5 2009, 07:33 PM) *
I have the same problem:

Warning: scandir() [function.scandir]: SAFE MODE Restriction in effect. The script whose uid is 56724 is not allowed to access /www/uuuq.com/p/r/i/pristanishe/htdocs owned by uid 2003 in /www/uuuq.com/p/r/i/pristanishe/htdocs/manager.php on line 40
No! Safe mode is on in order to earn money! angry.gif
What is threat in this functions use?


It really isn't, people who will abuse the service such as phishers or w/e won't pay the money to use it especially when they know if they get caught their account will be banned and it would be a waste or money. It's to ensure legit users use it.


QUOTE(DanH42 @ Sep 5 2009, 09:54 PM) *
Ok, but WHY? I'm not doing anything to harm the servers. Shouldn't there be some process in place to disable Safe Mode?


You may not be, but others will. It's for security.
JROUD
QUOTE
It really isn't, people who will abuse the service such as phishers or w/e won't pay the money to use it especially when they know if they get caught their account will be banned and it would be a waste or money. It's to ensure legit users use it.

Yes, but how it relates to the FS functions?
swordz
JROUD - your problem isn't actually to do with safe mode. Please go onto the IRC and ask to Ed. Tell him you have web server user issues and he should know what to do.

Swordz
Ed
Safe mode protects you just as much as it protects the server, it basically says, only files with the same permissions as the file accessing it can be accessed, the problem arises with uploads, when a file is uploaded the permissions are that of the webserver, not your user, so safe mode refuses to access it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.