How To Install WordPress (From Command line)

Fri, Jun 19, 2009

Linux

Okay, this tutorial will show you how to very easily install WordPress on your own server from the command line.

First step is to make a MySQL database, user and permissions for that user.

Secondly, you go to the directory that you want to put WordPress in and get the files:

wget http://www.wordpress.org/latest.zip
unzip wordpress-*.zip
cd wordpress
mv * ../
rm -R wordpress

The next step is to edit the wp-config-sample.php file (using your favorite editor such as nano, vi, etc.) and putting in your MySQL info for the WordPress database.

nano wp-config-sample.php

Then change the following

define('DB_NAME', 'YOUR-DATABASE-NAME-GOES-HERE');
define('DB_USER', 'YOUR-DATABASE-USER');
define('DB_PASSWORD', 'YOUR-DATABASE-PASSWORD');

You then have to rename the wp-config-sample.php file to wp-config.php

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

The final step is to go to the website you are installing WordPress on and fill out the information and it will install on the MySQL Database. It will then give you a login name and password and you can go from there.

I hope you can put this tutorial to use by using WordPress for your site.

, , ,

This post was written by:

Gamerx287 - who has written 4 posts on Tuts4Tech.

Adam, who also goes by his online nickname: gamerx287, is a tech enthusiast, geek, and high school student in Louisiana. He has been into technology since he was about 6 years old. He started using his nickname, gamerx287, back in August of 2007 when he bought the website, gamerx287.com. He has numerous computers and servers distros, even a server rack in his room! His computers run just about everything from Windows to Mac OS X to a few Linux. If you need any tech questions answered, you can email him or come to his chat @ live.gamerx287.com.

Contact the author

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply