Victor Kimura
asked on
phpinfo include_path, extension_dir is wrong: php 5.4
Hi,
I compiled php 5.4 from source on my Centos 5.x system. Everything seemed to go okay. But when I look at my phpinfo() output my:
extension_dir = /usr/local/bin/php/lib/php /extension s/debug-no n-zts-2010 0525
include_path = .:/usr/local/bin/php/lib/p hp
Configuration File (php.ini) Path = /usr/local/lib/php
Loaded Configuration File = /usr/local/lib/php.ini
But in my php.ini file has:
include_path = ".:/usr/local/lib:/usr/lib 64/php"
extension_dir = "/usr/lib64/php/modules"
Where is the phpinfo() getting this information from?
Victor
I compiled php 5.4 from source on my Centos 5.x system. Everything seemed to go okay. But when I look at my phpinfo() output my:
extension_dir = /usr/local/bin/php/lib/php
include_path = .:/usr/local/bin/php/lib/p
Configuration File (php.ini) Path = /usr/local/lib/php
Loaded Configuration File = /usr/local/lib/php.ini
But in my php.ini file has:
include_path = ".:/usr/local/lib:/usr/lib
extension_dir = "/usr/lib64/php/modules"
Where is the phpinfo() getting this information from?
Victor
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hey did u restart your web server apache after making change in php.in file just want to double ensure
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The part:
PHPIniDir /usr/local/lib/php.ini
needs to be in quotes like:
PHPIniDir "/usr/local/lib/php.ini"
PHPIniDir /usr/local/lib/php.ini
needs to be in quotes like:
PHPIniDir "/usr/local/lib/php.ini"
ASKER
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
;extension_dir = "/usr/local/include/php/ex
extension_dir = "/usr/lib64/php/modules"
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
include_path = ".:/usr/local/lib:/usr/lib
I have this in my /usr/local/apache/conf/htt
NameVirtualHost *
<VirtualHost *>
ServerAdmin admin@howtomarketyourstuff
ServerName localhost
PHPIniDir /usr/local/lib/php.ini
DocumentRoot /usr/local/apache/htdocs/
ErrorLog logs/localhost-error_log
CustomLog logs/localhost-access_log common
</VirtualHost>
I checked to see if there are any other php.in files since the default for Centos is /etc/php.ini so I renamed it to /etc/php_backup.ini and then stopped and started apache. But the phpinfo() is the same.
Here is the output for a find for all php.ini files:
[root@seokingdomheaven etc]# find / -name php.ini
/home/vkimura/ZendStudio/p
/home/vkimura/eclipse/plug
/home/vkimura/eclipse/plug
/usr/local/lib/php.ini
/root/Downloads/eclipse/pl
/root/Downloads/eclipse/pl
/root/Downloads/eclipse/pl
/root/Downloads/eclipse/pl
/root/Downloads/eclipse/pl
/root/Downloads/eclipse/pl
What am I missing?