# Virtualmin + CentOS 7 + PHP7 the right way?

**URL:** <https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617>\
**Category:** Virtualmin\
**Created:** [January 17, 2016, 1:22pm UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617 "2016-01-17T13:22:49Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![Cloud4G](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/d07c76/32.png) [@Cloud4G](https://forum.virtualmin.com/u/Cloud4G)\
**Post date:** [September 21, 2016, 3:53am UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/21 "2016-09-21T03:53:43Z")

</div>

The remi repo blog now shows php7 as ‘remi-safe’ repository release, elevated from the ‘test’ repo.  
Remi’s blog says " php5.5 is Dead’. a pretty bold statement, and says it is no longer being maintained. However, the site continues to support downloads.

---

<div class="post-metadata">

**Author:** ![Cloud4G](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/d07c76/32.png) [@Cloud4G](https://forum.virtualmin.com/u/Cloud4G)\
**Post date:** [November 3, 2016, 3:37pm UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/22 "2016-11-03T15:37:56Z")

</div>

I upgraded the Centos 7 standard to PHP5.6 and then installed PHP7 on the VPS using the steps found here. I then installed NGNX, CSF (Configserver Firewall), and all appear to be working.

---

<div class="post-metadata">

**Author:** ![monsieurQ](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/monsieurq/32/2760_2.png) [@monsieurQ](https://forum.virtualmin.com/u/monsieurQ)\
**Post date:** [March 14, 2017, 4:14pm UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/23 "2017-03-14T16:14:38Z")

</div>

Sorry for opening an old thread. I want to install PHP7 alongside older versions but following the SCL route the range of PHP modules for PHP7 is pretty limited.

Does @cognosco’s method using Remi and yum install php70… etc still give me the ability to allocate PHP version per virtual server?

Many thanks

---

<div class="post-metadata">

**Author:** ![cognosco](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/bbce88/32.png) [@cognosco](https://forum.virtualmin.com/u/cognosco)\
**Post date:** [March 19, 2017, 1:33pm UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/24 "2017-03-19T13:33:48Z")

</div>

Hi, the author of the topic here.  
This same config is still running very well here! It’s still my main server and one year and a lot of updates later it is still running strong 🙂

---

<div class="post-metadata">

**Author:** ![monsieurQ](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/monsieurq/32/2760_2.png) [@monsieurQ](https://forum.virtualmin.com/u/monsieurQ)\
**Post date:** [March 20, 2017, 9:12am UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/25 "2017-03-20T09:12:19Z")

</div>

Thank you for the reply cognosco - it’s good to hear this is running so well for you. What I’m wondering is if you still have the ability to allocate PHP version per virtual server?: Virtualmin \> Server Configuration \> PHP Versions \> Version

---

<div class="post-metadata">

**Author:** ![cognosco](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/bbce88/32.png) [@cognosco](https://forum.virtualmin.com/u/cognosco)\
**Post date:** [March 20, 2017, 10:24am UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/26 "2017-03-20T10:24:02Z")

</div>

Yes, this does still work perfect. I can choose between 5.6 and 7.

---

<div class="post-metadata">

**Author:** ![monsieurQ](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/monsieurq/32/2760_2.png) [@monsieurQ](https://forum.virtualmin.com/u/monsieurQ)\
**Post date:** [March 20, 2017, 10:42am UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/27 "2017-03-20T10:42:14Z")

</div>

Perfect - thanks again for responding to an older thread 🙂

---

<div class="post-metadata">

**Author:** ![Cloud4G](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/c/d07c76/32.png) [@Cloud4G](https://forum.virtualmin.com/u/Cloud4G)\
**Post date:** [October 27, 2017, 3:27pm UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/28 "2017-10-27T15:27:00Z")

</div>

I have installed Virtualmin v6 LEMP stack. Then I tried various upgrades of PHP including both replacements with Remi’s PHP7.1 and also multiple PHP versions. Some observations:

- Centos 7 continued packaging of PHP 5.4 sucks big time. What a waste since this will be obsolete before long. Maybe that is to satisfy lingering users. I don’t know why Centos 7 repo doesn’t come with PHP5.6 and PHP 7 out of the box.
- If you are installing a new server to support fresh scripts such as CMS with related plugins that are recent to within the past year, you may find there are no incompatibility issues with running just PHP7/7.1.
- If the server needs to support older scripts, PHP7/7.1 may break the applications such as web servers/CMS.
- Keeping PHP5.4 will run into problems as PHPMyAdmin, popular CMS including Wordpress and Joomla cannot be used while transferring of the CMS that use older scripts may not run on the server stack.
- My experience is that Virtualmin’s install of PHP5.4 plus PHP7 is not a good choice. PHP5.4 must be upgraded to PHP5.6. PHP7 is OK but my preference is to install Remi’s repo, enable PHP5.6, upgrade the Centos standard 5.4 to PHP5.6, remove or leave the redundant PHP7, and then install Remi’s PHP7.1.x as the additional version.
- That seems to work OK. given that many scripts will not run on PHP5.4 and it is no longer supported, this PHP5.6 + PHP7.1 multi-version will allow support of older scripts. This can be done by setting up of an alternate VM template with PHP.5.6 chosen.

It would be great if Virtualmin/Webmin fully supported NGINX with multiple versions of PHP so that the configuration could be chosen/changed after the install of a virtual server. The PHP selection does not work. NGINX with PHP7 have become a mainstream choice alongside LAMP. More new servers are reportedly installed using LEMP/NGINX and PHP7/7.1 use has accelerated.

---

<div class="post-metadata">

**Author:** ![7stars](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/7/e99b99/32.png) [@7stars](https://forum.virtualmin.com/u/7stars)\
**Post date:** [December 21, 2017, 3:12pm UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/29 "2017-12-21T15:12:00Z")

</div>

Hello, when the execution mode is on PHP-FPM, how to choose the php version per virtual server? At the moment this is not possible by Virtualmin option and this is an issue in my opinion…  
thanks

---

<div class="post-metadata">

**Author:** ![Peter\_Simon](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@Peter\_Simon](https://forum.virtualmin.com/u/Peter_Simon)\
**Post date:** [March 13, 2018, 6:28am UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/30 "2018-03-13T06:28:55Z")

</div>

I suggest you must install virtualmin first.

[spy hunter arcade](https://spyhunterarcadegame.blogspot.com)

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 6:04am UTC](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617/31 "2020-04-30T06:04:56Z")

</div>

Closed on April 30, 2020, 6:04am UTC



[Previous page](https://forum.virtualmin.com/t/virtualmin-centos-7-php7-the-right-way/52617.md?page=1)
