Nov 042006
 

Sponsored Link

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

Sponsored Link

 Posted by at 11:36 am
  • http://www.fabplanet.info Cindy

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

  • tiniakos21

    Enjoyed your blog.

  • http://www.fabshop.info Zillah

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

  • http://www.planetcenter.info Rebecca

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

  • http://www.blogada.com/linktator/linktator.php?num=50&sep=7 Paula Witherton

    Personally, I totally agree.

  • http://www.e-fanyi.com sado44

    nice post ,man . i like ur words.

  • john

    nice post

  • http://www.sellbestshoes.com john

    http://www.sellbestshoes.com sell best shoes.come on

  • datakid

    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.

  • stormfrog

    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!

  • Del

    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
    with
    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).

  • http://www.3kc.cn flower

    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?

  • Dongo

    very usefull, thank u a lot, and thanx to Del for the correction or alternative command!(post 11)

  • darkrei

    I found a lot of errors like:
    sudo sh setup-mysql -n wordpress blog.quensis.eu
    -bash: sudo: command not found

    and finaly

    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

  • Rob

    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.

    Thanks again,

    Rob

  • ss

    pretty unclear example of setting up wordpress.