VirtualMin Apache Failed to Start

Processor information AMD EPYC 7282 16-Core Processor, 10 cores System uptime 13 hours, 59 minutes
Running processes 335 CPU load averages

How can I reinstall so that everything works without loosing data

Do not reinstall as you must install on a clean OS.

I assume you did that?
You haven’t given us the basic required information use the clipboard icon on the dashboard.
have you checked configuration?

If Apache installed as your webserver and is failing to start something is killing it → what have you added to the box?
was it running before?
look in your logs for a clue.

I installed apache again by deleting the virtual
image

Now php stopped working

It shows disabled

How can I fix this situation where Virtualmin works again with SSL

The execution options should be FPM or FCGId

If PHP has stopped working concentrate on finding out why
reinstalling anything should always be a last resort choice.

You should always goto logs to find out why. that is why they are there.

PHP is easy to kill and nearly always the result of bad code in a app.
What are you running as an app?

Screenshot 2023-10-16 163047

You know what you are using we don’t.
You know what you did to the box after installing Virtualmin, we have no idea → give us some clues please, don’t leave us guessing.

The server is running docker containers and besides that we have a php based code to work with Grafana and InfluxDb to generate reports .

Since now when we are trying to open the url I am able to see default Ubuntu Page , but php scripts are not executing.

On CLI php shows installed .

What os are you running ? What happens if you query the status of the php-fpm server does it show any errors ? The same goes for the apache2 server


Operating system Ubuntu Linux 20.04.5
Webmin version 2.105 Usermin version 2.005
Virtualmin version 7.8.2 Authentic theme version 21.09.5

And the apache server ?

Hmm just a thought have you enabled php-fpm support in appace as you have ‘reinstall ed’ apache

sudo systemctl status apache2

How can I check this ?

You need to make sure that in the apache domain config file that you are using the correct php-fpm pool file for the domain and ensure you have enabled proxy_fcgi in apache and also restarted apache. You say you reinstalled apache what commands did you use to do that ?

I am unable to recollect ,

For the future.
It is good practice to keep a physical record of every thing (i mean everything) you do as you experiment. Eventually you will become so expert that you will not need to do that. until then, one step at a time noting the result of doing that.

Noted , For now how can i find out and retrieve the information you seek

Going back to your post #3 in this topic, you indicated that PHP was “disabled”.
Going to Server Configuration -> PHP Options you should see


The execution mode should be set as FPM not “disabled”

That makes no sense!
On a new install of Virtualmin I have never seen that.
I am pretty sure the failure to show the execution modes has nothing to do with Apache @staff could confirm that.