LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   PHP won't recognize my Configuration File (php.ini) path (http://www.linuxquestions.org/questions/programming-9/php-wont-recognize-my-configuration-file-php-ini-path-618776/)

kriezo 02-05-2008 04:05 AM

PHP won't recognize my Configuration File (php.ini) path
 
Hi all,

I want to install Zend Optimizer when all this start give me headache.
I've upgrade httpd and phpin my fedora 6. All were fine except when i installed zend optimizer 3.3.0 the zend not even loaded in my phpinfo() page.
After struggling about 2 days here, i found that my Configuration File (php.ini) Path in the phpinfo() page was quite strange because it stated php.ini in /usr/local/lib but actually the place was in /etc/php.ini(It is a sysmbolic link to the /usr/local/Zend/etc/php.ini). I've try make a symbolic link from /usr/local/lib to /etc/php.ini but it make my php failed to load and even i copy the actual file as result as same.So i just delete the php.ini in the /usr/local/lib to make my php works again.

Please advice as i don't know anything else to do to make my zend optimizer works..TQ
help! help!

bathory 02-05-2008 05:09 AM

Make a backup of the working /etc/php.ini and then add the following at the end of the file:
Code:

[Zend]zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
zend_optimizer.version=3.3.0a
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

assuming from your post that Zend is installed in /user/local/Zend

kriezo 02-05-2008 09:18 PM

sorry but when i check the php.ini in /etc, it already have the zend modules as you stated as it is symlink to the /usr/local/Zend/etc/php.ini. Any advice?

bathory 02-06-2008 01:50 AM

Did you restart your webserver (apache?) after installing Zend optimizer?

kriezo 02-14-2008 02:31 AM

i did..it was resolved when i deleted all the php binary installation files in my server then i build them back. Then all works!

I think maybe so many php installation there make this all mess up..

Thank guys!!


All times are GMT -5. The time now is 11:47 AM.