Atlantic.Net Blog

Install WordPress on a Fedora 22 Cloud Server

Brendan Bonner
by Atlantic.Net (39posts) under VPS Hosting
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]';
flush privileges;

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.

nano wordpress/wp-config.php

For a simple setup, we need to edit the following values:

define(‘DB_NAME’, ‘wordpress’);

define(‘DB_USER’, ‘wordpressuser’);

define(‘DB_PASSWORD’, ‘[insert-password-here]’);

It should look like this when completed:

An image showing the styling for the WordPress db info

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

An example of ifconfig showing the IP address

In the above example, we would put in the browser address bar and get the following page.


An example of the WordPress web installation

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 VPS hosting as well as managed hosting services which include a layer of business-essential managed services to your hosting packages. Contact us today for more information.

Get A Free To Use Cloud VPS

Free Tier Includes:
G2.1GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G2.1GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom