How to disable the safe mode

tommyswf

Joined: 2003-05-02
Posts: 1
Posted: Fri, 2003-05-02 17:15

hi i cant install the software, because it said my server safe mode is enable and how i can disable it?

and where can i go to disable it?

------
psa v2.5.5_build020809.88 os_FreeBSD 4.1-4.4

Gallery URL (optional but very useful): http://www.tommyswf.com/gallery/setup/index.php
Gallery version: 1.3.3
PHP version (don't just say PHP 4, please): PHP v4.1.0
Operating system: FreeBSD 4.4-RELEASE

 
switch
switch's picture

Joined: 2003-05-02
Posts: 11
Posted: Fri, 2003-05-02 18:16

Safe mode is a PHP setting via php.ini. Unless you're running this on your own server (or happen to have root), you'll need to ask your ISP about getting out o safe mode.

For more information, check the php manual on Safe Mode -
http://www.php.net/manual/en/features.safe-mode.php

 
fatcpu

Joined: 2003-05-02
Posts: 3
Posted: Fri, 2003-05-02 23:46

Could you please finish... If I do have root, how can I change it? In this case where are the files and how do you change it? Php.net seems not so helpful or tell you as to how to do it and when I saw the heading, "exactly what I needed", only to find the person didn't finish what he started. So please continue...I'm using MD9.1 and I don't think that makes any difference, I just need to know how to turn off the safe mode. Thanks :sad:

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2003-05-02 23:53

Well, generally if you don't know whether you have root access, you probably don't. If you do, you will usually have an idea of what to do. Basically:

Edit your php.ini file as root. In my case it's in /usr/local/lib/php.ini. Your case may vary, but that's a likely place to look. If you point your browser to gallery/setup/phpinfo.php, you'll see the path up near the top.

Then, search the file for the line:

safe_mode on

and make the obvious adjustment to "off". Then restart your Apache webserver. Since how to do this varies on your installation, read the instructions <!-- BBCode Start --><A HREF="http://httpd.apache.org/docs/stopping.html" TARGET="_blank">here</A><!-- BBCode End -->. You still need to be logged in as root to do this.

That's all she wrote.
-Beckett (

)

 
fatcpu

Joined: 2003-05-02
Posts: 3
Posted: Sat, 2003-05-03 16:44

Thanks for your fast reply. Like I said I'm using MD9.1 and it's not there or under where it should be. There must be something more sinister than this newbie can understand or comprehend, I guess. It supposed to be under "etc" but I can't find it. It's not under hidden files either. I'll have to go to Mandrake forum and ask there, perhaps? :sad: Regardless, ur fast response was greatly appreciated- no deafeat only the strategic retreat here.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sat, 2003-05-03 16:56

Try /etc/php/php.ini also; if not, ya, ask in the mandrake forums. Also, if you have the appropriate software, you can do this

(as root)

# updatedb (will take a while)
# locate php.ini

That should give you some clue as to where it is

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sat, 2003-05-03 16:58

Beckett said:

Quote:
If you point your browser to gallery/setup/phpinfo.php, you'll see the path up near the top.

So that should find it for you. If for some reason that doesn't work, type this at the command line:

find / -name php.ini -print

go away and make a coffee, and come back to a list of every file on your machine with that name

 
fatcpu

Joined: 2003-05-02
Posts: 3
Posted: Sat, 2003-05-03 18:22

I had no patience, I tried all and failed so I just copied one from the documentaion and renamed it stuffed under 'etc" because thats where it was originally supposely under. If hell comes to visit, I'll just delete it. Thanks you all :lol:

 
twixy

Joined: 2007-04-11
Posts: 5
Posted: Wed, 2007-04-11 12:41

i have ftp commander and i cant find my php.ini where else should i look for it???