PHP safe mode?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP safe mode?

Postby Sean-Michael » 20. September 2006 04:03

Is there a need for me to set up safe mode since I am the only user, or is this something I still need to address to be secure from outside attacks?

If I need to enable safe mode is there a better guide to follow then the one here http://us2.php.net/features.safe-mode? Seems like this guide is aimed more at the advanced users or I'm thinking too hard lol' :D

Thank you for your help!
Sean-Michael
 
Posts: 69
Joined: 17. September 2006 01:37

Re: PHP safe mode?

Postby Izzy » 20. September 2006 04:26

Sean-Michael wrote:Is there a need for me to set up safe mode since I am the only user, or is this something I still need to address to be secure from outside attacks?

If I need to enable safe mode is there a better guide to follow then the one here http://us2.php.net/features.safe-mode? Seems like this guide is aimed more at the advanced users or I'm thinking too hard lol' :D

Thank you for your help!

There is no harm in using Safe Mode in php. If a script you want to use gets all upset by having Safe Mode on then an alternate script should be sought for it. This is all you may have to do:

xampp/apache/bin/php.ini
find this line:
;
; Safe Mode
;
safe_mode = Off


and change it to this:
;
; Safe Mode
;
safe_mode = On

Your done and Safe Mode is set. Read the rest of the related items and set as required.

Save and to be sure, restart Apache.

Check it is indeed activated by using http://localhost and selecting phpinfo() from the menu items and look for the Safe Mode entry.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 58 guests