Link to home
Start Free TrialLog in
Avatar of matt1237
matt1237Flag for United States of America

asked on

Easy question... /etc/php.ini versus /usr/local/zend/etc/php.ini and include_path

WHICH FILE?

Which php.ini should be the authority in CentOS 6 with Zend Server CE installed? Is one for browser and one for CLI? Can I just symlink one to the other so I can maintain one file?

1. Default

/etc/php.ini

2. Zend

/usr/local/zend/etc/php.ini

WHAT INCLUDE PATHS?

There are two different include paths... how do I merge them when it appears there are two separate pear paths? Can I include both pear paths or is one the correct one?

1. Default

include_path = ".:/usr/share/pear"

2. Zend

include_path=".:/usr/local/zend/var/libraries/Zend_Framework_1/default/library:/usr/local/zend/share/pear"
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of matt1237

ASKER

So to be clear, are these statements true?

/etc/php.ini is for command line
Do NOT merge the two include_path strings as they are used for two purposes
Yes, I believe so.  'httpd.conf' or 'apache2.conf' will show which one is being loaded for the web server.  I have never installed Zend but for other reasons I have two separate 'php.ini' files on most of my machines.
I booted up my Ubuntu Linux system and checked it.  It installs with separate 'php.ini' files in different directories.  I also found out that my 'cli' version never got updated when I upgraded the machine!  Shows a bunch of errors!
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial