How to install WordPress via SSH and SVN CentOS/RedHat

How to install WordPress via SSH – This brief tutorial is going to assume you have SSH or shell access to your physical, virtual or shared server.If you do not have this stop now and get access. If you don’t know what this means, you shouldln’t be here either. I am putting this up for those that want to cut down the time it takes to install and setup a WordPress based web-site. Often we end up waiting for the upload/download process to complete. Using this method you can install and update with out the need to FTP files at all.

This tutorial will allow you to do the following with ease.

  • Install WordPress on a single domain with a single line of code.
  • Update with a single line of code or via the WP Dash board

Prerequisites:

For SSH I use Putty for telnet over SSH port 22. Once you are able to SSH into your box, Remember to open this port or forward it to your local PC’s IP address.

Make sure you have SVN on your box.

>svn --version

If you get a version response you are probably good to go. If you get a not found error install svn;

Installation

[root@merlin ~]# yum install mod_dav_svn subversion

The first thing to do is to install the packages I mentioned above. If you don’t have Apache installed already, it’ll go ahead and drag that down as well.

When you install from yum, there’s a longer list than the two packages above that will automatically resolve themselves. Some other things will be installed automatically. Depending on your packages, your mileage may vary.

Next we need to install the latest stable branch from the wordpress.com repository.

[root@merlin ~]#svn co http://core.svn.wordpress.org/tags/3.3.1 .

When the download is complete, edit the wp-config.php (see editing wp-config.php) ignoring the Advanced Options and save the file within the root directory (http://example.com/). And that is How to install WordPress via SSH

Leave a Reply

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