| by Arround The Web

How to Install LAMP Stack on AlmaLinux 8

In this guide, we feature the installation of LAMP on AlmaLinux 8. LAMP is a popular open-source software stack that is mostly used for testing and hosting web applications. It’s an acronym for Linux Apache MariaDB / MySQL and PHP. It compromises a web server ( Apache ), a database server ( MariaDB or MySQL […]

The post How to Install LAMP Stack on AlmaLinux 8 appeared first on Linux Today.

Share Button
Read More
| by Arround The Web

How to Install WordPress Ubuntu Using LAMP Stack

The post How to Install WordPress Ubuntu Using LAMP Stack first appeared on Tecmint: Linux Howtos, Tutorials & Guides .For those who cannot afford the hustles of developing websites from scratch, there are now several content management systems (CMSs) …

Share Button
Read More
| by Arround The Web

How to Install ModSecurity with Nginx on Ubuntu 20.04

In the following tutorial, you will learn how to install ModSecurity with Nginx on Ubuntu 20.04. ModSecurity, often referred to as Modsec, is a free, open-source web application firewall (WAF). ModSecurity was created as a module for the Apache HTTP Server. However, since its early days, the WAF has grown and now covers an array of HyperText Transfer Protocol request and response […]

The post How to Install ModSecurity with Nginx on Ubuntu 20.04 appeared first on Linux Today.

Share Button
Read More
| by Scott Kilroy

Secure Apache with Let’s Encrypt Certificate on Rocky Linux

The post Secure Apache with Let’s Encrypt Certificate on Rocky Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .In our previous guide, we walked you through the installation of the LAMP stack on Rocky Linux and further proceeded to co…

Share Button
Read More
| by Scott Kilroy

How to Configure Apache Virtual Hosts on Rocky Linux

The post How to Configure Apache Virtual Hosts on Rocky Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .This is an optional step intended only for those who wish to host multiple sites on the same server. So far, our LAMP setup can o…

Share Button
Read More
| by Scott Kilroy

How to Install LAMP Stack on Rocky Linux 8

The post How to Install LAMP Stack on Rocky Linux 8 first appeared on Tecmint: Linux Howtos, Tutorials & Guides .LAMP is a popular stack used in development circles for hosting both static and dynamic web applications. It’s an acronym for Linux, Apache…

Share Button
Read More
| by Arround The Web

How to Speed Up Apache with Varnish Cache on CentOS 7

The post How to Speed Up Apache with Varnish Cache on CentOS 7 first appeared on Tecmint: Linux Howtos, Tutorials & Guides .
Varnish Cache (commonly known as Varnish), is an open-source, popular reverse-proxy HTTP accelerator intended for speeding up w…

Share Button
Read More
| by Arround The Web

How to Install Apache on Ubuntu 20.04 and Host Website

The post How to Install Apache on Ubuntu 20.04 and Host Website appeared first on LinOxide.

Share Button
Read More
| by Scott Kilroy

How to Install Slack on Ubuntu 20.04

Slack is a modern communication platform for companies to replace emails. In this guide we will learn how to install Slack under Ubuntu 20.04. Slack can be easily installed on your system by following a few basic steps. Here we will use the snap packag…

Share Button
Read More
| by Scott Kilroy

How to Install Calibre Ebook Server on Ubuntu 20.04

Calibre is a free and open-source e-book manager. It ships as a cross-platform desktop application along with a server component and can be used to manage your e-book library.

Share Button
Read More
| by Scott Kilroy

apache – watch httpd for connected clients

watch httpd for connected clients watch “netstat -anpt | grep httpd | grep ESTABLISHED|cut -b45-60 | cut -d’:’ -f1 | sort” OR netstat -plan|grep :80|awk {‘print $5’}|cut -d: -f 1| sort|uniq -c | sort -nk 1

Share Button
Read More
| by Scott Kilroy

apache – test mod_evasive is setup correctly

You can use this simple script to test mod_evasive is installed and running. I didn’t write this but forgot where I found it. Sorry for the lack of credit where it’s due. #!/usr/bin/perl # test.pl: small script to test mod_dosevasive’s effectiveness use IO::Socket; use strict; for(0..100) { my($response); my($SOCKET) = new IO::Socket::INET( Proto => “tcp”, PeerAddr=> “w3.fiendishplan.com:80”); if (! defined $SOCKET) { die $!; } print $SOCKET “GET /?$_ HTTP/1.0\n\n”; $response = ; print $response; close($SOCKET); }

Share Button
Read More
| by Scott Kilroy

Apache modrewrite examples

modrewrite rule if you create folder it can be used as a subdomain RewriteCond %{HTTP_HOST} !^www\.website\.com$ RewriteCond %{HTTP_HOST} ^(.*)\.website\.com(.*) [NC] RewriteCond %{DOCUMENT_ROOT}/%1 -d RewriteRule ^(.*)$ http://www.website.com/%1$1 [P,L] requires both mod_rewrite and mod_proxy to be running 1. Forcing www for a domain while preserving subdomains RewriteCond %{HTTP_HOST} ^([a-z.]+)?example\.com$ [NC] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .? http://www.%1example.com%{REQUEST_URI} [R=301,L] Site has permanently moved to new domain # domain.com to domain2.com RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L] RewriteEngine on RewriteCond /your/docroot/%{REQUEST_FILENAME} !-f […]

Share Button
Read More
| by Scott Kilroy

Installing apache mod_evasive on ubuntu

apt-get install libapache2-mod-evasive in /etc/apache2/conf.d create file called modevasive with the following: <code> <ifmodule mod_evasive20.c> DOSHashTableSize 3097 DOSPageCount 2 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 10 DOSLogDir /var/log/mod_evasive DOSEmailNotify ADD_EMAIL DOSWhitelist 127.0.0.1 </ifmodule>

Share Button
Read More