Install WordPress through SSH

Type the following command within the directory where you wish to install wordpress and press the “Enter” key. The latest compressed installation file of WordPress will download.

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

Uncompress the following package.

tar xfz latest.tar.gz

The WordPress platform files will unzip into a directory named “WordPress”.

Move the wordpress platform files back up one directory level.

cd wordpress/
cp -rpf * ../
cd ..

Delete the installation Files

rm -rf ./wordpress/
rm -f latest.tar.gz

Create the wordpress database using SSH or cPanel

Next, you will edit the wp-config.php file by inserting the new database name, user and password into the file. Finally, you will run the install.php function in WordPress to create all tables required for the application.

Ensure the files ownership are set to the user account name i.e under public_html folder

chown username:username * -Rf

Open a web browser and enter the URL to the administrative page of the WordPress installation. Add the install.php file name to the end of the URL. For example, if you installed WordPress into a directory named “WordPress”, enter:

http://www.mydomain.com/wordpress/admin/install.php

When you open this file in the web browser, the installation script will automatically run and the database tables will automatically be created in the new database. If you receive an error, verify that you have typed the correct database information into the wp-config.php file.

That’s it! WordPress is now installed through SSH.

Related posts

Latest posts

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *