Choose the php version

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.6
Webmin version 2.104

Hello everyone,

Today I configured Webmin on my small server to avoid using ISPConfig.
I set up a website and everything seems to be working.
The only thing I can’t understand is how to choose the PHP version in the website menu. There is the PHP button but it says:
PHP Admin Configuration Values
PHP Admin Configuration Flags
PHP configuration values
Configuration flags

In the tools - php configuration menu there are the versions installed on Ubuntu

Can you help me?
Sorry if my request may seem trivial to you

with best regards

Walter

1 Like

Unless you need multiple versions of php, don’t worry about it if nothing is broken. If the latest php supplied from your vendor works, just be happy. :slight_smile:
https://www.virtualmin.com/documentation/web/multiplephp/

Thanks so much for the input
I followed the instructions to the letter
However, I noticed that in my Webmin panel there are no menus, such as: “server configuration”
Is there a system to automatically install webmin?

Sorry, disregard my answer. I was thinking Virtualmin.

I have installed webmin, should I also install Virtualmin?

I wouldn’t install virtualmin unless it was a clean install. It will also install webmin. (If you have a website it may be useful to you . That’s a decision based on your needs .)

I looked at my Webming php config. You probably have the OS default PHP so no choice available.

with webmin there is no possibility to choose the php version?
I have 14 websites and setting the custom php version is important

With 14 websites you probably want Virtualmin.

But, you can try the link for multiple php versions. They should get installed and you should be able to manage them then. Without Virtualmin you will have to configure sites to use them manually. That I don’t currently know how to do but I’m sure you can look that up.

I installed virtualmin and got errors, now virtualmin doesn’t even work anymore :slight_smile:
can it be solved?

[INFO] Started installation log in /root/virtualmin-install.log
▣:white_medium_square::white_medium_square::white_medium_square: Phase 1 of 4: Check
Checking system time :heavy_check_mark:
Checking Perl installation :heavy_check_mark:
Checking CA certificates package [ERROR] Failed with error: 100

[ERROR] Something went wrong. Exiting.
[ERROR] The last few log entries were:
create mode 100644 xml/catalog
create mode 100644 xml/docutils-common.xml
create mode 100644 xml/xml-core.xml
After this operation, 0 B of additional disk space will be used.
Setting up mariadb-common (1:10.3.38-0ubuntu0.20.04.1) …
update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn’t exist
dpkg: error processing package mariadb-common (–configure):
installed mariadb-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
mariadb-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
… done
Checking CA certificates package: [2023-10-26 20:00:02 CEST] [ERROR] Failed with error: 100
[2023-10-26 20:00:02 CEST] [ERROR] Something went wrong. Exiting.
[2023-10-26 20:00:02 CEST] [ERROR] The last few log entries were:

Let’s make sure we are on the same page. By clean install I mean start with a minimal OS install and let Virtualmin do the rest. If that’s the case then the staff will have to look into why the installer failed.

I cleaned up Ubuntu 22 and the virtualmin installation was successful. But the web page doesn’t work

▣▣▣▣ Phase 4 of 4: Configuration
[1/21] Configuring AWStats :heavy_check_mark:
[2/21] Configuring Apache :heavy_check_mark:
[3/21] Configuring Bind :heavy_check_mark:
[4/21] Configuring ClamAV :heavy_check_mark:
[5/21] Configuring Dovecot :heavy_check_mark:
[6/21] Configuring Etckeeper :heavy_check_mark:
[7/21] Configuring Firewalld :heavy_check_mark:
[8/21] Configuring MySQL :heavy_check_mark:
[9/21] Configuring Postfix :heavy_check_mark:
[10/21] Configuring ProFTPd :heavy_check_mark:
[11/21] Configuring Procmail :heavy_check_mark:
[12/21] Configuring Quotas :heavy_check_mark:
[13/21] Configuring SASL :heavy_check_mark:
[14/21] Configuring Shells :heavy_check_mark:
[15/21] Configuring SpamAssassin :heavy_check_mark:
[16/21] Configuring Status :heavy_check_mark:
[17/21] Configuring Upgrade :heavy_check_mark:
[18/21] Configuring Usermin :heavy_check_mark:
[19/21] Configuring Webmin :heavy_check_mark:
[20/21] Configuring Fail2banFirewalld :heavy_check_mark:
[21/21] Configuring Virtualmin :heavy_check_mark:
▣▣▣ Cleaning up

[SUCCESS] Installation Complete!
[SUCCESS] If there were no errors above, Virtualmin should be ready

https://95.217.199.26:10000/

15: srv.promitalia.org 142.818ms !H

Does your provider have a firewall you need to configure? I can’t remember off hand what !H means and I can’t find it searching.

EDIT: OK. H is host unreachable. ! means got a reply.

root@srv ~ # sudo ufw reload
Firewall reloaded

No hostname?

root@srv ~ # hostname
srv.promitalia.org

Oct 26 21:23:54 srv.promitalia.org systemd[1]: Starting Webmin server daemon…
Oct 26 21:23:54 srv.promitalia.org perl[145287]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
Oct 26 21:23:56 srv.promitalia.org webmin[145287]: Webmin starting
Oct 26 21:23:57 srv.promitalia.org systemd[1]: Started Webmin server daemon.

I’m not talking about the firewall on the machine. Does your hosting provider, if applicable, provide a firewall. I can ping the server but not connect otherwise.

You could try stopping the firewall but I doubt that’s it. A fresh install is pretty well configured to answer.

I would like to avoid doing a new installation of the Ubuntu server, I have 14 websites that I should export
Webmin worked and I was able to set up the first site

virtualmin is started
thank you for your patience

I see you posted since I started typing this but I’ll post it anyhow. It may still be useful.

I’m sorry you didn’t understand my ‘clean install’ statement.

That said, what’s done is done. Again, I apologize but the first requirement listed on the install page is:
“Automated installation requires a freshly installed, supported OS”

When you said you installed Webmin and set up a website I thought you were starting from scratch.

The safest way to proceed is to set up a AWS Lightsail instance. You rent it by the minute, so when done, stop it and the charges stop.

Install virtualmin, and set up the websites there. Redo the current server and import them back in.

What did you mean by a fresh install?