Safe_mode

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Rawhead
Forum Newbie
Posts: 11
Joined: Wed Aug 07, 2002 3:46 pm
Location: Houston, Tx
Contact:

Safe_mode

Post by Rawhead »

Rawhead has a server

Rawheads php.ini says that safe_mode = Off

Rawhead views his phpinfo.php and ses that it IS enabled

Why is this happening?

okay next question, two trains leave going in oposite directions

train "a" is going 50. Train "b" is going 65

How long before they run out of coffee and start canablizing each other? :D

Seriously, why is this happening with the php??
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

ahhaha, you're bad ass ;D
Image Image
User avatar
Rawhead
Forum Newbie
Posts: 11
Joined: Wed Aug 07, 2002 3:46 pm
Location: Houston, Tx
Contact:

Post by Rawhead »

:idea: I think that I can achive nervana by looking in in /etc/httpd/conf/httpd.conf, looking near the end and changing the line "php_admin_flag safe_mode on" to off.

Whatcha think? :P
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

4 hours 22 minutes and 26 seconds
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

"achieve nirvana"

lmfao :lol:
User avatar
Rawhead
Forum Newbie
Posts: 11
Joined: Wed Aug 07, 2002 3:46 pm
Location: Houston, Tx
Contact:

DANG IT!!!

Post by Rawhead »

I have safe_mode off in both the php.ini AND in the httpd.conf stll on my phpinfo page it's re4turned as enabled WHY!! please help.
Thanks in advance
User avatar
Rawhead
Forum Newbie
Posts: 11
Joined: Wed Aug 07, 2002 3:46 pm
Location: Houston, Tx
Contact:

Post by Rawhead »

IT LiVES!!!!!!!! MUHAHAHAHAHAH
If you absolutely have to you can easily unset safe mode on individual sites:

Create a file (any name, I'd call it php) in /etc/httpd/conf/site<n>/ with the line

php_admin_flag safe_mode off

Restart Apache and you're done.
I truly hope this helps someone, it took too dang long to figure this out on my own.
Post Reply