CAll Us: +91 88 00 563434   Login

Install WordPress over SSH

You are here:
< All Topics

Although WordPress set up is feasible by website hosting management panel like cPanel or Plesk, this documentation is about WordPress set up on VPS, Fast server or Devoted servers with no management panel put in in it.

Step 1:

Hook up with server over SSH.

Then go the placement the place WordPress must be put in. In my case, I need to set up WordPress within the dwelling listing of the consumer “take a look at”. Additionally it’s the doc root of my area “mydomain.com”.

root@WordPress:~# su – take a look at

take a look at@WordPress:~$ pwd

/dwelling/take a look at

Step 2:

Obtain the most recent WordPress set up bundle from WordPress official web site. We can use “wget” command to obtain bundle.

take a look at@WordPress:~$ wget http://wordpress.org/newest.tar.gz
–2015-11-23 02:03:47– http://wordpress.org/newest.tar.gz
Resolving wordpress.org (wordpress.org)… 66.155.40.249, 66.155.40.250
Connecting to wordpress.org (wordpress.org)|66.155.40.249|:80… related.
HTTP request despatched, awaiting response… 301 Moved Completely
Location: https://wordpress.org/newest.tar.gz [following]
–2015-11-23 02:03:47– https://wordpress.org/newest.tar.gz
Connecting to wordpress.org (wordpress.org)|66.155.40.249|:443… related.
HTTP request despatched, awaiting response… 200 OK
Size: 6526208 (6.2M) [application/octet-stream]
Saving to: ‘newest.tar.gz’

100%[==========================>] 6,526,208 10.42MB/s in 1.1s

2015-11-23 02:03:54 (1.16 MB/s) – ‘newest.tar.gz’ saved [6526208/6526208]

Step 3:

Extract the bundle utilizing “tar”

take a look at@WordPress:~$ tar xfz newest.tar.gz

take a look at@WordPress:~$

Now WordPress set up bundle extracted inside “WordPress”.

Step 4:

Now we have to create database and database consumer for WordPress.

mysql> create database db_wordpress;

Question OK, 1 row affected (0.00 sec)

mysql> create consumer ‘user_wordpress’@’localhost’ recognized by ‘take a look at123’;

Question OK, 1 row affected (0.00 sec)

Right here “user_wordpress” is the MySQL consumer title and “take a look at123” is the password for the database “db_wordpress” .

Now we’ve got to grant privileges for the consumer to entry the database. You should use the following instructions for this.

mysql> grant all on db_wordpress.* to user_wordpress@localhost recognized by ‘take a look at123’;

Question OK, 1 row affected (0.00 sec)

mysql> grant all privileges on db_wordpress.* to user_wordpress@localhost recognized by ‘take a look at123’;

Question OK, 1 row affected (0.00 sec)

Step 5:

Now go the listing the place we downloaded and extracted set up bundle and rename the file wp­-config-sample.php file to wp-­config.php.

take a look at@WordPress:~$ pwd

/dwelling/take a look at

take a look at@WordPress:~$ cd wordpress

take a look at@WordPress:~/wordpress$ ls
index.php wp-activate.php wp-comments-post.php wp-cron.php wp-load.php wp-settings.php xmlrpc.php
license.txt wp-admin wp-config-sample.php wp-includes wp-login.php wp-signup.php
readme.html wp-blog-header.php wp-content wp-links-opml.php wp-mail.php wp-trackback.php

mv wp-config-sample.php wp-config-.php

Then open the file wp­-config.php utilizing any textual content editor like vim, nano and add the database title and it’s credentials we created.

/** The title of the database for WordPress */
outline(‘DB_NAME’, ‘db_wordpress’);

/** MySQL database username */
outline(‘DB_USER’, ‘user_wordpress’);

/** MySQL database password */
outline(‘DB_PASSWORD’, ‘take a look at123’);

/** MySQL hostname */
outline(‘DB_HOST’, ‘localhost’);

Step 6:

Lastly, run the set up script through net browser. As I discussed earlier “take a look at” is the doc root of the area “mydomain.com” and that’s the place we downloaded and extracted the WordPress set up bundle. By default it’s extracted to sub listing named “wordpress” and in the event you need to use “mydomain.com” to entry WordPress web site as a substitute of “mydomain.com/wordpress” we should always transfer the extracted recordsdata from WordPress listing to mum or dad listing “take a look at”. As soon as moved run the set up script utilizing the next URL

http://mydomain.com/wp­admin/set up.php

Should you don’t need to transfer recordsdata from the listing WordPress we should always run the script as follows.

http://mydomain.com/wordpress/wp­admin/set up.php

And you’ll get the set up web page as proven beneath.

Install WordPress over SSH

Simply fill the main points and proceed. That can set up WordPress beneath your area. Examine your area and ensure it’s working correctly.

If having any points or if you would like us to put in WordPress for you, please send us a mail to support@webhostingpeople.net. Out help is offered 24×7 and we are going to set up it free or fees.

Knowledge Base