The lingo is that you need a "LAMP" foundation, i.e. Linux, Apache, MySQL, and PHP. The first two I have already, the last two are pretty much no-brainers that just involve installing fedora packages, so let's dive in. I found this dandy outline:
su dnf install mariadb-server mariadb systemctl enable mariadb.service systemctl start mariadb.service mysql_secure_installationThe last step above locks down MySQL and sets passwords and such. A nice "gift" for people who aren't MySQL experts. I follow all the steps and set a MySQL root password.
/etc/my.cnf.d/mariadb-server.cnfThe "datadir" variable is set to "/var/lib/mysql", but I make the following changes (and copy files).
#datadir=/var/lib/mysql datadir=/u1/mysqlAfter this I delete the entire contents of the "/var/lib/mysql" directory. Why? Because on my system the root partition is disposable and is not backed up. The /u1 partition is mirrored to /u2 AND it is backed up.
I leave the directory there as a place for the mysql.sock file to live, since it does not move happily to other locations.
If you do this, take care wih ownerships and permission (make them the same as the original /var/lib/mysql).
mysql -u root -p CREATE DATABASE wordpress; CREATE USER wpuser@localhost IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost IDENTIFIED BY ‘password’; FLUSH PRIVILEGES; exitOf course we use a string other than "password" in the above, my secret.
dnf install php dnf install php-gd dnf install php-mysqlnd systemctl restart httpd
wget http://wordpress.org/latest.tar.gz
Adventures in Computing / [email protected]