Virtualmin sites maintenance mode after reboot

SYSTEM INFORMATION
OS type and version centos 7
Webmin version 2.021
Virtualmin version 7.7
Related packages apache, php

I have a system with both Symfony-based and React sites. However, after every system reboot, all the Symfony-based sites display a maintenance mode message, while the React sites function properly. I tried various solutions and eventually discovered a workaround. By changing the ‘PHP script execution mode’ in the ‘PHP Options’ section of the Virtualmin panel to ‘disable,’ saving the changes, and then reverting it back to its original value (FPM) and saving again, I am able to fix the issue temporarily. Could you please assist me in finding a permanent solution so that I don’t have to repeat this process after each server reboot?

As you already know Symphony is a PHP Framework just like React is a Node/JS Framework. I would guess (just a guess) that the cause has more to do with the way Symphony is set up on your VS. rather than PHP setting (especially as just disabling PHP - which must break Symphony, then re enabling PHP as FPM fixes the issue.) Is Symphony restarting as if from scratch? Does it produce a log somewhere when it doesnt start correctly that gives some useful error report? Is there an error in the PHP log?

1 Like

As mentioned in another thread vmin creates a simlink to the version of php that is selected when you change your php version. It may be you are using a version of php that is incompatible with the symphony version. If this is the case the devs are ware of this and it is fixed in the next release. However I don’t use symphony so this is just a thing to check rather than being a solution. My problem was very similar but not using symphony

1 Like

After conducting further investigation, I discovered that the PHP-FPM service was disabled. Since I didn’t manually install this package, I’m unsure if it was installed but not enabled during the Virtualmin setup or if it was my mistake for not enabling it. However, after enabling PHP-FPM, the problem was resolved. Thank you for your assistance.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.