Debian Admin - Your way to Debian World

November 4, 2006

Install Wordpress in Debian Etch

by @ 11:36 am. Filed under General

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

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.

Wordpress Requirements

* 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

Tags: , ,

You may also be interested in...

10 Responses to “Install Wordpress in Debian Etch”

  1. Cindy Says:

    I love your blog, because I’m searching for unique articles, and good content, what I’m interested in.
    Congrats!

  2. tiniakos21 Says:

    Enjoyed your blog.

  3. Zillah Says:

    Hi,
    I surfed only, and have found your blog. This is a good place.
    Your blog space rocks!

  4. Rebecca Says:

    I enjoy your articles and the layout of your site. I will visit your blog again.

  5. Paula Witherton Says:

    Personally, I totally agree.

  6. sado44 Says:

    nice post ,man . i like ur words.

  7. john Says:

    nice post

  8. john Says:

    www.sellbestshoes.com sell best shoes.come on

  9. datakid Says:

    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.

  10. stormfrog Says:

    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!

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.