amuck-landowner

Hiawatha installation script (Hiawatha, PHP-FPM, MariaDB)

ZEROF

New Member
Hi all,

 

This is my first topic and i would like to say hello to all community members and administrators. This script started as weekend project and it was made to save my time. I worked few times with Hiawatha webmasters and every time for fresh server installation i did spend a lot of my time. Script was not public because my employers wanted to keep for them self. But ...when i finished working for them i made all project public.

 

What we have today (Picture is worth a thousand words):

 

hiawatha_install.png

 

Here you can see some demos about script in work:

 

https://asciinema.org/~ZEROF

 

Any help and ideas are welcome, donation as well. Vote for script, share it, made your own fork, comment.

 

Script download and usage:


Code:
git clone https://gist.github.com/10743343.git settings;cd settings;mv hiawatha.sh /root;cd
 
chmod +x hiawatha.sh
 
./hiawatha.sh

 

If you don't want to install git wget will do the job:

 


Code:
wget https://gist.githubusercontent.com/ZEROF/10743343/raw/15a5eac7987dcc62e8ec2b945619ef397afb4457/hiawatha.sh

 

Hope that you will have fun and time for testing and setting your servers.

 

P.S. I posted almost same topic on other sites and forums, looking for support of course. Hope that you understand that.

 

Thank you !
 
Last edited by a moderator:

Amitz

New Member
Sounds cool. I have never heard of Hiawatha before and it seems as if it is worth a try!
 

peterw

New Member
This is fantastic. Can someone compare Hiawatha with Cherokee, Nginx and Lighttpd? All projects say they are user friendly and lightweight.

Hiawatha, Ngix and lighttpd do have simple config files. Cherokee admin interface needs Python. What are the criterias to choose one of them?
 

Amitz

New Member
I have just tried the scripts on a virgin Debian7 32bit Vultr instance. Everything works fine so far, but *.php files that I open in the browser throw 403 errors. php5-fpm is running, the path to the socket in /etc/hiawatha/hiawatha.conf is right too.

Therefore the wordpress installation does not work too. Any idea?
 

Amitz

New Member
Found it myself:


ExecuteCGI = yes

was not set in etc/hiawatha/hiawatha.conf

Maybe you want to fix that to avoid irritations! :)
 

ZEROF

New Member
Hi Amitz,

If you are using my script (v0.03) you will never use ExecuteCGI after running option 8. Your vhost file will look something like this:



#1
VirtualHost {
        Hostname = yoursite.com
        WebsiteRoot = /var/www/hiawatha/wordpress
        StartFile = index.php
        #AccessLogfile = /var/www/hiawatha/wordpress/access.log
        #ErrorLogfile = /var/www/hiawatha/wordpress/error.log
        TimeForCGI = 10
        UseFastCGI = PHP5
        UseToolKit = wordpress
}

Can you provide me you hiawatha.conf and /etc/php5/fpm/pool.d/www.conf (use pastebin.com).

Thanks !
 

Amitz

New Member
I have, unfortunately, already deleted the Vultr instance so I cannot provide the requested files. But I will spin up a new one tomorrow to do so.


I have used the script in your link and used options 1-8 and then 10.
 

ZEROF

New Member
Ok, i think that i will udated script to version 0.04, check on https://gist.github.com/ZEROF/10743343 before downloading hiawatha.sh. I have found 2 issues, one script issue (not real issue, just i have better settings idea) and one that come with mariadb secure installation, i will try to patch that before we can run secure installation, but i'm not sure that i have good solution for that in this time. Secure installation will work just fine, but i don't like to see that damm errormessage. I will add phpmyadmin installation as well. 

A lot to do ....
 

ZEROF

New Member
Ok,

All looks fine, just ..

When you set your vhost for wordpres you need to type twice same path, in your case: /var/www/hiawatha. One time when you set vhost, and 2nd time when you set install directory. I use: 

vhost path: /var/www/hiawatha/wordpress

install path: /var/www/hiawatha/wordpress

Only issue is TimeForCGI = 5. That was set to 10sec before. Replace that, and then service php5-fpm restart normally will do the job. 

Because of thinking on small issues, i deleted my phpmyadmin install code by mistake pfff... Here we go again.
 

Amitz

New Member
It may look fine, but still .php files return a 403 when called through a browser. I did just put a simple phpinfo.php in the root folder and all I get is that 403.
 

ZEROF

New Member
Ok, i will check that again. But it's strange i reinstalled my box 20 times and other people as well. If you can provide ssh i would like to see what is going on, if not i will just put that as option. That is not problem but i need to think about.
 
Last edited by a moderator:

Amitz

New Member
Just got it to work, so please scratch that task for some hours... ;-)


I will re-install tomorrow to see whether it was just a single hit or a mistake on my side in the first place! Thank you very much for your efforts!
 

ZEROF

New Member
Ok v0.3b is out:

1. Fixed mariadb secure install script (no solution provided on internet, i got it but myself,it's feel so good)

2. Made preparation for version v0.4 and few other correction

;)
 

Amitz

New Member
Just to confirm: It was me. I have no idea what I did wrong, but it was already quite late in my timezone and the day was hard. :)

I installed it again today and everything worked fine. Thanks again!
 

ZEROF

New Member
I need one tester for new version (v0.4). You will need to try phpmyadmin installation, it's almost automatic, don't worry :).  I can make demo video if you want. I'm hapy with new code.

Phpmyadmin install options are: 

1. You will be ask if you want to install phpmyadmin after wordpress installation.

2. You can run installation after setting vhost.

This was good coding day, but now i need one or few people before I share v0.4.

Thank you !
 

Amitz

New Member
What a pity! I would help out directly, but I am travelling with no access to my servers for some days. Hopefully someone else will lend a hand!
 

ZEROF

New Member
Thanks Amitz,

I have 2 people already, i wait for 2 more and after i will put v0.4 online and i hope to make new demo tonight. I tested few times too, and all looks fine. Hiawatha was updated too, and i need to run few test today to see if all goes well. For now version v9.4 comes from my repository.

You can see small script demo (v0.4) that I made for other testers: https://asciinema.org/a/9092
 

ZEROF

New Member
Hiawatha was updated in last 24h (v9.5) and because of that i waited to run more tests. I would like to say thanks for 4 people who helped me to fix 2 small issues and to make this tool even better. I made 3 small demo, for every part of tool. I call you to watch them all before messing with your server, all in 10 minutes.

 

Hiawatha 9.5 installation script v0.4(+ php5-fpm,MariaDB)-part 1

Hiawatha 9.5 installation script v0.4 (setting vhost and phpmyadmin)-part 2

Hiawatha 9.5 installation script v0.4 (remove phpmyadmin and vhost,install wordpress,install phpmyadmin)-part 3

 

capture11.jpg

 

capture12.jpg

 

Script download: https://gist.github.com/ZEROF/10743343

 

Hope you'll enjoy it.

 

To do: "Remove wordpress installation" !
 
Last edited by a moderator:
Top
amuck-landowner