linux-image

Well-Known Member
Jun 8, 2004
1,190
1
168
India
cPanel Access Level
Root Administrator
best is to create a phpino(); file and access it via web. it shows the correct location of php.ini

locate can give you a lot of options.
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
The local path to php.ini is: /usr/local/lib/php.ini

If you have installed ZendOptimizer, this program will create its own version and save old copy of /usr/local/lib/php.ini as: and php.ini-zend_optimizer.bak

In addition, ZendOptimizer will save another copy of the new php.ini under the name: php.ini.new

Now, to avoid confusion, ZendOptimizer will symlink its own version of php.ini
/usr/local/lib/php.ini -> /usr/local/Zend/etc/php.ini
/usr/lib/php.ini -> ../local/lib/php.ini

if wish to modify php.ini, edit: /usr/local/lib/php.ini
Which is symlinked to /usr/local/Zend/etc/php.ini

Hope this helps!
 

ebinfo

Active Member
Oct 5, 2005
31
0
156
That does not help me here.

I compare my phpinfo() extensions , i got GD, DOMXML and so forth enabled. good.

If i go edit that file pointed by phpinfo() to add modules, such as DBG to be able to remote debug my scripts, the said extensions are flagged as commented, with a ; on the line first chatacter.

Leads me to think that's not the php.ini file being used.

If it helps, i used cPanel's update feature to update to php 4.4.0. So maybe they are using a diff php.ini file that is lurcking somewhere, and that's the one i need to get my hands on.