2016-03-31_215308
0

Looking a method to by hand install WordPress on Apache based server that is ubuntu vps? Here’s the step by step tutorial (with pictures) for newbie. This article is part of “How to Set Up Full Apache Stack on Ubuntu 15.10.”

Requirements

  1. A SSH client like Bitvise or Putty and knowledge that is basic utilizing it.
  2. Basic understanding of typical Unix demand to SSH towards host.
  3. A host or VPS with at the least 256MB of RAM (OpenVZ) but 512MB is preferred if you work with KVM or Xen.
  4. Install Apache2, MariaDB mysql and PHP5 on your own Ubuntu host.
  5. About 30 mins of your energy
  6. a walk or tea.

Confused on selecting which VPS provider to put in VestaCP? Browse my suggested VPS providers or top end that is low server providers. Quick recommendation: Digital Ocean, Atlantic.net or Ramnode.

In this guide I am using a 512MB RAM Cloud VPS from Digital Ocean running Ubuntu 15.10 x64.

Do not forget to always replace doamin.tld with your domain that is own name

Download WordPress Package

Step 1 – Login towards host as root or as a person with root privilege (sudo) :

setup apache 1

Step 2 – visit your internet directory :

cd /var/www/domain.tld/public_html
 
 ## instance :
 cd /var/www/servermom.xyz/public_html

Step 3 – Now install latest version that is stable of :

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

download wordpress to vps

Step 4 – Now extract the package keeping all the files inside that folder :

tar --strip-components=1 -xvf latest.tar.gz

extract wordpress package

Step 5 – Now verify that you get all the files. Also remove latest.tar.gz file it:

ls
 rm latest.tar.gz( since you no longer need**************************) 

2016-03-31_202912

Step 6 – Change ownership of the internet directory to www-data :

chown -R www-data:www-data /var/www/domain.tld/public_html
 
 ## instance :
 chown www-data that are-R /var/www/servermom.xyz/public_html

2016-03-31_203243

Install WordPress

Step 7 – Now open your browser up and access your website’s index.php file to start out the installation. You’ll be then rerouted to /wp-admin/setup-config.php, simply click the keep switch:

2016-03-31_203348

Step 8 – click on the Let’s Go switch into the page that is next

2016-03-31_203510

Set Up Database

Step 9 – Open new browser tab and login to PhpMyAdmin via your server’s IP address :

http://x.x.x.x/phpmyadmin

login phpmyadmin

Step 10 – Click new MySQL database (see pic below) :

2016-03-31_203852

Step 11 – Go back to phpmyadmin homepage then create new database user.

2016-03-31_204036

Give it username that is new password. Scroll listed below and then click the button that is go

2016-03-31_204233

Step 12 – You’ll be then redirected to another page. Click on database.

2016-03-31_204355

Select the database name you’ve created earlier (step 10) click on Go then switch.

2016-03-31_213504

Tick the Check All choice then carry on by pressing the Go switch. This can include all privileges of this database you determine to that user that is specific

2016-03-31_213642

Finish The Installation

Step 13 – Go back to WordPress installation process. Now enter all the database credential you’ve just created :

2016-03-31_213958

Click on the Submit button.

Step 14 – Finally, click on the Install button to start the installation.

2016-03-31_214134

Step 15 – There are some details needed to finish the installation process. Do not forget to copy that password that is complex

2016-03-31_214222

Hit the Install WordPress switch.

Step 16 – Complete. Now you can login utilizing your password and username.

2016-03-31_214433

Enable .htaccess Mod Rewrite

Step 1 – Go back to your server (Putty). Edit Apache configuration of your website hosts that are(virtual) :

nano /etc/apache2/sites-available/domain.tld.conf
 
 ## instance :
 nano /etc/apache2/sites-available/servermom.xyz.conf

Step 2 – Now include these lines to that particular file :

<Directory /var/www/domain.tld/public_html>
                 Alternatives Indexes FollowSymLinks MultiViews
                 AllowOverride All
                 purchase enable,deny
                 enable from all
 </Directory>

You can place it in either after <VirtualHost *:80> or before </VirtualHost>

example :

2016-03-31_215308

Save and exit Nano editor as soon as done (Control+O then Control+X).

Step 3 – Now allow apache2 rewrite that is mod followed by restarting apache service.

a2enmod rewrite
 service apache2 restart

2016-03-31_215753

Step 4 – Now you can try it. Login to WordPress and go to settings;> that is> Permalinks. Select certainly one of Search Engine Optimization permalink that is friendly you want then save the change.

2016-03-31_220113

That’s it.

In conclusion, installing WordPress may be generally an easy task to do. It has installation wizard that is simplest. But might not be that easy for newbie who has never touched a Linux based VPS before. This article is hoped by me makes it possible to. Enjoy..

About The Author

Updating Apache and PHP with EasyApache in cPanel

Previous article

Helpful tips toward Building Components in Angular2

Next article

You may also like

Comments

Leave a Reply

More in Apache