PDA

View Full Version : PHP Problem


nenad
10th March 2006, 14:11
Hi,

I set up ISPCOnfig on Fedora Core 3.
I insatlled Joomla!

And I have a PHP problem:

I can't turn off "safe mode".
It is set as "off" in php.ini

When I look at php info, there is information that:
Local value for "Safe mode" is: ON
Master value for "Safe Mode" is: OFF

How can I set "LOCAL" value for php.ini ?
And what are "local" and "master" values anyway ?

falko
10th March 2006, 16:39
You must disable PHP Safe Mode for this web site in ISPConfig.

nenad
26th March 2006, 03:59
How to change:

memory_limit 8M 8M

to 16M or 32M

Changes in
/root/ispconfig/php/php.ini
or
/etc/php.ini

are accepted but not applied

falko
26th March 2006, 11:52
/root/ispconfig/php/php.ini That's the php.ini of ISPConfig, it has nothing to do with your main PHP.

Please create a PHP script with
<?php
phpinfo();
?>
in it and access it in your browser. It will tell you the location of your php.ini. Then modify it and don't forget to restart Apache.

nenad
26th March 2006, 14:14
I prefer:

updatedb
locate php.ini

which gives me again:
/etc/php.ini

The problem was that I forgot to restart httpd

Thanx a lot for remiding me! :)

P.S.
But I your sript too ;-)
http://www.web-hosting-solutions.biz/phpinfo.php

till
26th March 2006, 17:07
I prefer:

updatedb
locate php.ini

which gives me again:
/etc/php.ini

A general remark: This finds a file named php.ini. This must not be the php.ini used by your PHP setup.

nenad
26th March 2006, 21:09
It finds:

/etc/php.ini
/root/ispconfig/php/php.ini

schmidtedv
26th June 2006, 23:52
well, if I should disable popen() and proc_open() -functions in php.ini...should this be enough to change it for the user-webs or should / can I disable them in the ispconfig-php.ini too??

See http://www.heise.de/security/news/meldung/73837 for info...

till
27th June 2006, 12:21
well, if I should disable popen() and proc_open() -functions in php.ini...should this be enough to change it for the user-webs or should / can I disable them in the ispconfig-php.ini too??

See http://www.heise.de/security/news/meldung/73837 for info...

That popen is similar to exec is not really new as Heise described themself. It is a good idea to disable it for users, when you users do not use these functions. But ISPConfig uses popen in several scripts so it is a bad idea to disable it in the ispconfig php.ini.

davemacd
27th June 2006, 12:59
I had a similar type of issue where my script (Gallery) was telling me that safe mode was on. I checked the php.ini file and safe mode was definitely set to off.

I then realised that phpinfo was telling me that local mode was on (ie: safe mode was enabled for the site I was calling the script from) even though the global setting was off.

After much investigation I found the file;

/etc/apache2/vhosts/Vhosts_ispconfig.conf

And sure enough there were entries in there

php_admin_flag safe_mode On

I amended this to Off.

There were two entries, one specific to my site but another which I assume is the default variable. I also switched that off.

Once restarting apache all is working great.

Don't know if this is the correct way to resolve it but it works for me !

till
27th June 2006, 13:01
Don't know if this is the correct way to resolve it but it works for me !

If you disable it this way, safemode is on again when you change anything in ISPConfig.

The correct solution is really simple, uncheck the PHP safe mode option in settings of this website.

davemacd
27th June 2006, 13:32
AH !!

I didn't even see that setting in ISPCONFIG !

So silly - thanks :)