Zend in PHP4 and PHP5

Just run "./build zend" again and change the location of php.ini file :)
 
PHP location problem ?

Hi, i'll use jeff's post on php, as i suppose it concerns a problem with zend...

When running ./build versions

I get this error where normally i should have zend version installation information :

Latest version of suPHP: 0.7.1
Installed version of suPHP: 0.7.1

cat: /usr/local/lib/php.ini: Aucun fichier ou répertoire de ce type
Latest version of Atmail: 1.03
Installed version of Atmail: 1.03

Latest version of RoundCube webmail: 0.3.1
Installed version of RoundCube webmail: 0.3.1

(In french, english meaning : No file or directory of this type.)

On another server where atmail has not been installed i have :

Latest version of suPHP: 0.7.1
Installed version of suPHP: 0.7.1

Latest version of Zend Optimizer: 3.3.3
Installed version of Zend Optimizer: 3.3.3

Latest version of RoundCube webmail: 0.3.1
Installed version of RoundCube webmail: 0.3.1

...

Could this be due to zend problem not findind php.ini after custombuild of php ?

I have searched files and this is what i have :

/usr/local/Zend/etc/php.ini
/usr/local/etc/php5/cgi/php.ini
/usr/local/etc/php5/cgi/php.ini-zend_optimizer.bak


How do i correct this problem ?
 
Code:
cp /usr/local/etc/php5/cgi/php.ini /usr/local/lib/php.ini
 
Code:
cp /usr/local/etc/php5/cgi/php.ini /usr/local/lib/php.ini

Ok but on next ./build php n, will i not have new configurations just restrained to /usr/local/etc/php5/cgi/php.ini ???
Or will it also update and consider /usr/local/lib/php.ini file ??
 
Bug In custombuild

Hi,

To follow discussion, i found the default (bug) in your code for debian when doing today a reinstallation of my server...
In ./build :
Replace code

if [ "`cat /usr/local/lib/php.ini | grep '^zend_optimizer.version'`" != "" ]; then
ZENDV="`cat /usr/local/lib/php.ini| grep zend_optimizer.version | cut -d= -f2`"

with :

if [ "`cat /usr/local/Zend/etc/php.ini | grep '^zend_optimizer.version'`" != "" ]; then
ZENDV="`cat /usr/local/Zend/etc/php.ini | grep zend_optimizer.version | cut -d= -f2`"

It solves the error message you get in this distro...
 
Last edited:
Back
Top