# Virtualmin reconfigured all php-fpm configs after upgrade to 6.07 GPL

**URL:** <https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926>\
**Category:** General Discussion\
**Created:** [July 28, 2019, 7:26am UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926 "2019-07-28T07:26:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![strejc.david](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/strejc.david/32/7515_2.png) [@strejc.david](https://forum.virtualmin.com/u/strejc.david)\
**Post date:** [July 28, 2019, 7:26am UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/1 "2019-07-28T07:26:13Z")

</div>

Due to etckeeper after upgrade to 6.07 virtualmin changed port of all websites.

This caused error because virtualmin did not reconfigure apache configuration to use new ports for every php-fpm enabled website.

This was an serious issue for us.

Any idea?

---

<div class="post-metadata">

**Author:** ![jimdunn](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimdunn/32/3487_2.png) [@jimdunn](https://forum.virtualmin.com/u/jimdunn)\
**Post date:** [July 28, 2019, 11:06pm UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/2 "2019-07-28T23:06:00Z")

</div>

Yep, I had same issue last night… I think I’m going back to FCGID and will let FPM mature a while longer.

The solution (workaround) is to change all domains to FCGID and back to FPM:

Step 1:

`#!/bin/sh
mkdir /var/run/php
chown -R www-data:www-data /var/run/php
/usr/sbin/virtualmin modify-web --all-domains --mode fcgid
/etc/init.d/apache2 restart
/etc/init.d/php7.0-fpm restart`

Step 2:

`#!/bin/sh
mkdir /var/run/php
chown -R www-data:www-data /var/run/php
/usr/sbin/virtualmin modify-web --all-domains --mode fpm
/etc/init.d/apache2 restart
/etc/init.d/php7.0-fpm restart`

(you might need to adjust the init.d lines, per your configuration)

---

<div class="post-metadata">

**Author:** ![adamjedgar](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@adamjedgar](https://forum.virtualmin.com/u/adamjedgar)\
**Post date:** [July 29, 2019, 6:52pm UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/3 "2019-07-29T18:52:23Z")

</div>

Yeah the upgrade took out all of the php driven websites on my server. I changed from fpm to fcgi and back again on just one website which resolved this for the entire server. I think fpm just needed restarting actually…something not quite right in the update script perhaps?

---

<div class="post-metadata">

**Author:** ![RJM\_Web\_Design](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rjm_web_design/32/1457_2.png) [@RJM\_Web\_Design](https://forum.virtualmin.com/u/RJM_Web_Design)\
**Post date:** [July 29, 2019, 8:58pm UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/4 "2019-07-29T20:58:11Z")

</div>

I had all kinds of issues with PHP-FPM last week, but they disappeared when I disabled fail2ban. I’m using CSF Firewall and have it configured to much of what I understand fail2ban does, so I disabled fail2ban. But perhaps coincidentally, I haven’t had any PHP-FPM problems since.

I don’t know if there’s any connection because I know almost nothing about fail2ban or how it works, and I don’t have the time to learn it right now. All I know is that I haven’t had any PHP-FPM problems since I disabled it, which was for reasons completely unrelated to PHP-FPM.

---

<div class="post-metadata">

**Author:** ![Murz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Murz](https://forum.virtualmin.com/u/Murz)\
**Post date:** [July 31, 2019, 3:23pm UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/5 "2019-07-31T15:23:00Z")

</div>

Got the same problem with nginx configs!  
After upgrade on two servers - php\_from\_port numbers changed, but in nginx configs are stayed old port numbers.  
Example of php-fpm port changes: from 8000 to 8076, 8001 to 8079, 8002 to 8080, etc (so randomly).

Trick from [https://virtualmin.com/comment/814989#comment-814989](https://virtualmin.com/comment/814989#comment-814989) helps for virtualhost configs, that not modified manually, great thanks @jimdunn!

Does any way to bulk rollback old port numbers in php\_fpm exists?

---

<div class="post-metadata">

**Author:** ![Murz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Murz](https://forum.virtualmin.com/u/Murz)\
**Post date:** [July 31, 2019, 3:32pm UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/6 "2019-07-31T15:32:33Z")

</div>

Seems this [https://github.com/webmin/webmin/issues/518#issuecomment-287987115](https://github.com/webmin/webmin/issues/518#issuecomment-287987115) feature caused to port changes?

---

<div class="post-metadata">

**Author:** ![Pierrot](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/p/da6949/32.png) [@Pierrot](https://forum.virtualmin.com/u/Pierrot)\
**Post date:** [August 5, 2019, 8:20am UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/7 "2019-08-05T08:20:11Z")

</div>

Hello,  
I see the same problem here. It seems I have to go FCGID and back FPM for all virtualhosts, doing it just for one is not enough. I’ll try jimdunn’s trick on other hosts but yes, it’s a real problem especially in the middle of august with a lot of people away in vacations ☹  
Maybe it’s also the case for Virtualmin’s people … enjoy ! 🙂

---

<div class="post-metadata">

**Author:** ![Murz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Murz](https://forum.virtualmin.com/u/Murz)\
**Post date:** [August 28, 2019, 9:47am UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/8 "2019-08-28T09:47:00Z")

</div>

On each “Re-Check Configuration” action Virtualmin 6.07 continue changing php-fpm ports of each virtualserver to new numbers with message “Fixing port clash for PHP-FPM version 7.2.3”!! So all manual-configured web servers need to be updated manually ☹  
How can I tell Virtualmin to stop change ports?

---

<div class="post-metadata">

**Author:** ![Pierrot](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/p/da6949/32.png) [@Pierrot](https://forum.virtualmin.com/u/Pierrot)\
**Post date:** [August 28, 2019, 10:33am UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/9 "2019-08-28T10:33:09Z")

</div>

For the time being I switched back to FCGID for all my hosts … and that’s a lot ! I’m surprised that this problem does not get more attention/reaction from users … does it mean that only a few people are using FPM ?

---

<div class="post-metadata">

**Author:** ![Jfro](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@Jfro](https://forum.virtualmin.com/u/Jfro)\
**Post date:** [August 29, 2019, 5:26pm UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/10 "2019-08-29T17:26:00Z")

</div>

Or didn’t update yet , you can the security part solved with some manual edits. 😉

Or using php fpm different way.

OK i think a lot of us are waiting for updated solution

---

<div class="post-metadata">

**Author:** ![RJM\_Web\_Design](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rjm_web_design/32/1457_2.png) [@RJM\_Web\_Design](https://forum.virtualmin.com/u/RJM_Web_Design)\
**Post date:** [August 29, 2019, 7:40pm UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/11 "2019-08-29T19:40:56Z")

</div>

Frankly, I’ve always had problems with PHP-FPM on any server I’ve ever used since it came out, regardless of what control panel was installed, or even if no control panel was installed. It doesn’t matter whether I configure it to listen on a socket or a port. At some point, usually several times a week, it poops the bed. The only difference is which error it throws.

I gave up on it a long time ago. Sometimes I try it for a while on one of the test sites I have for just such troubleshooting. I think the record has been six days without an error that shut down the whole site. So I just use FCGID. My servers are lightly-loaded. You can’t even tell the difference – except that FCGID doesn’t crash.

---

<div class="post-metadata">

**Author:** ![Jfro](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@Jfro](https://forum.virtualmin.com/u/Jfro)\
**Post date:** [August 29, 2019, 8:03pm UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/12 "2019-08-29T20:03:00Z")

</div>

WITH DA NEVER.

And with virtualmin 6.05 box centos 7 remiphp and codeit ( having for port 443 then openssl 1.1.1c and tls 1.3) repo also none probs after manual set it right. once.

That why i don’t try the update yet 😉 ( changepas renamed and that one part in the conf deleted and so for security meantime as workarround)

This one to [https://www.virtualmin.com/comment/816466#comment-816466](https://www.virtualmin.com/comment/816466#comment-816466)

It was with install already a problem but takes pretty much time to have it here known at support as BUG , i did do it manualy at commandline to that setting for pass and so with mariadb 10.3 , and replied on some here in forum with the official mariadb cookbook for that. ( YUP it did take much time and trying while one don’t expect such)

IT is YUP real hard to see and look and search the forum, the docs, and github info’s to know where are bugs, what is status for those and so on not so good.

Issue’s that are going private doesn’t make knowing about status / bugs / info’s easier . 😉

`So for both : Security related and a Schema “” BUGS" / in work should be found on one place much more easy then it is now? `

---

<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, 5:28am UTC](https://forum.virtualmin.com/t/virtualmin-reconfigured-all-php-fpm-configs-after-upgrade-to-6-07-gpl/60926/13 "2020-04-30T05:28:36Z")

</div>

Closed on April 30, 2020, 5:28am UTC


