PHP in Local 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
clothahump
Forum Newbie
Posts: 10
Joined: Mon Jan 13, 2003 4:34 am

PHP in Local safe mode?

Post by clothahump »

I am seriously hoping there is someone about that can help me.
How do I turn off local safe mode?
These are the current settings.
http://www.eheim-uk.com/phpinfo.htm
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Is this your own, or a hosts server?

Mac
clothahump
Forum Newbie
Posts: 10
Joined: Mon Jan 13, 2003 4:34 am

Post by clothahump »

The server is leased.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If you have access to the php.ini then the settings can be changed there:
http://www.php.net/manual/en/features.safe-mode.php

Mac
clothahump
Forum Newbie
Posts: 10
Joined: Mon Jan 13, 2003 4:34 am

Post by clothahump »

I am php illiterate, so do I just configure php_ini the same as shown in the link?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Adjusting the values to the defaults should un-safe_mode the server. I would assume (having never used safe mode) that changing:

Code: Select all

safe_mode = On
to

Code: Select all

safe_mode = Off
should make it go away.

Mac
clothahump
Forum Newbie
Posts: 10
Joined: Mon Jan 13, 2003 4:34 am

Post by clothahump »

Mac, the problem is that Global is OFF, Local is ON.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Apparently (I have to run PHP on IIS so I don't get to play with this stuff) you can set PHP config variables in Apache's configuration files, so maybe the guys who set up your server hid the stuff there:
http://www.php.net/manual/en/configuration.changes.php

Mac
clothahump
Forum Newbie
Posts: 10
Joined: Mon Jan 13, 2003 4:34 am

Post by clothahump »

Unable to reach Apache config or php config, owners have got us locked out of those areas.
clothahump
Forum Newbie
Posts: 10
Joined: Mon Jan 13, 2003 4:34 am

Post by clothahump »

If I can get a new conf file and drop it in here would it work?
/etc/httpd/conf
clothahump
Forum Newbie
Posts: 10
Joined: Mon Jan 13, 2003 4:34 am

Post by clothahump »

Any Ideas?
clothahump
Forum Newbie
Posts: 10
Joined: Mon Jan 13, 2003 4:34 am

Post by clothahump »

If I replace the php.ini file with the new one available from php.net and restart the server will it cure this problem?
We are getting totally fed up with the whole thing.
One of the web sites on the server is unable to install phpBB2 because of the same problem.
HELP.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I'm not entirely certain but wouldn't make too much sense otherwise.
Some settings can only be done in the global php.ini or global httpd.conf and safe-mode settings are certainly amongst them. So my answer is: not without access to the global config-files and/or apache-start-scripts.
Post Reply