Setup Plesk Panel and Deploy Wordpress Website in Ubuntu VPS - Part 1

Setup Plesk Panel and Deploy Wordpress Website in Ubuntu VPS - Part 1

In this blog series, first we will create a wordpress website in my local system, then deploy a new server with plesk panel and in that plesk panel we will deploy a wordpress website, which will create in my local system.

For development i am keeping domain name http://dev.samplewebsite.loc and for production domain name http://dev.samplewebsite.com.

This blog will have miltipart series

  1. Create new wordpress website in your local system
  2. Deploy a new server with plesk control panel
  3. Setup plesk control panel for wordpress website
  4. Deploy Wordpress website through plesk panel in vultr VPS

Prerequisites

  1. Install Xampp

If you have not installed xampp, you can follow link below and install:

https://www.apachefriends.org/download.html

Create a new wordpress website in your local system

Download wordpress

We have to download latest wordpress and extract in your project directory.

https://wordpress.org/download/

Extract the zip file in project directory or working directory

After extract your folder should be look like below:

Rename the wordpress extracted folder

As I already mentioned, my domain/server name will be dev.samplewebsite.loc. You can choose domain/server name according to your choice.

So changing folder name wordpress-5.9.2 to samplewebsite.loc, after changing you can get like below:

Create a virtual host for wordpress website

Go to the following folder:

C:\xampp\apache\conf\extra

Open httpd-vhosts.conf file and add following lines in the last:

ServerAdmin webmaster@dev.samplewebsite.loc DocumentRoot F:/Projects/samplewebsite.loc ServerName dev.samplewebsite.loc Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all Require all granted

Save and close the file.

Create a database for wordpress website

Open your xampp and start Apache and MySql.

When we click on MySql Admin, it will open this url http://localhost/phpmyadmin/ in browser.

Create a database

We can see phpmyadmin like below:

Then click on Databases -> Write database name -> Click on Create.

After creating a database, we can database name on the left side.

We have created database for wordpress website. Keep a note of database details, we need to write in wordpress configuration file.

My local database details:

DB name: sampledb
DB user: root
Password: 
host: localhost

Change local configuration in wordpress

You can create copy of wp-config-sample.php file or rename wp-config-sample.php to wp-config.php.

Open the wp-config.php file and write database details etc...

Make a hosts entry in your local system

Open command prompt as administrator. Then go to drivers/etc directory and open hosts file. In that make a entry like below:

cd drivers/etc notepad hosts

It will open a hosts file in notepad. Add server name like below and save that file.

127.0.0.1 dev.samplewebsite.loc

Save and close the hosts file.

Run the wordpress website

Open this url http://dev.samplewebsite.loc/ in browser:

It will install the wordpress. Default Language is "English (United States)", let it be like that only. Then press "Continue".

Next screen will show like below. We need to add Site Title, username, password, email etc... then click "Install Wordpress".

Wordpress installed successfully. Now login to admin dashboard, click on "Log In".

Enter Username and password and click on Log In.

After login, we will see dashboard like below:

Click on "Visit Site", we can see sample website like below. We don't want to work on theme rightnow. We will just deploy this sample website like this only.

Verify database table created by wordpress

Go to http://localhost/phpmyadmin/ and see database tables.

We have created successfully a wordpress website in local. That's it in this part. In next section, we will deploy new server with plesk panel.

Machine Learning

  1. Deal Banking Marketing Campaign Dataset With Machine Learning

TensorFlow

  1. Difference Between Scalar, Vector, Matrix and Tensor
  2. TensorFlow Deep Learning Model With IRIS Dataset
  3. Sequence to Sequence Learning With Neural Networks To Perform Number Addition
  4. Image Classification Model MobileNet V2 from TensorFlow Hub
  5. Step by Step Intent Recognition With BERT
  6. Sentiment Analysis for Hotel Reviews With NLTK and Keras
  7. Simple Sequence Prediction With LSTM
  8. Image Classification With ResNet50 Model
  9. Predict Amazon Inc Stock Price with Machine Learning
  10. Predict Diabetes With Machine Learning Algorithms
  11. TensorFlow Build Custom Convolutional Neural Network With MNIST Dataset
  12. Deal Banking Marketing Campaign Dataset With Machine Learning

PySpark

  1. How to Parallelize and Distribute Collection in PySpark
  2. Role of StringIndexer and Pipelines in PySpark ML Feature - Part 1
  3. Role of OneHotEncoder and Pipelines in PySpark ML Feature - Part 2
  4. Feature Transformer VectorAssembler in PySpark ML Feature - Part 3
  5. Logistic Regression in PySpark (ML Feature) with Breast Cancer Data Set

PyTorch

  1. Build the Neural Network with PyTorch
  2. Image Classification with PyTorch
  3. Twitter Sentiment Classification In PyTorch
  4. Training an Image Classifier in Pytorch

Natural Language Processing

  1. Spelling Correction Of The Text Data In Natural Language Processing
  2. Handling Text For Machine Learning
  3. Extracting Text From PDF File in Python Using PyPDF2
  4. How to Collect Data Using Twitter API V2 For Natural Language Processing
  5. Converting Text to Features in Natural Language Processing
  6. Extract A Noun Phrase For A Sentence In Natural Language Processing