
|
View Full Version : Safe Mode OFF ???
Ivan23 09-07-2002, 01:47 PM ok , just got my server from " RACKSHACK.net " and first thing i notice was that php safe mod was on ? Since " RACKSHACK " wont help me to turn it off, i would like some help
I have ensim control panel <<
how can i turn safe mode off ?
ChickenSteak 09-07-2002, 03:30 PM Just find php.ini, and change safe_mode = off to safe_mode = on
If you need to locate php.ini type in locate php.ini, and it should bring up some possible path's. In order to open up php.ini to edit type pico php.ini, or pico /path/here/to/php.ini
Ivan23 09-07-2002, 03:54 PM can i do this in FTP ???
ChickenSteak 09-07-2002, 03:56 PM No, I strongly dis-advise that. Log into ssh, and do it. If you need help just contact me at brandon@rackeasy.com, and I'll do it for you.
Ivan23 09-07-2002, 04:19 PM i have sent you a email
ChickenSteak 09-07-2002, 04:21 PM Weird, I haven't recieved anything, perhaps send again?
Ivan23 09-07-2002, 06:35 PM ya it came back to me , I'll pm you
Ivan23 09-08-2002, 01:22 AM still having problem , I'm trying to install a photo gallery ( two differents ones ) and both are saying safe mode is on ??
ChickenSteak 09-08-2002, 01:23 AM Hmm, weir'd as the last time I was in your machine I turned it off, did you turn it back on?
Only thing I can think of is that the script's are badly coded.
StevenG 09-08-2002, 08:17 AM Restarted apache?
ChickenSteak 09-08-2002, 10:44 AM Originally posted by Dotcomsnz
Restarted apache? Yea, I did that, I don't know if he did it when he changed it back though hmm.
Find out what function the script is trying to carry out, there are work arounds to leave safe mode on but still run the script.
Ivan23 09-09-2002, 02:03 PM Thanks , it works now .... thanks for all your help !
fas-track 09-10-2002, 04:28 AM I entered his box also, this is what i did and apparently its working now. (Shuts it off for one domain only) (Ensim)
pico /etc/httpd/conf/siteX/php (X = site #)
php_admin_flag safe_mode off
ctrl+x
/etc/rc.d/init.d/httpd restart
Well, I can't safe_mod turn off also...
I'm also on RackShack with Ensim.
phpinfo() just tells me that safe mode (local) is on but safe mode (global) is off. In the php.ini it's disabled. In the httpd.conf I have the following lines:
<IfDefine vwh_php4_module>
LoadModule php4_module modules/libphp4.so
php_admin_flag safe_mode off
</IfDefine>
but after apache restart it's still turned on for the local column.
Anyone can help?
sjau
rlynch 12-10-2002, 01:59 PM isnt turning safe mode off a bad thing?
JasonBD 12-10-2002, 09:59 PM yeah im curious is there a reason to have it on or off? i run servers for 9000 customers and we have it off and we do have about 10 people that do ask for it on but is there a work around or is there something bad with having it off? i just left it to the default off...
Khaless 12-11-2002, 09:09 AM Safe mode is stuctured so when on PHP executes scripts in a restricted environment to decrease the amount of damage that can be inflicted by insecure programs.
Khaless 12-11-2002, 09:11 AM ie with it off sum 1 can do the following:
<?
set_time_limit(0);
ignore_user_abort;
<--insert evil loop here -->
?>
and it will run for an infinite period, and it will still run if the user exits the page.
fas-track 05-21-2003, 07:05 PM To shut safe mode off FOR ONE DOMAIN ONLY on an Ensim Webpplaince (3.0,3.1,3.5) server this is what you do:
You will need to SSH in to your box
#Change to root
su -
#Create this file by typing (replace the X with your site's number)
pico /etc/httpd/conf/siteX/php
#Then type this
php_admin_flag safe_mode off
#Save the file
ctrl X then Y then Enter
#Restart Apache
/etc/rc.d/init.d/httpd restart
This is safer than shutting it off for the whole server, some scripts like gallery need it off.. I would recommend that you know why your client needs it off and only shut it off if you can trust him..
Safe mod off for the entire server can be a big security risk...
opps i forgot this post was so old :dunce:
basilcraft 10-10-2003, 11:43 AM Originally posted by fas-track
To shut safe mode off FOR ONE DOMAIN ONLY on an Ensim Webpplaince (3.0,3.1,3.5) server this is what you do:
You will need to SSH in to your box
#Change to root
su -
#Create this file by typing (replace the X with your site's number)
pico /etc/httpd/conf/siteX/php
#Then type this
php_admin_flag safe_mode off
#Save the file
ctrl X then Y then Enter
#Restart Apache
/etc/rc.d/init.d/httpd restart
This is safer than shutting it off for the whole server, some scripts like gallery need it off.. I would recommend that you know why your client needs it off and only shut it off if you can trust him..
Safe mod off for the entire server can be a big security risk...
opps i forgot this post was so old :dunce:
FAS-TRACK!
On Belhalf of all my small Virtuall Server Community -- THANK YOU!!!:D
Sincerely,
Basil
http://www.mogdalov.com
|