Installing wordpress using SSH
Most of my clients are on a WordPress platform. It is much easier to install new wordpresses through SSH, then through the traditional Cpanel/plesk and ftp. Here is how you install WordPress using SSH.
Step1: Login to your server via SSH. (I like using puTTY for this.)
Your will need your:
ip:
user:
pass:
Step2: Navigate to your current directory on the server
cd /var/www/vhosts/domain.com/httpdocs/
Step3: Download the latest version of wordpress to your server.
wget http://wordpress.org/latest.zip
Step4: Unzip the download
unzip wordpress-2.9.2.zip
Step5: Move contents from wordpress directory to current location on server.
cp -rf ./wordpress/* ./
Step6: Creating MySQL DB
-Login to MySQL
mysql -uusername -ppassword
-Create Database
create database dbname
-Grant user access to new db
grant usage on *.* to username@localhost identified by 'password'
-Set Privileges to this user on this db
grant all privileges on dbname.* to username@localhost
-Test conntection, change values below with the newly created info from above and user that was granted access.
mysql -uusername -ppassword dbname
Note: If all was successful with no errors, your db is installed.
Step7: Your wordpress is ready for the final installation. Go to your site with the new WordPress files are located and follow the steps.
Note: You can remove the zip file now as well.
rm wordpress-2.9.2.zip
Note: To remove an entire directory
rm -rf DirectoryName
That is it. Congrats on setting up your first WordPress through SSH.





