PHP server shown as not starting in dashboard

SYSTEM INFORMATION
OS type and version Rocky Linux 9.5
Usermin version 2.102
Virtualmin version 7.30.3
Theme version 21.20.7
Apache version 2.4.62
Package updates All installed packages are up to date

Hello everyone.

I had a fresh install of Rocky 9.5. I installed Virtualmin from the following link: Downloading and Installing | Virtualmin — Open Source Web Hosting Control Panel
and followed the instructions there. There were no errors shown during the install. I then ran the install wizard and accepted the default options for each part and again no problems highlighted there.

I clicked the check configuration button and all went fine and the relevant parts to do with my problem are:

The following PHP execution modes are available : fpm cgi

The following PHP versions are available : 8.0.30 (/bin/php)

The following PHP-FPM versions are available : 8.0.30 (php-fpm)

Then I go to the dashboard and all is fine except this:

PHP-FPM 8.0.30 Server with right facing arrow to start it. So that suggests PHP is not running. I click on the arrow and it doesn’t start.

I have followed some advice in other posts and none of them have helped. I am still not that knowledgeable with linux hence using Virtualmin to manage things. I have not enabled any other repos and have not made any changes to anything apart from the suggestions in other posts but when they haven’t worked I have reversed them. As far as I know I have not installed mod-php. I have not yet added a virtual server so I can ensure everything is working as it should.

I hope someone may be able to help.

Thanks.

Maybe create a virtual server and see what happens. I don’t think you get any PHP-FPM servers configured until a Virtual Server exists to need one.

1 Like

Thanks @Joe I’ll do that.

Hi @Joe

I’ve tried that and get the following when I create a new virtual server:


Could you perhaps guide me to where I would find the bits it says I should look at?

Thanks

From a terminal run the two commands it suggests. My system is different so I couldn’t run them to verify I copied these correctly. You might have to insert the php version into the command.
journalctl -xeu php7.3-fpm.service
systemctl status php-fpm.service
journalctl -xeu php-fpm.service

You might also try here:

Thanks @ID10T i will try that.

Should I delete the new virtual server and then add it again while watching the logs so I get the parts of the logs which are relevant?

I’d think just restarting the php server would make sure the relevant entries haven’t ‘cycled out’.

Not had a chance to look at the logs yet. Will do that this weekend.

Problem is the php server will not restart and isn’t running at present. Could you please explain what ‘cycled out’ means?

Thanks for the help you are giving me.

It means not in the current logs because it is too old. That’s why I said to restart it before checking to ensure the logs would have fresh entries. I don’t fully understand how journalctl works so that was the thought behind this.

All thoughts and suggestions are helpful!

I’ll post the log entries over the weekend.

Thanks again.

1 Like