Why does everybody keep installing mod_php!? We keep telling y’all to never do that, but every danged day we have a new problem caused by installing mod_php. (Installing mod_php creates a new configuration file that hijacks all PHP requests before the Virtualmin per VirtualHost configuration even kicks in, which breaks things in a variety of ways.)
Because its package name is php or php73 or php7.3. This is irrational not to want to install it when you want PHP at your system. It should have been called php-mod or whatever. And calling to install php should actually install php-cli.
Although, it raises questions about how OP installed Virtualmin. @grouptoall.com Did you install it using beta version of install script? If so, what did you do afterwards? How did you end up installing php8.1 package?
Because as usual they all don’t follow the directions. They all think they need to “set up” their servers with everything first and THEN install Virtualmin.
It’s on just about every tutorial and video on the internet because they’re all written by people that want to sound like they know more than they actually do.
First install ubuntu server 22.04 (minimal) then install virtualmin then restore backup taken from my old server after resorted then i use this command:
I broked my server last week. when i was updated my server then reboot. its was ubuntu 20.04 with latest webmin and virtualmi. Then i decided to take backup then restored in ubuntu 22.04. yesterday i freshly installed ubuntu 22.04 then virtualmin then restored backup. backup was restored successfully but apache2 was not starting. same error (configuration failed)) i was get in ubuntu 20.04. Then yesterday i start figuring out where is the issue and found out the issue is not in apache2. the problem is in ssl.in these lines of apache2 conf file.
SSLEngine on
SSLCertificateFile /home/helppost/ssl.cert
SSLCertificateKeyFile /home/helppost/ssl.key
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCACertificateFile /home/helppost/ssl.ca
IPCCommTimeout 31
I’ve never seen a Wordpress plugin that needed a php extension to properly operate. I’ve set up dozens of blogs, forums and 5 e-commerce sites and never once had to add anything to php going back to 7.1.