How to change php to a different version

Say for example you're running php 5.2.11, but wish to roll back to 5.2.2. To do that, you'd edit the versions.txt to specify that version. eg:

cd /usr/local/directadmin/custombuild
vi versions.txt

in that file, find these 2 lines

php5:5.2.11:0223d71f0d6987c06c54b7557ff47f1d
php5-mail:5.2.11:85a62ef3d069403c29604730e02da9c8

then replace them with the following:

php5:5.2.2:
php5-mail:5.2.2:

save and exit the versions.txt.

Next to get the binaries and compile it, type:

./build update_data
./build php n

which will then give you the older version of php5. Restart apache after the compile completes.

 
php/change_php.txt · Last modified: 2010/02/22 08:11 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki