GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   php how do i disable safe mode (https://gfy.com/showthread.php?t=536106)

horseygirl 11-03-2005 12:59 PM

php how do i disable safe mode
 
hi guys. im trying to disable safe mode but have no idea where the php.ini file is and even what to do with it when i find it. im hosted by lycos that will allow it to be changed. please help and keep it simple im a girl. lol xxxx

directfiesta 11-03-2005 05:04 PM

Lycos... You don't have access to that file.

It would be located at:

/usr/local/cpanel/3rdparty/etc

php.ini

Why do you need access to it ?

AdultEUhost 11-03-2005 06:30 PM

There is another topic about this, use search to find it :)

horseygirl 11-03-2005 07:23 PM

to install a script i found to make comus work

directfiesta 11-04-2005 08:48 AM

Quote:

Originally Posted by horseygirl
to install a script i found to make comus work

To make sure, upload to your server a phpinfo.php file :

PHP Code:

<?php phpinfo(); ?>

Check in configuration core, about 3/4 down. You will see :

safe_mode Off Off

If they are on, you can try to get Lycos to edit their php.ini file, but don't count on it.

Or change to a normal host that will have everything setup from the start for his clients:

http://www.pdghosting.com/phpinfo.php


Good luck

ragingdick 11-05-2005 08:18 AM

I know you need to turn it off in the php.ini as said above... I'm more than likely wrong but can't it also be overridden using .htaccess?

maybe i am thinking of register_globals... :Oh crap

grumpy 11-06-2005 04:09 AM

http://www.php.net/manual/en/function.ini-set.php

will be something like this string ini_set ( string varname, string newvalue )

sample
result=ini_set(safe_mode,false);
put it at the top of your script.

nakki 11-06-2005 12:24 PM

Sorry, but it can't be changed with .htaccess, and ini_set won't have any effect either. I don't really see Lycos changing their php.ini either, so think your best bet would be to find a new host that doesn't have safe mode on..

directfiesta 11-06-2005 03:51 PM

Quote:

Originally Posted by nakki
Sorry, but it can't be changed with .htaccess, and ini_set won't have any effect either. I don't really see Lycos changing their php.ini either, so think your best bet would be to find a new host that doesn't have safe mode on..

Definitively easier, but some stay were they are.

So in thaty case, if safe_mode is ON, you can always add to the apache config file ( or get them to add ....):

[HTML]<VirtualHost ***.***.***.***>
ServerAlias www.domain.net domain.net
ServerAdmin [email protected]
DocumentRoot /home/domain/public_html
php_admin_flag safe_mode Off
BytesLog domlogs/domain.net-bytes_log
ServerName www.domain.net
User domain
Group domain
CustomLog domlogs/domain.net combined
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
</VirtualHost>[/HTML]


please note the added line:

php_admin_flag safe_mode Off


or this other one, but not both at the same time:

php_admin_value safe_mode 0


All times are GMT -7. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123