PHP - Zend Optimizer

frednoob

Verified User
Joined
Feb 15, 2007
Messages
92
can i upgrade my php to Zend ?? how to setup it ??
i've try install at my other server that use cpanel, but after finish install Zend, my site cannot read php file but will save the php file.
I dont want same situation will happen to my DA server.
 
I believe there's a build Zend target in CustomApache.

But this should work as well, at least on the CentOS machines I've tried it on:

First download the latest ZendOptimizer from the zend site at:

http://www.zend.com/products/zend_optimizer

Then place it in your /usr/local/src directory.

Then (as root), replacing <tab> with just pressing the tab key:
Code:
# cd /usr/local/lib
# cp -p php.ini php.ini.orig
# cd /usr/local/src
# tar -xzvf ZendOptimizer-<tab>
# cd ZendOptimizer-<tab>
./install
You can answer all the questions with the default.
Be sure to restart httpd manually, as the automatic restart doesn't always work:
Code:
# service httpd restart
You may want to change some of the defaults in php.ini, for example the notify email address. If you do, be sure to restart apache afterwards.

Jeff
 
Hello All, I am having trouble install zend which I need for another application. I did the following:
cd /usr/local/directadmin/customapache
./build clean
./build update
./build zend

The output I get is:

Location of php.ini:
/usr/local/lib
Press return to continue...

Please, wait ...

Zend Optimizer installation was NOT completed successfully.

File: ./dialog does not exist!

For further assistance, please contact Zend Support at
https://www.zend.com/support/
[To continue, press Enter]

How should I proceed?
Thanks.
 
Use the non-graphical (tty) version of the install. You should consider the readme or install textfile.
 
Thanks, I read everything I could find. I even installed dialog software.

Finally, I fixed it by doing a manual install. I edited the php.ini file and added the following lines to the bottom of the file:

zend_optimizer.optimization_level=15
zend_extension="/usr/local/lib/php/extensions/zend/ZendOptimizer.so"

and manually putting ZendOptimizer.so in the above location.

and restarting apache.


Hope this helps others.
 
Hello All, I am having trouble install zend which I need for another application. I did the following:
cd /usr/local/directadmin/customapache
./build clean
./build update
./build zend

The output I get is:

Location of php.ini:
/usr/local/lib
Press return to continue...

Please, wait ...

Zend Optimizer installation was NOT completed successfully.

File: ./dialog does not exist!

For further assistance, please contact Zend Support at
https://www.zend.com/support/
[To continue, press Enter]

How should I proceed?
Thanks.


I also get the same error on all FreeBSD 6.2 box since Zend 3.2.6, 3.2.4 could build with no error.
but on CentOS not have this problem.

May be some bug in zend
 
OK, I found the solution.

.dialog file does not included in latest zend optimizer so you should do

#cd /usr/local/directadmin/customapache
#nano build (or use your favor editor)
Find doZend function and replace ./install.sh to ./install-tty
doZend() {

cd $CWD;
getFile $ZENDFILE
tar xzf $ZENDFILE
cd $ZENDNAME;
echo "";
echo -e "Location of php.ini:\n /usr/local/lib";
echo "Press return to continue...";
read bogusdata;

./install-tty

cd $CWD;
}

#./build zend
follow install step

---
or manually download zend file (./build zend will download it)
untar it and cd into zend folder
call ./install-tty
follow install step
 
Last edited:
Back
Top