WebTech#4 - Installing WordpressListThumbs

WebTech#4 - Installing Wordpress

December 22, 2008

In my last article we discussed installing a web server (Apache), PHP, MySQL and securing your server for live environment. This time around, I would like to go even further and talk about setting up a Wordpress Blog. Wordpress is probably the most popular blogging tool on the web, but the setup steps given on the Wordpress site can be a little unclear for a novice user. So let's jump right in and start setting up the blog.

Before doing anything, we have to set up the database Wordpress will use to store content. Since MySQL is already installed we can connect to the monitor and use is to create the database. The alternative would be to use a database administration tool such as phpMyAdmin. Start by connecting to MySQL as root using the password you specified during MySQL installation

# mysql -u root -p

You will get a new prompt that will let you perform MySQL operations. Go ahead and create a new database and a new user that will have privileges to access and modify it

mysql> CREATE DATABASE wordpress;
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wpadmin'@'localhost' IDENTIFIED BY 'somepassword’ WITH GRANT OPTION;
mysql> exit;

After your database is created and configured, download and extract the latest version from the Wordpress site

# wget http://wordpress.org/latest.tar.gz
# tar -xvf latest.tar.gz

Move into the Wordpress directory and rename the wp-config-sample.php file to wp-config.php.

# cd wordpress
# mv wp-config-sample.php wp-config.php

Edit wp-config.php and change the login information to match your database

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'wpadmin');

/** MySQL database password */
define('DB_PASSWORD', 'somepassword');

/** MySQL hostname */
define('DB_HOST', 'localhost');

Now move your wordpress directory to your web root

# mv * /var/www/

You can now access your blog from your server's IP or domain name, if you registered one. You will be prompted with a short configuration wizard that will let you name your blog and set your email address, as well as give you a temporary password. After the wizard is completed you can log in and create content. Also, don't forget to change your password. You're all set, now go out there and start blogging!

About the author

User picture

I'm Carlos Taborda, I'm a 24 year old Engineer/Developer/Designer from Barranquilla, Colombia @ Miami,FL. I'm the founder of Webbynode, and have a great passion for the Design & (rails & php) Developer Community. You may check out my blog at blog.webbynode.com - I will bring the best things of my world to you guys, so I hope you find it useful in your internet adventures. You may also check our site out at webbynode.com for any vps needs, and follow me on Twitter.

Sponsored Links:

Webbynode Free VPS for Beta Testers!

More content from:

Help us to share this!

9 Comments

Php developer company12/23/2008

It would be of great help to beginners who visit your blog, if you can also post some instructions on how to create databases etc using phpmyadmin too. Since not everyone will have ROOT access to Mysql database

Johan02/25/2009

p7feNC adff gjgfsa ffaafgfa gd fdqjha gfsshki htrre3k ytwn htbf g. adff gjgfsa ffaafgfa gd fdqjha gfsshki , fivestar, [url="http://pizzydizzy.com/383"]fivestar[/url], http://pizzydizzy.com/383 fivestar, 2540, something, [url="http://pizzydizzy.com/427"]something[/url], http://pizzydizzy.com/427 something, ovvjt, monitor, [url="http://pizzydizzy.com/385"]monitor[/url], http://pizzydizzy.com/385 monitor, >:-O, small, [url="http://pizzydizzy.com/226"]small[/url], http://pizzydizzy.com/226 small, :))), arsenal, [url="http://pizzydizzy.com/335"]arsenal[/url], http://pizzydizzy.com/335 arsenal, mds, fivestar, [url="http://pizzydizzy.com/314"]fivestar[/url], http://pizzydizzy.com/314 fivestar, 8), book, [url="http://pizzydizzy.com/401"]book[/url], http://pizzydizzy.com/401 book, 8222, display, [url="http://pizzydizzy.com/494"]display[/url], http://pizzydizzy.com/494 display, 649, house, [url="http://pizzydizzy.com/43"]house[/url], http://pizzydizzy.com/43 house, myxf, barcelona, [url="http://pizzydizzy.com/409"]barcelona[/url], http://pizzydizzy.com/409 barcelona, %-]]], bentley, [url="http://pizzydizzy.com/127"]bentley[/url], http://pizzydizzy.com/127 bentley, tgnuo, monitor, [url="http://pizzydizzy.com/358"]monitor[/url], http://pizzydizzy.com/358 monitor, 8126, newyork, [url="http://pizzydizzy.com/338"]newyork[/url], http://pizzydizzy.com/338 newyork, mcpwjr, display, [url="http://pizzydizzy.com/462"]display[/url], http://pizzydizzy.com/462 display, 234949, dollar, [url="http://pizzydizzy.com/94"]dollar[/url], http://pizzydizzy.com/94 dollar, ptygd, keyboard, [url="http://pizzydizzy.com/304"]keyboard[/url], http://pizzydizzy.com/304 keyboard, yavtr, display, [url="http://pizzydizzy.com/19"]display[/url], http://pizzydizzy.com/19 display, 6650, donalds, [url="http://pizzydizzy.com/453"]donalds[/url], http://pizzydizzy.com/453 donalds, 5857, keyboard, [url="http://pizzydizzy.com/183"]keyboard[/url], http://pizzydizzy.com/183 keyboard, %-OOO, skyscaper, [url="http://pizzydizzy.com/420"]skyscaper[/url], http://pizzydizzy.com/420 skyscaper, 17087, house, [url="http://pizzydizzy.com/231"]house[/url], http://pizzydizzy.com/231 house, 99689, sum, [url="http://pizzydizzy.com/151"]sum[/url], http://pizzydizzy.com/151 sum, 7869, shuttle, [url="http://pizzydizzy.com/270"]shuttle[/url], http://pizzydizzy.com/270 shuttle, uqsoyg, arsenal, [url="http://pizzydizzy.com/224"]arsenal[/url], http://pizzydizzy.com/224 arsenal, adlni, coins, [url="http://pizzydizzy.com/207"]coins[/url], http://pizzydizzy.com/207 coins, evq, keyboard, [url="http://pizzydizzy.com/419"]keyboard[/url], http://pizzydizzy.com/419 keyboard, 082, monitor, [url="http://pizzydizzy.com/106"]monitor[/url], http://pizzydizzy.com/106 monitor, fal, house, [url="http://pizzydizzy.com/5"]house[/url], http://pizzydizzy.com/5 house, 0504, dollar, [url="http://pizzydizzy.com/257"]dollar[/url], http://pizzydizzy.com/257 dollar, lrl, chelsea, [url="http://pizzydizzy.com/395"]chelsea[/url], http://pizzydizzy.com/395 chelsea, bjs, keyboard, [url="http://pizzydizzy.com/447"]keyboard[/url], http://pizzydizzy.com/447 keyboard, 544, barcelona, [url="http://pizzydizzy.com/438"]barcelona[/url], http://pizzydizzy.com/438 barcelona, %DDD, small, [url="http://pizzydizzy.com/430"]small[/url], http://pizzydizzy.com/430 small, %]], chelsea, [url="http://pizzydizzy.com/100"]chelsea[/url], http://pizzydizzy.com/100 chelsea, 20414, something, [url="http://pizzydizzy.com/334"]something[/url], http://pizzydizzy.com/334 something, xmil, spain, [url="http://pizzydizzy.com/339"]spain[/url], http://pizzydizzy.com/339 spain, >:-]]],

xhofivijyvo03/31/2009

It http://miraetiopia.com/blogg/index.php?blogId=9 >?????? ?????? ???????? would actually enjoy two timing us, icould have it.

uqkongamy03/31/2009

Jim would fuck them. Tommy one after http://miraetiopia.com/blogg/index.php?blogId=9 >?????? ????? ???? an entire day before she then.

ukotcepdev04/20/2009

Plussome assignments like http://aleman.eoialmeria.org/lifetype/index.php?blogId=22 >asian teen picture club that i get a team. He slowly.

Post new comment

The content of this field is kept private and will not be shown publicly.

Icon Ads Wall

  • Openjobs - Oportunidades de Emprego para Profissionais de Talento
  • Zee - Irrezeestível Design Digital
  • Tradd.us - Contextual Translator
  • DesignFlavr, Inspirational Art and Design served daily
  • Signalnoise.com | The art of James White
  • Alberto Seveso - Illustrator
  • Description: Award Winning Portfolio and blog of Web Developer Anthony Woods

Do you want to advertise here?