Search Our Database
How to Downgrade PHP 5.3 to PHP 5.2 on DirectAdmin
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 the 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 with the following command:
php -v
The string returned will display the PHP version which should mirror:
"PHP 5.2.17 (cli) (built: Mar 6 2012 18:10:46)"