How to change php to a different version


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » CustomBuild » ./build php

How to change php to a different versionLast Modified: Sep 16, 2014, 12:23 am
Say for example you're running php 5.2.11, but wish to roll back/downgrade to 5.2.2.  To do that, you'd edit the versions.txt to specify that version.



CustomBuild 1.1/1.2
eg:

cd /usr/local/directadmin/custombuild
./build set autover no
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.



CustomBuild 2.0
CustomBuild 2.0 supports a file called custom_versions.txt.
This file is just like the versions.txt, except you can add individual entries into the custom_versions.txt to preserve your override for this item, but still be able to update the versions of everything else.

cd /usr/local/directadmin/custombuild
echo "php5:5.2.2:" > custom_versions.txt
echo "php5-mail:5.2.2:" >> custom_versions.txt




Next to get the binaries and compile it (for all CustomBuild versions), type:

./build update_data
./build php n

which will then give you the older version of php5.
Restart apache after the compile completes.
 
Related Helpfiles
How to override the version of one item with CustomBuild 2.0

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST