If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
* Apache Web server
* PHP 4.2 or greater
* MySQL 3.23.23 or greater
* The mod_rewrite Apache module
First you need to install apache2 with php support and mysql with php support
Apache with PHP Support check here
Mysql Database installation check here
Mysql with php support you need to run the following command
#apt-get install php4-mysql
after that you need to install wordpress using the follwoing command
#apt-get install wordpress
This will install the wordpress now you need to go to /usr/share/doc/wordpress/example folder to setup apache to point to /usr/share/wordpress. See the examples/apache.conf
Create a file called wordpress under /etc/apache2/sites-available/ and enter the following and save the file
Alias /blog /usr/share/wordpress
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
</Directory>
Now you need to enable this site using the following command
#a2ensite wordpress
Now reload apache using the following command
#/etc/init.d/apache2 restart
Database setup can be done with the help of a script in examples/setup-mysql
To setup mysql database for wordpress you need to follow this
setup-mysql [-n NAME] [-h | -d | -b] FQDN
Creates by default a Wordpress mysql configuration depending on required fully
qualified domain name(FQDN).
Options:
-n name for the mysql user and database
-h help
-d destroy and purge
-b backup
Example: You want your blog to be served from http://blog.example.com for user ‘wordpress’.
Then run:
sudo sh setup-mysql -n wordpress blog.example.com
Example:-
#sh setup-mysql -n wordpress 172.20.2.18
After finishing this you need to go to http://your-server-ip/blog/ you should see the following message
It doesn’t look like you’ve installed WP yet. Try running install.php.
Click on install.php link and you should see the following screen saying welcome to wordpress installation in this click on First Step

Now you can see the following screen saying first step here you need to enter your weblog title,email address and click on continue to second step.

Here it will give you the username and password you need to login in to the wordpress and click on login

wordpress login screen here you need to enter your username and paasword provided in the previous step.

After login you should see the following screen

You may also be interested in...
November 17th, 2006 at 11:00 am
I love your blog, because I’m searching for unique articles, and good content, what I’m interested in.
Congrats!
November 17th, 2006 at 2:17 pm
Enjoyed your blog.
November 18th, 2006 at 6:24 am
Hi,
I surfed only, and have found your blog. This is a good place.
Your blog space rocks!
November 18th, 2006 at 8:03 am
I enjoy your articles and the layout of your site. I will visit your blog again.
November 21st, 2006 at 1:52 am
Personally, I totally agree.
February 25th, 2007 at 9:15 am
nice post ,man . i like ur words.
March 5th, 2007 at 3:56 pm
nice post
March 5th, 2007 at 6:20 pm
www.sellbestshoes.com sell best shoes.come on
June 26th, 2007 at 8:19 am
I’m getting this error on the cli:
ERROR 1045 (28000): Access denied for user ‘debian-sys-maint’@'localhost’ (using password: YES)
after running:
sudo bash setup-mysql -n wordpress blog.example.org
and then in the browser, I get this error:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
* Are you sure you have the correct username and password?
* Are you sure that you have typed the correct hostname?
* Are you sure that the database server is running?
If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
I have set up the db in mysql and the users ‘wordpress’ and ‘debian-sys-maint’ adn granted tehm all privileges??
any help appreciated.
September 14th, 2007 at 12:37 am
Hi!
THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS! THANKS!
I had given up installing Wordpress through apt-get and I didnt understand why database name and user was the same - it was driving me nuts. But your post took me through the process in no time.
Thanks a zillion m8!