#1 2013-11-27 21:22:18

ZEROF
Trusted Member
From: http://backbox.org
Registered: 2013-10-24
Posts: 124
Website

How to install WordPress on Hiawatha web server.

How to install WordPress on Hiawatha web server

1l1nl.png

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
#}

Add:

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.

CREATE DATABASE wps;

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'thave 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. 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.

hiawatha_wordpress.png]

Last edited by ZEROF (2013-11-27 21:25:59)

Offline

#2 2013-12-26 00:47:29

adrock
Trusted Member
Registered: 2013-07-30
Posts: 13

Re: How to install WordPress on Hiawatha web server.

Hello.

Followed your guides to get wp up and running, but i'm getting the following error when i try to upload an export from another wp install:
413 Request Entity Too Large

The export file is only 70kB, and wp itself has the default limit of 2M set.

I found reports of the same error under nginx, where the following was given as a working solution:

Add this to your phpMyAdmin location in your vhost:

Code:
                       fastcgi_buffer_size 128k;
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_read_timeout 240;

where would i put that or the equivalent under Hiawatha rather than nginx?

Last edited by adrock (2013-12-26 00:47:50)

Offline

#3 2013-12-26 08:46:26

mikho
Low End Mod
From: Hell and gore == Sweden
Registered: 2013-03-02
Posts: 1,354
Website

Re: How to install WordPress on Hiawatha web server.

On this page http://www.hiawatha-webserver.org/manpages find parameters like MaxUploadSize and read about what it does.
Then edit your conf file and change to values that you would like. Then restart Hiawatha.

Offline

#4 2013-12-26 10:10:46

adrock
Trusted Member
Registered: 2013-07-30
Posts: 13

Re: How to install WordPress on Hiawatha web server.

cheers, it was 6k too small by default! sorted now.

Also got a nice launchbot page running under another vhost on the same box, thanks again for the guides!

Offline

#5 2014-01-23 14:40:36

LivingSouL
Trusted Member
Registered: 2014-01-21
Posts: 39

Re: How to install WordPress on Hiawatha web server.

Do I need to add new UrlToolKit on every vhost?

Offline

#6 2014-01-23 21:12:49

ZEROF
Trusted Member
From: http://backbox.org
Registered: 2013-10-24
Posts: 124
Website

Re: How to install WordPress on Hiawatha web server.

HI man,

Just add "UseToolkit = wordpress" (without "") to your VirtualHost settings.

Offline

#7 2015-02-25 13:30:51

hampered
Member
Registered: 2015-02-18
Posts: 6

Re: How to install WordPress on Hiawatha web server.

I had to use Debian 7 full install and get a larger LES to eventually get this going.
In the virtual host settings I also had to make TimeForCGI = 300  (the default is 5 secs which kept giving me 500 internal error)

Last edited by hampered (2015-02-25 13:31:17)

Offline

Board footer