Jump to content



Photo

How to install Hiawatha web server, PHP and MariaDB - Posted By france


  • Please log in to reply
1 reply to this topic

#1 Cryo Kinesis

Cryo Kinesis

    Haphost Staff

  • Moderators
  • 128 posts
  • LocationGridania, Eorzea

Posted 05 August 2014 - 05:20 PM

Hi all,

This is my 2 cents for Haphost users. Hiawatha is advanced and secure webserver for Unix. 

"Hiawatha has been written with security in mind. This resulted in a highly secure webserver in both code and features. Hiawatha can stop SQL injections, XSS and CSRF attacks and exploit attempts. Via a specially crafted monitoring tool, you can keep track of all your webservers."

OS: Dedian 7 (64bit)
PHP: 5.4
SQL: MariaDB


We will start with php installation:
 

apt-get install php5 php-pear php5-curl php5-mysql php5-fpm

Now we will install MariaDB (mariadb is faster then classic mysql and optimized, but commands are same, more information here) :



apt-get install python-software-properties
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
add-apt-repository 'deb http://mirrors.linsrv.net/mariadb/repo/5.5/debian wheezy main'
apt-get update
apt-get install mariadb-server

Now we will install Hiawatha web server. You can get package for your distro from download page. This is 64bit Debian 7 guide.



apt-get install libxslt1.1
wget http://files.tuxhelp.org/hiawatha/hiawatha_9.3_amd64.deb;dpkg -i hiawatha*

To start/stop hiawatha:



service hiawatha start
service hiawatha stop

Server need some extra settings that you can find inside /etc/hiawatha/hiawatha.conf file. If somebody want to learn more i will be glad to share information about setting php5-fpm, vhost and few security settings, but all this can be found on Hiawatha HOW TO page.

Next configuration steps are: 

1. Setting vhost
2. Setting php5-fpm
3. Setting php.ini and php-fpm.conf (inside /etc/php5/fpm/)
4. Add xss, csrf and sqli protection

This how will look your new home page:

Attached File  capture9.jpg   37.96KB   2 downloads

Have fun, security and speed with Hiawatha !


  • cloudfast likes this

Cryo%20Kinesis%20Haphost%20Sig2.png


#2 rahoolm

rahoolm

    Newbie

  • Members
  • Pip
  • 6 posts
  • LocationIndia

Posted 03 December 2014 - 07:17 AM

Is it possible to install this web server on 128MB RAM VPS provided by haphost? How is Hiawatha performance wise? CPU, RAM, etc..


~~~ rahoolm

www.webgls.info





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users