how to install php5.2 with zend optimizer on my Ubuntu LAMP on 14.04 Droplet?

Posted July 2, 2015 4.8k views
PHPPHP Frameworks

Hi, I bought an application which was encrypted by zend optimizer under php5.2, so I want to install php5.2 with zend optimizer on my Ubuntu LAMP on 14.04 Droplet, but it’s default to php5.5, and I can not uninstall it, I don’t have much experience with Ubuntu… please help me, I’ve also talked to the company I bought the application, they won’t provide me upgraded version for php5.5… I just need a solution to have a host with php5.2 and zend optimizer on it, thanks so much!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

PHP is just an executable you can add to your Ubuntu system. If your web server is configured to use it, it will point to this executable program and run it. So if you already have a newer version of PHP, you can download an older one and then tweak your web server to point to it. PHP download page is here:

PHP - Unsupported Historical Releases -

According to that page, 5.2 had end of support way back in 2011. So I highly don’t recommend running it in production and unleashing all the potential bugs/security issues.

The vendor of this web app really needs to provide you an update. In a worst case scenario, you can follow the installation instructions for building PHP here: