Building your own WordPress page doesn’t have to be difficult. While we do offer a Managed WordPress web hosting plan, you could also install WordPress yourself. If you would like to install WordPress from scratch and manage it yourself, then this post is meant for you. Whether you want to use WordPress for a professional company site or for a fun side hustle, the first step is getting WordPress set up!

Quick tip: To ensure your WordPress page is encrypted, which means any sensitive data going between your site and the web browser cannot be intercepted, install an SSL certificate.

To learn how to install WordPress onto your server without using cPanel, keep reading!

 

Prerequisites

 

Have L.A.M.P (Linux, Apache, MySQL, and PHP) installed on your server prior to proceeding with installation steps.

 

Installation

 

#yum install php-gd

#service httpd restart

#cd~

#wget https://wordpress.org/latest.tar.gz
#tar xvf latest.tar.gz

#rsync -avP ~/wordpress/ /var/www/html/

#mkdir /var/www/html/wp-content/uploads

#chown -R apache:apache /var/www/html/*

 

Configure MySQL

 

#mysql -u root -p
>CREATE DATABASE wordpressdb;
>CREATE USER wpuser@localhost IDENTIFIED BY ‘password’;
>GRANT ALL PRIVILEGES ON wordpressdb.* TO wpuser@localhost;
>FLUSH PRIVILEGES;
>exit;

 

 

Configure WordPress

 

#cd /var/www/html

#cp wp-config-sample.php wp-config.php
#nano wp-config.php
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpressdb’);
/** MySQL database username */
define(‘DB_USER’, ‘wpuser’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘wppassword’);

 

Configure Apache

 

#nano /etc/httpd/conf/httpd.conf

Search for ServerRoot, DocumentRoot, and Directory and change the following:

ServerRoot “/var/www/html
DocumentRoot “/var/www/html
Directory “/var/www/html

 

Then refresh your Apache.

#systemctl start httpd.service

 

Setting up WordPress

 

Once you have completed the steps above and entered your IP address in the browser, you should see your WordPress set up like below.

 

installing wordpress

installing wordpress

 

After seeing this, you will know that you have successfully installed WP. Hit “Install” and you will be prompted to a login page. That’s it! Let us know if you have any questions about installing WordPress and we’ll be happy to help.