Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: edb on September 14, 2004, 01:37:44 AM

Title: Modifying the php.ini file
Post by: edb on September 14, 2004, 01:37:44 AM
Can anyone tell me how I can change "magic_quotes_gpc= On" in the PHP.ini file to read "magic_quotes_gpc= Off"? I tried just editing the /etc/php.ini file but it seems to stay as On no matter what I do? Should something be restarted or what might I be missing?

One more thing:
I want to set a new environment varriable such that when you run phpinfo it will return the results as including SAGRO_BASE as a varriable and /home/e-smith/files/ibays/sagro as the value under the Environment heading.

Thanks in advance for any help.
Title: Modifying the php.ini file
Post by: dmac on September 17, 2004, 10:21:31 PM
Not an expert with Apache but believe that you may need to restart the HTTPd after changing your PHP.ini file.  PHP loads the ini file when it starts in conjunction with Apache.  So make your change and then run 'apachectl restart'.  This is a script to stop and start your apache service.  You could also use the  kill -TERM cat /usr/local/apache/logs/httpd.pid command, and change the path to the httpd.pid file.

phpinfo is a core function, a little more difficult to modify.
http://ca.php.net/manual/en/ref.info.php
Title: Modifying the php.ini file
Post by: Medimo on September 22, 2004, 05:09:31 PM
EDB, as with many ini files, this file is set up by e-smith using templates.

You should copy the files in:
/etc/e-smith/templates/etc/php.ini/
to:
/etc/e-smith/templates-custom/etc/php.ini/

then you can mess with the scripts in the custom-directory as you want. You probably want to look for the file '40DataHandling'

command to effectuate your changes:
/sbin/e-smith/expand-template /etc/php.ini

and restart your webserver:
service httpd restart

grz,

Medimo
Title: Modifying the php.ini file
Post by: Medimo on September 22, 2004, 05:09:55 PM
EDB, as with many ini files, this file is set up by e-smith using templates.

You should copy the files in:
/etc/e-smith/templates/etc/php.ini/
to:
/etc/e-smith/templates-custom/etc/php.ini/

then you can mess with the scripts in the custom-directory as you want. You probably want to look for the file '40DataHandling'

command to effectuate your changes:
/sbin/e-smith/expand-template /etc/php.ini

and restart your webserver:
service httpd restart

grz,

Medimo
Title: Modifying the php.ini file
Post by: edb on September 24, 2004, 05:01:05 PM
Thanks a million. Your suggestions worked perfectly  :-D