LAMP installed, now what?

So you have a fresh LAMP install on CentOS 8 and now you want to continue with an installation of WordPress? Here you go:

Create the WordPress database

mysql -u root -p

CREATE DATABASE wordpress;
CREATE USER [email protected] IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON wordpress.* TO [email protected] IDENTIFIED BY 'PASSWORD';
FLUSH PRIVILEGES;
exit

Download and deploy the code.

cd ~
wget http://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
sudo rsync -avP ~/wordpress/ /var/www/html/
mkdir /var/www/html/wp-content/uploads
chown -R apache:apache /var/www/html/*
cd /var/www/html
cp wp-config-sample.php wp-config.php

Update your wp-config.php with the database connection information you created above.

vi wp-config.php

Text editor

If you don’t like vi, you could install whatever other text editor you prefer.