paint-brush
How to Have Multiple Versions of PHP on Ubuntuby@magepsycho
1,675 reads
1,675 reads

How to Have Multiple Versions of PHP on Ubuntu

by Raj KB3mJune 27th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

How to use a specific PHP version as per application? How to switch the PHP version in the Nginx’s server block? How easily you can change the PHP CLI and Web SAPI version. For Web application, once the required PHP version is set, they will work independently on specific PHP versions. For example, Magento 2 runs on Nginx with PHP 7.2, you can simply change the value of PHP version to a specific version of the application. You can find the list of PHP executables with the following command:://://://www.magepsycho.com/php-on-ubuntu-1604/
featured image - How to Have Multiple Versions of PHP on Ubuntu
Raj KB HackerNoon profile picture
Raj KB

Raj KB

@magepsycho

* Lead Software Engineer, * Zend PHP & Magento Certified, * Blogger, * Indie Hacker, * Maker of www.magepsycho.com

About @magepsycho
LEARN MORE ABOUT @MAGEPSYCHO'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Raj KB HackerNoon profile picture
Raj KB@magepsycho
* Lead Software Engineer, * Zend PHP & Magento Certified, * Blogger, * Indie Hacker, * Maker of www.magepsycho.com

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Leftic
Coffee-web
Learnrepo
Allella