Obsolete Releases > SME 8.x Contribs
Changing php.ini question
rogerbodger:
I'm sure I must be making a quite basic mistake, but can't see what I'm doing wrong, hopefully someone can point out where I'm going wrong ....
I'm trying to install itop in an ibay (named itop) on my SME 8.0 server, but the installer is complaining that magic_quotes_gpc is set to On and needs to be set to Off.
I've created a templates-custom directory
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
and copied the 40DataHandling file
cp /etc/e-smith/templates/etc/php.ini/40DataHandling /etc/e-smith/templates-custom/etc/php.ini
In 40DataHandling, I've added magic_quotes_gpc = Off, then expanded the template expand-template /etc/php.ini
I then modified the ibay signal-event ibay-modify itop (and I've even rebooted to be sure) but still the installer complains.
Any suggestions?
Thanks in advance,
Roger
purvis:
From other web sources, I see methods to get the same results for special needs.
A global turn off is likely not your best option for the whole server.
There has been much discussion with this setting at the php developers.
rogerbodger:
Thanks for your reply. I've also tried setting in .htaccess but again this makes no difference.
I've just run cat /etc/php.ini and that confirms magic_quotes_gpc is set to off, so I suspect I need to look more at the itop install code (however phpinfo tells me that it's set on :-?)
janet:
rogerbodger
--- Quote ---I've just run cat /etc/php.ini and that confirms magic_quotes_gpc is set to off, so I suspect I need to look more at the itop install code (however phpinfo tells me that it's set on :-?)
--- End quote ---
Is it in the [PHP] section of /etc/php.ini ?
Is there only one instance of
magic_quotes_gpc = ....
you may have
magic_quotes_gpc = On
and also
magic_quotes_gpc = Off
and one is overriding the other.
janet:
rogerbodger
Actually that directive is deprecated in php 5.3.3
sme8 is running
rpm -q php
php-5.3.3-13.el5.sme.1
refer
http://php.net/manual/en/ini.list.php
magic_quotes_gpc "1" PHP_INI_PERDIR PHP_INI_ALL in PHP <= 4.2.3. Deprecated in PHP 5.3.0. Removed in PHP 5.4.0.
Navigation
[0] Message Index
[#] Next page
Go to full version