Jump to content


How to install Wordpress on Hiawatha web server - Posted By france

  • Please log in to reply
No replies to this topic

#1 Cryo Kinesis

Cryo Kinesis

    Haphost Staff

  • Moderators
  • 128 posts
  • LocationGridania, Eorzea

Posted 05 August 2014 - 05:55 PM

Hi, all.

Attached File  1l1nl.png   20.47KB   0 downloads


After writing about Hiawatha web server, FastCGI and MariaDB install (here and here), i will show you how to host your first WordPress site. If you tested Hiawatha before you can see that you will not find .htaccess file, why ? I think that developer thinks as I do, "who needs one more config file" and security of course. .htaccess was replaced with URL ToolKits, to use them we only need to edit hiawatha.conf file. We will do that, and then we are going to install WordPress.


nano /etc/hiawatha/hiawatha.conf

Go to URL TOOL KIT section (don't remove lines) just add after: 

#UrlToolkit {
#        ToolkitID = banshee
#        RequestURI isfile Return
#        Match ^/(css|files|images|js|slimstat)($|/) Return
#        Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
#        Match .*\?(.*) Rewrite /index.php?$1
#        Match .* Rewrite /index.php



UrlToolkit {
    ToolkitID = wordpress
    RequestURI exists Return
    Match .*\?(.*) Rewrite /index.php?$1
    Match .* Rewrite /index.php

Now we will move to next section VIRTUAL HOST. You need to find:


#       UseToolkit = banshee

And replace with (always take care about #):

      UseToolkit = wordpress

Stop and start server again:

service hiawatha stop
service hiawatha start

As we can see, this was easy to do, nothing special. Now we need to make new mysql base for WordPress. To start sign to MariaDB:

mysql -u root -p

Type your password, then create new database.


P.S. This is demo mode, never use root user database for professional needs, only for testing. To make new user and grant privileges read this blog post.

When you are done with making your first database with MariaDB, we can install Wordpress (if you don't have installed unzip run apt-get install unzip for installation)

cd /var/www
wget http://wordpress.org/latest.zip
unzip latest.zip
chown -R www-data wordpress/*

If you didn't read my 2 older topics, you will get errors for sure, think good about setting domain name and path to your Wordpress installation inside /etc/hiawatha/hiawatha.conf file. I can't do everything for you, don't be lazy read smile.png. Now you will need to open your browser and just open your site url, installation will start immediately. After clicking few system "next,next" windows, take a look to part when you need to write inside installation script fields. For security never use wp_ for database prefix, and make sql/site backups when you can.

This is how your new site will look.

Attached File  hiawatha_wordpress.png   95.7KB   0 downloads

Have fun with Hiawatha.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users