
10th March 2006, 13:11
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
|
|
PHP Problem
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 ?
|

10th March 2006, 15:39
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
You must disable PHP Safe Mode for this web site in ISPConfig.
|

26th March 2006, 01:59
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
|
|
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
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
|

26th March 2006, 10:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
Quote:
|
Originally Posted by nenad
/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 Code:
<?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.
|

26th March 2006, 13:14
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
|
|
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
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
|

26th March 2006, 16:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
|
Originally Posted by nenad
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.
|

26th March 2006, 20:09
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
|
|
It finds:
/etc/php.ini
/root/ispconfig/php/php.ini
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
|

26th June 2006, 22:52
|
|
Senior Member
|
|
Join Date: Jun 2006
Location: Germany, Kaarst
Posts: 152
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
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...
|

27th June 2006, 11:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
|
Originally Posted by schmidtedv
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.
|

27th June 2006, 11:59
|
|
Junior Member
|
|
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 !
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 00:18.
|
|
Recent comments
22 hours 56 min ago
1 day 4 hours ago
1 day 8 hours ago
1 day 10 hours ago
2 days 25 min ago
2 days 31 min ago
2 days 5 hours ago
2 days 12 hours ago
2 days 12 hours ago
2 days 14 hours ago