Search our database

How to downgrade php version from 5.3 to 5.2 on DirectAdmin platform

Following is the instructions to downgrade your Dedicated Server’s PHP from version 5.2 to 5.3 on DirectAdmin platform:

Step 1: ssh to the server

Step 2: Enter following commands:

cd /usr/local/DirectAdmin/custombuild 
./build set php5_ver 5.2
./build update
./build php n
services httpd restart

Once it’s done, you can check the current php version by using below command:

php -v

The example result return will be “PHP 5.2.17 (cli) (built: Mar 6 2012 18:10:46)”