ps waux apt-key adv --recv-keys --keyserver keys.gnupg.net DC242980 echo "deb http://apt.sparkz.no/debian/ squeeze main" >> /etc/apt/sources.list.d/sources.list apt-get update apt-get install hiawatha apt-get remove nginx reboot /etc/init.d/hiawatha start ps waux | egrep iawa netstat -tulpn service hiawatha check /etc/init.d/hiawatha restart tail -f /var/log/hiawatha/access.log vi /etc/hiawatha/hiawatha.conf WebsiteRoot = /var/www/hiawatha StartFile = index.html AccessLogfile = /var/log/hiawatha/access.log ErrorLogfile = /var/log/hiawatha/error.log VirtualHost { Hostname = www.thisisagreatwebsite.com, *.thisisagreatwebsite.com WebsiteRoot = /var/www/thisisagreatwebsite StartFile = index.html ErrorHandler = 404:/index.html } cd /var/www mkdir thisisagreatwebsite cat /var/www/hiawatha/index.html | sed 's/Installation successful/Greatwebsite/' >/var/www/thisisagreatwebsite/index.html find ./thisisagreatwebsite -exec chown www-data:www-data {} + find ./thisisagreatwebsite -type d -exec chmod 1774 {} + ls -all /var/www/thisisagreatwebsite service hiawatha check /etc/init.d/hiawatha restart service hiawatha check /etc/init.d/hiawatha restart tail -f /var/log/hiawatha/access.log tail -f /var/log/hiawatha/error.log ping www.thisisagreatwebsite.com tail -f /var/log/hiawatha/exploit_attempts.log #SOCKETDIR=/var/run/nginx SOCKETDIR=/var/lib/hiawatha cd /var/www/thisisagreatwebsite wget https://github.com/joomla/joomla-cms/releases/download/3.4.5/Joomla_3.4.5-Stable-Full_Package.zip unzip Joomla_3.4.5-Stable-Full_Package.zip rm Joomla_3.4.5-Stable-Full_Package.zip touch configuration.php find -type d -exec chmod 1774 {} + find -exec chown www-data:www-data {} + cgi.fix_pathinfo = 0 # Enable GZip content encoding zlib.output_compression = On zlib.output_compression_level = 6 tail -f /var/www/thisisagreatwebsite/logs/acces.log tail -f /var/www/thisisagreatwebsite/logs/error.log // Generate base tag /** $base = $document->getBase(); if (!empty($base)) { $buffer .= $tab . '' . $lnEnd; } **/ chmod +x network/if-pre-up.d/ iptablesload # make it executable reboot service hiawatha check /etc/init.d/hiawatha restart