How to install 20.04 with maria db fast cgi fpm nginx for wordpress and what else makes it faster

SYSTEM INFORMATION
OS type and version REQUIRED
Virtualmin version REQUIRED

Latest current digitalocean ubuntu 20.04

Lemp minimal
Script runs but if i remove mysql and install mariadb then it doesnt do wizzard and also

sh /root/install.sh -b LEMP -m

#mysql_secure_installation           


NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

and also post-wizzard has error
Warning! An error occurred starting MySQL :

Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.

Did 8.1 php instead of tutorial php8.0 ondrej

Didnt got to

Install Ubuntu 20.04 LTS - default settings all the way, no extras. (Just skip past the part with all the extra options you can install such as docker.)

Install MariaDB. (No database installer is run during the 20.04 installer. How you got MySQL on your installation to begin with is anybody’s guess.)
$ sudo apt install mariadb-server

Install Nginx.
$sudo apt install nginx

Install Virtualmin.
$ wget https://software.virtualmin.com/gpl/scripts/install.sh
$ sudo /bin/sh install.sh

Run the post installer wizard.

Done.

By the way, I’ve never seen Nginx or MariaDB make any difference at all in speed on a Wordpress site or any other site for that matter.

Well then need to have also fast cgi php fpm, then will be difference with nginx. How to set up that?

Warning! An error occurred starting MariaDB :

Failed to start mysql.service: Unit mysql.service not found.

That’s a php option set on the php options tab of the server configuration of each Virtual Server. Go to the Virtual Server / Server Configuration / PHP Options and you’ll see the mode selection there.

Oh ok then fpm i have and FCG plain also have.
Which one is better?
Also in my previous post you see i was not able to get maria db.

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