MASIGNCLEAN104

How to install setup WordPress on Microsoft Azure

iklan banner

Welcome to the percentage 2 of the tutorial How to run blazingly fast WordPress on Microsoft Azure. In the showtime part, nosotros discussed setting upwards a Virtual Machine on your Azure account. And inwards this post, nosotros volition consider how to connect to your server as well as start downloading as well as installing WordPress on it.

Install & setup WordPress on Microsoft Azure

This post volition include a lot of terminal commands, hence delight endeavor to follow the tutorial footstep past times footstep as well as endeavor non to skip whatever step.

Setting upwards your server

Step 1: To communicate amongst your virtual machine, yous need to flora an SSH connexion as well as exercise an SSH client.

What is SSH?

According to Wikipedia, Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. The best known instance application is for remote login to estimator systems past times users.

We are using PuTTY, a gratis SSH as well as telnet customer inwards this tutorial. So for this step, yous are required to download as well as install PuTTY from here.

Step 2: Login to your Azure panel, opened upwards the virtual machine, nosotros created inwards the showtime percentage as well as striking ‘Start’. Then click on ‘Connect’ to start the connection. Now a pop-up volition display your username as well as Earth IP address of your machine. Copy the entire SSH hostname (e.g. yourusername@192.168.5.1). You may click on the images to consider the larger version.

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure

Now opened upwards PuTTY as well as glue this hostname inwards the Host Name plain as well as pick out connexion type every bit SSH as well as striking opened upwards amongst all other settings every bit default. Influenza A virus subtype H5N1 novel terminal window would opened upwards as well as volition prompt yous for the password. Enter the password that was chosen inwards part 1 spell creating a virtual machine. Now yous are hold upwards connected to your virtual server over an SSH connection. All yous need to exercise right away is teach into about commands inwards this terminal window to install proper software as well as WordPress.

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure

Installing Apache

Step 3: First of all, yous need to brand certain that all the packages on your installation of Ubuntu are upwards to date. Run the next ascendance to update them:

sudo apt-get update

Now we’ll install Apache, a gratis HTTP server software. Basically, Apache volition live the ane listening to someone’s asking to display your website's content. Read to a greater extent than almost Apache here. Run the next ascendance to install Apache:

sudo apt-get install apache2

Now navigate to the directory where Apache’s configuration file is saved as well as opened upwards it using the text editor.

sudo nano /etc/apache2/apache2.conf

At the terminate of this file add together the next line:

“ServerName 127.0.0.1”.

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure
Now salve the file past times pressing ‘Ctrl + O’ as well as hence Enter as well as and hence ‘Ctrl + X’.

Restart the Apache service:

sudo service apache2 reload

And grant permissions to Apache past times executing the next command:

sudo ufw permit inwards “Apache Full”

Installing MySQL as well as PHP

Step 4: Execute the next commands inwards monastic nation to install MySQL as well as PHP on Ubuntu:

sudo apt-get install mysql-server

Choose an appropriate MySQL source password as well as striking ‘Enter’.

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mysqlsudo apt-get install php5-clisudo apt-get install php5-gd libssh2-php

PHP files are to live given to a greater extent than priority than the HTML files, hence nosotros need to modify about other configuration file:

sudo nano /etc/apache2/mods-enabled/dir.conf

Now inwards this file, motion “index.php” hence that it comes earlier “index.html”. Restart the Apache server.

sudo service apache2 reload

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure

Creating a MySQL database

Step 5: Follow the commands:

mysql -u source -pCREATE DATABASE essay out DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;GRANT ALL ON test.* TO ‘tester’@’localhost’ IDENTIFIED BY ‘testpwd';FLUSH PRIVILEGES;Exit;

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure
These commands volition exercise a database named essay out amongst a user called “tester” as well as password “testpwd”. This database volition live used past times WordPress to store all the data.

Installing WordPress

Step 6: This is genuinely the footstep that downloads WordPress. Navigate to the source directory as well as and hence download as well as extract WordPress.

wget http://wordpress.org/latest.tar.gztar xzvf latest.tar.gz

Navigate to the World Wide Web directory where all the website files are stored as well as re-create the entire contents of the WordPress hither inwards a novel folder of your choice.

cd /var/wwwsudo mkdir twcwp

Now exercise the wp-config.php file past times creating the re-create of sample configuration file as well as and hence re-create the entire contents of the downloaded folder into the ‘wordpress’ folder inwards the www directory.

cp  /wordpress/wp-config-sample.php  /wordpress/wp-config.phpsudo rsync -avP  /wordpress/ /var/www/twcwp/

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure
Navigate to the novel website directory as well as edit the WordPress configuration file hence that the WordPress tin communicate amongst the database.

cd /var/www/twcwp/sudo nano wp-config.php

Enter the database details nosotros created inwards previous steps as well as salve the file. (see screenshot below for reference)

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure

Configuring Apache

Step 7: Now for the terminal step, nosotros need to configure apache hence that it knows at that topographic point is a website running nether our “twcwp” folder. We need to navigate to the available sites folder as well as exercise a novel file called ‘twcwp.conf’ which is similar to the default configuration file.

sudo chown www-data:www-data * -Rcd /etc/apache2/sites-availablesudo cp 000-default.conf twcwp.confsudo nano twcwp.conf

In this file modify the next lines

  • ServerAdmin your_email_adress
  • ServerName twcwp.com
  • ServerAlias twcwp.com
  • DocumentRoot /var/www/twcwp

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure

ServerAlias should live the domain cite you’ve registered (in our instance we’ve non registered the domain cite but nosotros are but using it for reference).

Execute these terminal ready of commands:

sudo chown -R twctestingadmin:www-data *sudo mkdir /var/www/twcwp/wp-content/uploadssudo a2ensite twcwp.confsudo service apache2 reload

Here “twctestingadmin” is the username of admin trouble concern human relationship on our virtual car as well as “twcwp” is the directory that contains WordPress files. You tin supersede these strings amongst your details.

And this is it, right away yous bring a fully functional virtual car running on Microsoft Azure that is hosting your WordPress website. All yous need to exercise is right away configure your DNS records hence that the website points to Earth IP address of the virtual machine.

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure

If yous desire to temporarily run your website, yous tin edit the Windows hosts file as well as add together an entry that volition map Earth IP address to the domain cite temporarily. (see screenshot for reference)

How to run blazingly fast WordPress on Microsoft Azure How to install  setup WordPress on Microsoft Azure

The tutorial is pretty long as well as involves a lot of steps. You may experience gratis to inquire whatever questions inwards the comments department below as well as nosotros volition live happy to assistance yous out. Some price used inwards this post may appear novel to you, yous tin Google search them or but drib a message inwards comments.

Also, I would similar to innovate yous to the 2 personalities who brought us this wonderful Workshop inwards the Chandigarh area:

The workshop was collectively conducted past times Microsoft Users Group Chandigarh as well as WordPress Chandigarh. You tin brand it impact amongst both the groups on Facebook as well as expect for upcoming meetups inwards Chandigarh expanse on meetup.com.

Related reads:


Source: https://www.thewindowsclub.com/
Share This :