tsl

Setting up Zend Optimizer on Media Temple (dv)

By Head Lounger • September 24th, 2009 • Web Servers Tags: , ,

So I recently had an upgrade on a client server from Media Temple. They had a gs account and was upgraded to a dedicated server. Sounds great? Well the first thing I ran into was that their admin no longer worked since it used Zend Optimizer for some of the plugins. Media Temple (dv) uses ion cube. Oh shit…
So I decided to list my steps for getting zend optimizer on a dv sever in case anyone else needed it.

You will need to ssh into your account. I like putty for ssh, you can get it here.

1) Go to Zend official site. http://www.zend.com/
2) Find and download the Zend Optimizer 3.3. I am using the 3.3.3 package.
3) Download it directly to your server.
wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
4) Decompress it.
tar xvfz ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
5)Move to the new folder and install.
cd ZendOptimizer-3.3.3-linux-glibc23-i386
./install

6. Follow the steps to install.

7. After the installation, you will notice some new lines in your php.ini file.
cd /etc
vi php.ini

8. Comment out all of the new Zend lines. (generally at the very end of the .ini file).

Example:
[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.9
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.4
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

9. Now we will disable ioncube.
/etc/php.d/
vi ioncube-loader.ini

10. comment out the line
zend_extension=/usr/lib/php/php_ioncube_loader_lin.so

and replace with your zend optimizer lines

zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/php-5.2.x/ZendOptimizer.so
zend_optimizer.optimization_level=15

Now save your .ini file and restart apache.
Service httpd restart

You should set up a phpinfo file to test that you have successfully installed Zend Optimizer.
I am sure there are many ways of doing this, but this is what worked for me on a MediaTemple 3.5(dv) server. Hope it helps someone else too!

 

Leave a Reply

You must be logged in to post a comment.