WordPress on Fedora with RPM, DNF/YUM

WordPress is packaged for Fedora and can be installed as a regular RPM (with DNF/YUM). The benefits of this method are that you don’t need to mess around with configuration files, filesystem permissions and since everything is pre-packaged to work together, additional configurations are minimal. At the end of this 3 minutes tutorial, you’ll get a running WordPress under an SSL-enabled Apache using MariaDB as its backend.

All commands need to be executed as root.

Database preparation

  1. Install MariaDB server (not necessarily on the same machine that will run WordPress and the web server)
    dnf install mariadb-server
  2. Start and prepare MariaDB server. Initial root password is blank (just hit enter on password prompt), answer the questions removing the test database
    systemctl enable mariadb
    systemctl start mariadb
    mysql_secure_installation
  3. Create a database, items in red were invented for this tutorial and will be used again in step 5
    mysql -u root -p -e "CREATE DATABASE blogdb; GRANT ALL PRIVILEGES ON blogdb.* TO 'bloguser'@'%' IDENTIFIED BY 'bloguserpassword'; FLUSH PRIVILEGES;"

WordPress preparation (may be configured on a machine other than the DB above)

  1. Install WordPress, MariaDB client and SSL support for Apache
    dnf install wordpress mariadb mod_ssl
  2. Configure WordPress to use same DB name, DB user and DB password as created on step 3 above
    sed -i 's/database_name_here/blogdb/; s/username_here/bloguser/; s/password_here/bloguserpassword/' /etc/wordpress/wp-config.php
  3. Optional but recommended: remove Fedora WordPress defaults that blocks access to anyone coming from the network
    sed -i 's/Require local/Require all granted/' /etc/httpd/conf.d/wordpress.conf
  4. Enable and activate the web server
    systemctl enable httpd
    systemctl start httpd
  5. Now continue regular WordPress configuration on the browser accessing the secure address https://your-webserver-address.com/wordpress/wp-admin/install.php

WordPress traditional wp-config.php file is located on /etc/wordpress/wp-config.php and you can make additional configurations there.

WordPress is configured in Fedora standard Apache on /etc/httpd/conf.d/wordpress.conf. You do not need to mess around with other standard Apache configuration files.

Install themes and plugins under /usr/share/wordpress/wp-content.

You can easily and safely update WordPress with a system standard command:

dnf update wordpress

10 thoughts on “WordPress on Fedora with RPM, DNF/YUM

  1. It’s really a nice and useful piece of information. I am happy that you shared
    this useful information with us. Please stay us informed like
    this. Thank you for sharing.

  2. Place a thin cotton yoga mat on prime of it.
    For example, in some yoga lessons, it’s common to make use of a sticky” mat and sprinkle
    clear water on it and place a clean, dry
    cotton mat on top of it. It seems to be more like a cotton tapestry” and provides you with traction to apply.

  3. In case you are accessing from your mobile system/pill(Android,iOS,Windows) enter your CSR Racing 2 sport
    consumer name and choose your operating system!If are you using a computer or a notebook join the machine
    to LAPTOP,Pocket book,Mac through USB cable/bluetooth and select the system
    and within the User Identify subject put the name of the machine,crucial after you join the machine,open the sport and leave the game open to learn the info
    from the game account and click the button Connect.

  4. Isso evita que intrusos, inclusive apto agafanhador, bisbilhotem os seus aplicativos e também arquivos pessoais, além com subjetivamente radiante permitir mais andamento para achar respectivo iPhone acabado/abafado (no fim
    de contas, é adequadamente capaz que qual esteja junto ele em cima de gatázio tente
    diversos códigos destinado a desbloqueá-lo). http://ahovey.w.skve.org/php_test.php?a%5B%5D=%3Ca%20href%3Dhttp%3A%2F%2Finvasaotech.com%2Fcomo-bloquear-celular-roubado-imei%2F%3EImei%20celular%3C%2Fa%3E

Leave a Reply

Your email address will not be published.