2

Upgrading version of php

  • Live

A
Amit Kumar

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.

A

Activity Newest / Oldest

Avatar

smtalk

Status changed to: Live

Avatar

smtalk

"./build update_versions" updates just a single version of PHP that requires the update.


A

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.


Avatar

smtalk

No, you can still run "./build update_versions" and it'd get installed.


A

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.


Avatar

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.


A

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
?


Avatar

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


  • A