One of the problem that we face when we try to upgrade php version if we upgrade one php version it require s to compile all other php version too which is time consuming.
2021-12-09 -
Activity
Newest / Oldest
smtalk
Status changed to:
Live
smtalk
"./build update_versions" updates just a single version of PHP that requires the update.
@smtalk you did not understand my feedback let me explain what I mean .Say we have 4 php versions installed php 5.6 ,7.0,7.1.7.2 now suppose I want to change the version from 7.0 to 7.4 in that case you have to run following command
./build update
./build set php2_release 7.4
./build set php2_mode php-fpm
./build php n
./build rewrite_confs
These command start compiling other php versions too apart from installing 7.4 which takes time.
But i don't wanna update all versions of php I just wanna update php 7.0 to 7.4 . And keep 5.6 ,7.1, and 7.2 as it is.Command /build update_versions does not specify which version I would want to update?Please clarify it.
Ok I got it in order to install higher version of php in place of already installed lower version of php I would have to issue following command
cd /usr/local/directadmin/custombuild
./build set php1_release 7.4
./build update
./build php_expert 7.4 php-fpm
./build rewrite_confs
?
Activity Newest / Oldest
smtalk
Status changed to: Live
smtalk
"./build update_versions" updates just a single version of PHP that requires the update.
Amit Kumar
@smtalk you did not understand my feedback let me explain what I mean .Say we have 4 php versions installed php 5.6 ,7.0,7.1.7.2 now suppose I want to change the version from 7.0 to 7.4 in that case you have to run following command
./build update
./build set php2_release 7.4
./build set php2_mode php-fpm
./build php n
./build rewrite_confs
These command start compiling other php versions too apart from installing 7.4 which takes time.
smtalk
No, you can still run "./build update_versions" and it'd get installed.
Amit Kumar
But i don't wanna update all versions of php I just wanna update php 7.0 to 7.4 . And keep 5.6 ,7.1, and 7.2 as it is.Command /build update_versions does not specify which version I would want to update?Please clarify it.
smtalk
If you have latest versions of 5.6, 7.1 and 7.2 - it would not update them. Also, if you'd like to, you may just run:
./build php_expert 7.4 php-fpm
It'd do exactly the same as "./build update_versions" in case only one PHP version has an update available.
Amit Kumar
Ok I got it in order to install higher version of php in place of already installed lower version of php I would have to issue following command
cd /usr/local/directadmin/custombuild
./build set php1_release 7.4
./build update
./build php_expert 7.4 php-fpm
./build rewrite_confs
?
smtalk
I've mentioned the commands already, multiple times. One of the ways is your mentioned one, but it's too extensive.
It can be done this way:
cd /usr/local/directadmin/custombuild
./build set php1_release 7.4
./build php_expert 7.4 php-fpm
Or this way:
cd /usr/local/directadmin/custombuild
./build set php1_release 7.4
./build update_versions