LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-05-2008, 04:05 AM   #1
kriezo
LQ Newbie
 
Registered: Jan 2008
Posts: 14

Rep: Reputation: 0
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!
 
Old 02-05-2008, 05:09 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
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
 
Old 02-05-2008, 09:18 PM   #3
kriezo
LQ Newbie
 
Registered: Jan 2008
Posts: 14

Original Poster
Rep: Reputation: 0
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?
 
Old 02-06-2008, 01:50 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Did you restart your webserver (apache?) after installing Zend optimizer?
 
Old 02-14-2008, 02:31 AM   #5
kriezo
LQ Newbie
 
Registered: Jan 2008
Posts: 14

Original Poster
Rep: Reputation: 0
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!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
editing a php.ini file ilustrate Linux - General 4 07-13-2005 12:16 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
Question about php.ini file. jon_k Linux - Software 0 08-07-2004 05:52 AM
PHP.ini Troubles on conf file Gerardoj Linux - General 3 03-24-2004 08:03 PM
php.ini and file uploads gblue Linux - Newbie 0 02-29-2004 05:28 PM


All times are GMT -5. The time now is 06:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration