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? ------ Gallery URL (optional but very useful): http://www.tommyswf.com/gallery/setup/index.php |
|
Posts: 11
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
Posts: 3
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:
Posts: 3474
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 (
)
Posts: 3
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.
Posts: 8194
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
Posts: 3473
Beckett said:
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
Posts: 3
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:
Posts: 5
i have ftp commander and i cant find my php.ini where else should i look for it???