Verified and Tested 05/25/15
This how-to will show you how to install WordPress on Fedora 22. WordPress started as a blogging system, but now has become a full content management system (CMS). It is a free, open source program, which has become the most popular CMS on the Web. With thousands of plugins, your website is nearly limitless.
– A Fedora 22 server running LAMP or LEMP is required. Please see our how-tos for Fedora 22 LAMP or LEMP.
Creating The WordPress Database In MariaDB on Fedora 22
We are going to start off by setting up the database in MariaDB, by running the following commands:
mysql -u root -p
When prompted, enter your MariaDB root password that you set up when installing MariaDB.
In MariaDB, enter the following commands: (Make sure you set your secure password where it says [insert-password-here])
create database wordpress character set utf8 collate utf8_bin;
grant all privileges on wordpress.* to [email protected] identified by '[insert-password-here]';
The commands above creates a database called wordpress, a dbuser named wordpressuser with a password [insert-password-here]. You can modify these settings to your liking.
Downloading And Unpacking The Latest WordPress Install on Fedora 22
Since we created the database, we can now move on to the next step of downloading the latest WordPress install by running the following command:
Note: if Wget is not installed, install it by running the command:
dnf install wget
Wget will download the compressed WordPress install, in the directory that you are currently in. We now need to unpack it by running the command:
tar -xzvf latest.tar.gz
Configuring the WordPress Install on Fedora 22
wp-config.php is where WordPress gets its base configuration. We need to make a wp-config.php by copying wp-config-sample.php and making a new file. To do that run:
cp wordpress/wp-config-sample.php wordpress/wp-config.php
Next we need to edit wordpress/wp-config.php. In this how-to we will be using the text editor nano.
For a simple setup, we need to edit the following values:
It should look like this when completed:
Please be careful when updating this file.
We now need to move the config files to the web directory.
For LAMP run the command:
sudo cp -r ~/wordpress/* /var/www/html
For LEMP run the command:
sudo cp -r ~/wordpress/* /usr/share/nginx/html
Finishing The WordPress Install In The Web Installation on Fedora 22
We now can go to the web installation by going to http://yourhostname-or-ipaddress in your browser.
If you are unsure what you IP address is run the following:
An example of ifconfig showing the IP address 188.8.131.52
In the above example, we would put http://184.108.40.206/ in the browser address bar and get the following page.
An example of the WordPress web installation
The next step is to follow the web installation by submitting your information. Congratulations you have installed WordPress on Fedora 22, please check back for more updates. For more information, you may want to check out the WordPress Codex.
Atlantic.net offers managed hosting services which include a layer of business-essential managed services to your hosting packages. Contact us today for more information.