mikenn
08-07-2003, 04:54 PM
HI,
I have enabled global_register option at php.ini file but change is not reflected. do I have to do anything?
this is thte path
/usr/local/lib/php.ini
AfterI modified restarted http. Still change is not affected.
Anyhelp????
choon
08-07-2003, 04:59 PM
Hi,
Please check whether is your php configure file is the right one... issue the following command to check:
php -i | grep php.ini
Later...
Thanks.
Kindest regards,
Choon
SPaReK
08-07-2003, 05:09 PM
You may need to restart apache for the changes to take affect.
choon
08-07-2003, 05:14 PM
I suspect that mikenn might be modifying the wrong php.ini file or didn't actually restarted the httpd after changes.
Just my thoughts :)
Thanks.
Kindest regards,
Choon
mikenn
08-07-2003, 05:19 PM
Thaks for your replies.
I did locate and got these files and modified /usr/local/lib/php.ini
and restarted apache. Please help me this is bit urgent.
/var/cpanel/version/php.ini-1
/var/cpanel/version/php.ini-2
/root/fp-5.0-upgrade/buildapache/php-4.3.1/php.ini-dist
/root/fp-5.0-upgrade/buildapache/php-4.3.1/php.ini-recommended
/root/fp-5.0-upgrade/buildapache/php-4.3.1/pear/tests/php.ini
/usr/local/lib/php.ini
/usr/local/lib/php.ini.new
/usr/local/cpanel/3rdparty/etc/php.ini
/usr/local/cpanel/3rdparty/lib/php.ini
/home/cpapachebuild/buildapache/php-4.3.2/php.ini-dist
/home/cpapachebuild/buildapache/php-4.3.2/php.ini-recommended
/home/cpapachebuild/buildapache/php-4.3.2/pear/tests/php.ini
SPaReK
08-07-2003, 05:24 PM
The
/usr/local/lib/php.ini
should be the one to edit, as it looks like you are running CPanel. You can verify this by creating a PHP info page, and it will tell you where the php.ini file is.
<?php
phpinfo();
?>
After you make changes you will need to restart Apache, and then go back to the phpinfo page, it should reflect the changes.
choon
08-07-2003, 05:27 PM
Show us what you modify exactly in the /usr/local/lib/php.ini file. It is register_globals right? You mentioned global_register ???
mikenn
08-07-2003, 06:04 PM
register_globals , also i did restart the apche. Also did phpinfo). Still showing as off.
Anyhelp
choon
08-07-2003, 06:29 PM
What SPaReK posted should work. How you restart apache and can you show us what you have modified EXACTLY? Such as:
register_globals = On;
If all doesn't help, try reboot.
Thanks.
mikenn
08-07-2003, 09:03 PM
this is how restarted
/etc/init.d/httpd restart
reboot also didnt help.
Nymix-CB
08-07-2003, 09:48 PM
Try this one:
/usr/local/cpanel/3rdparty/etc/php.ini
toma1708
08-08-2003, 03:41 AM
Check the phpinfo to see the path of your php.ini file and modify that one. Most probably you have Zend installed on your machine and therefore, the php.ini file should be located here:
usr/local/Zend/etc/php.ini
After you modify the file:
service httpd stop
service httpd start
Catalin
hotice007
08-09-2003, 01:02 PM
If you have phpsuexec enabled, that could be the problem.
BobMarley
08-09-2003, 01:27 PM
Originally posted by hotice007
If you have phpsuexec enabled, that could be the problem.
I Agree, try this approach if you are running cpanel, Update the apache software again and un-check the box for PHP-suEXEC. Once everything is done, your php.ini should be located in
usr/local/Zend/etc/php.ini
You can run this to be sure:
PHP:--------------------------------------------------------------------------------
<?php
phpinfo();
?>
--------------------------------------------------------------------------------
Then edit the php.ini file and restart apache.
This method worked for me after pulling my hair out after the upgrade not noticing the php su-EXEC thing the first time I performed the apache update.
Hope This Helped,
Robert