Create WordPress Website in Azure App Service and GoDaddy MySQL Database

Microsoft Azure App Service provides an easy way to install Wordpress. Just follow the article Create a WordPress web app in Azure App Service   and a wordpress website can be setup with minutes.

The only problem is that Azure Bizpark account can not be sued with MySQL database. And the 3rd party mysql service (ClearDB) is quite expensive.  Therefore I would create a default webapp and install Wordpress manually.

First I will create an empty App service. 



1. Create deployment credentials for your app in the Azure Portal. To do this, in your app's blade, click Settings > Deployment Credentials.

2. After you have configured deployment credentials, obtain the FTP connection information by going to Settings > Properties, and then copying the values for FTP/Development User, FTP Host Name, and FTPS Host Name.

3. From your FTP client, use the connection information you gathered to connect to your app.

4. Copy your files and their respective directory structure to the /site/wwwroot directory in Azure (or the /Data/Jobs directory for WebJobs).

5. Browse to your app's URL to verify the app is running properly.

After above step the ftp account and login information will be available through the App Services essentials tab. Use FileZilla to enter the login information. You can now upload your Wordpress installation

The last step is to configure your domain name following this article: https://azure.microsoft.com/en-us/documentation/articles/web-sites-custom-domain-name/ . It took me quite time to figure out that since I my using the Cloudflare as my name server, the domain binding can not recognize my domain CName and A record. After I switch the domain name server back to the default GoDaddy name server, everything works fine.

After the domain binding works fine, we can now download and upload the wordpress installation to the app service.

Wordpress can be downloaded from here: https://wordpress.org/download/. After uploading the wordpress files to the Site/wwwroot folder, the wordpress is ready to be configured.

Now let's configure a MySQL database on GoDaddy. Following is the information required to be prepared to setup the MySQL Database.

Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.
  1. Database name
  2. Database username
  3. Database password
  4. Database host
  5. Table prefix (if you want to run more than one WordPress in a single database)
We're going to use this information to create a wp-config.php file. If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open wp-config-sample.php in a text editor, fill in your information, and save it as wp-config.php. Need more help? We got it.
In all likelihood, these items were supplied to you by your Web Host. If you don't have this information, then you will need to contact them before you can continue. If you're all ready…
After creating a GoDaddy MySQL database, just continue with the wordpress setup with the database information and the wordpress installed on Azure App Service will run with a MySQL Database from GoDaddy. 

An blank wordpress page will load in about 2 seconds following above approach. For most cases the speed should be OK.






Comments

Popular posts from this blog

Javascript Hosted on Google Drive Not Working Reliably

Newsmag Theme and External Featured Image

Responsive Web Design