1. Website Planet
  2. >
  3. Blog
  4. >
  5. How to Install WordPress and Connect a Domain with YesUpHost

How to Install WordPress and Connect a Domain with YesUpHost

Gwen Rodgers
Gwen Rodgers
24
July 26, 2019

YesUpHost, which has been providing dedicated server rentals since 1989, has a 99.9% uptime guarantee and an environmentally friendly infrastructure. It’s intended for experienced website owners.

If you’ve read my article explaining how to create an account with YesUpHost, you’ll know that customer service is less than supportive. Be prepared to work alone if you’re going to install WordPress and connect a domain.

Or you could just refer to this step-by-step guide to setting up a WordPress website on YesUpHost. Unless you’re a master of the command line, I’d set aside around an hour from start to finish.

Step One: Log into Your Server Terminal

Using the information provided in your welcome email, log into your server terminal.

Step Two: Update Your Server

Once you’ve logged into your server, make sure that it is up to date by running the following command:

yum update -y

Step Three: Install the Apache Web Server

To install the Apache web server, run the following command:

yum install httpd -y
service httpd start

Step Four: Install PHP

To install WordPress, first you need to install the latest version of PHP. In this instance, the default repository provided an outdated version, so I used a custom repo to get the latest version of PHP.

yum install http://rpms.remirepo.net/enterprise/remi-release-6.rpm -y
yum install yum-utils -y
yum-config-manager –enable remi-php72
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap
php-zip php-fileinfo  -y
php -v
service httpd restart

Step Five: Install and Start the MySQL Server

Quickly install a MySQL server by inputting the following command:

yum install mysql-server

Then start the MySQL server:

service mysqld start

After the installation is complete, enable Apache/MySQL to start automatically upon server boot with the following command:

chkconfig httpd on
chkconfig mysqld on

Step Six: Create a Database for WordPress

Next, you need to create a database for your WordPress installation. Decide on a database name (e.g., wp_db), a username (wp_user), and a strong password (strong_password).

mysqladmin create wp_db

mysql
grant all privileges on wp_user.* to wp_user@localhost identified by
‘khtgYW09’ ;
flush privileges;
cntrl+D

Important: Make a note of these credentials, since you will need them in Step Ten.

Step Seven: Create a Virtual File Host for the Website

Enter the following command to create a virtual host file for the website:

vi /etc/httpd/conf.d/domainname.conf

Add the following contents to that file:

<VirtualHost *:80>ServerName pesqa.org
ServerAlias www.pesqa.org
ServerAdmin webmaster@pesqa.org
DocumentRoot /var/www/pesqa.org/public_html<Directory /var/www/pesqa.org/public_html>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>ErrorLog /var/log/httpd/pesqa.org-error.log
CustomLog /var/log/httpd/pesqa.org-access.log combined
</VirtualHost>

And restart the Apache service:

service httpd restart

Step Eight: Download WordPress

Use the following command to download the latest version of WordPress:

cd /var/www/domainname/
wget https://wordpress.org/latest.tar.gz
tar xf latest.tar.gz
mv wordpress domainname
chown -R apache /var/www/domainname/

Step Nine: Point the Domain Name to the Server

YesUpHost does not sell domains, so you’ll need to purchase or use a domain from a third-party registrar. To point it to your WordPress website on your YesUpHost server, update your A record at your third-party registrar to point to the IP address provided in your welcome email.

Step Ten: Finish WordPress Setup

When your Domain Name System (DNS) has propagated, open a web browser and go to your domain. Proceed with the setup by following the on-screen WordPress instructions and using the database credentials created in Step Six:

Database Name
Username
Password

Run the WordPress installation wizard, and you’re done!

Made for Experts Only

This isn’t the easiest setup. It’s okay for experts who have experience in the command line, but don’t expect any support from customer service if you run into problems. Its live chat is consistently off as far as I can tell (but that’s a whole other story, which you can read about here).

I’d only recommend this to developers who have a specific requirement to have a CentOS, otherwise, I’d head over to Vultr, which offers the same powerful features but with a better interface and better customer service.

24 claps
Clap for the post if you found it useful!

Any comments?

0 out of minimum 100 characters
Required Field Maximal length of comment is equal 80000 chars Minimal length of comment is equal 100 chars

We check all user comments within 48 hours to make sure they are from real people like you. We're glad you found this article useful - we would appreciate it if you let more people know about it.

Share this blog post with friends and co-workers right now:

We check all comments within 48 hours to make sure they're from real users like you. In the meantime, you can share your comment with others to let more people know what you think.

Once a month you will receive interesting, insightful tips, tricks, and advice to improve your website performance and reach your digital marketing goals!

So happy you liked it!

Share it with your friends!

© 2019 WebsitePlanet.com. All Rights Reserved.