WordPress is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability. What a mouthful. WordPress is both free and priceless at the same time.
* 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
AllowOverride Limit Options FileInfo
Now you need to enable this site using the following command
Now reload apache using the following command
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).
-n name for the mysql user and database
-d destroy and purge
Example: You want your blog to be served from http://blog.example.com for user ‘wordpress’.
sudo sh setup-mysql -n wordpress blog.example.com
#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
I love your blog, because I’m searching for unique articles, and good content, what I’m interested in.
Enjoyed your blog.
I surfed only, and have found your blog. This is a good place.
Your blog space rocks!
I enjoy your articles and the layout of your site. I will visit your blog again.
Personally, I totally agree.
nice post ,man . i like ur words.
http://www.sellbestshoes.com sell best shoes.come on
I’m getting this error on the cli:
ERROR 1045 (28000): Access denied for user ‘debian-sys-maint’@’localhost’ (using password: YES)
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.
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!
Thanks for the howto! I had to use the full path of setup-mysql on my Debian Etch system, e.g. I needed to replace
sh setup-mysql -n wordpress 172.20.2.18
sh /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost
Also, you could comment that the choice /blog is optional (seems many newbies are coming these days).
It’s a very nice ideals from this article. Sometimes I thinks a new way to trust the truth for it. ah. isn’t it?
very usefull, thank u a lot, and thanx to Del for the correction or alternative command!(post 11)
I found a lot of errors like:
sudo sh setup-mysql -n wordpress blog.quensis.eu
-bash: sudo: command not found
404 Not found
Warning: require_once(/etc/wordpress/config-xxxx.xxx.php) [function.require-once]: failed to open stream: No such file or directory in /etc/wordpress/wp-config.php on line 16
Fatal error: require_once() [function.require]: Failed opening required ‘/etc/wordpress/config-xxxx.xxx.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /etc/wordpress/wp-config.php on line 16
that’s unclear and prove the use of unnecessary lib
after long ggl searches a tries I decide to stop the install and see another solution.
php is a based on a misconception and must be avoid in professional applications
Thanks for a very useful post – I’m now up and running on my Debian server thanks to you, and I’m no veteran at this stuff.
A couple of notes:
1) Small typo : /usr/share/doc/wordpress/example should be /usr/share/doc/wordpress/examples
2) I needed to specify the full path name:
bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost
apart from that, all good.
pretty unclear example of setting up wordpress.