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.


Fri, Jun 19, 2009
Linux