WebServer DB

Web server knowledge DB – FreeBSD, Apache, Web hosting, DirectAdmin, SMS

Apache

Shell Script List All Top IP Address Accessing Apache Server

#!/bin/bash # where to store final report? DEST=/var/www/reports/ips # domain name DOM=$1 # log file location LOGFILE=/var/logs/httpd/$DOM/access.log # die if no domain name given [ $# -eq 0 ] && exit 1 # make dir [ ! -d $DEST ] && mkdir -p $DEST # ok, go though log file and create report if [ [...]

, , ,

Apache FastCGI / mod_fastcgi PHP Script

Use this script to run Apache 2.x with mod_fastcgi. Install Apache 22 from FreeBSD port or using source code. The script is tested under FreeBSD and Debian / RHEL / CentOS Linux.

, ,

Installing PHP 5 on FreeBSD

A tutorial on installing PHP from the FreeBSD ports for Apache and MySQL. What you need to add to the httpd.conf file and which of the PHP5 ports to choose.

, , , ,

Tuning the Apache MaxClients parameter

One thing that can have a really drastic effect on a large site using Apache, is the value assigned to the MaxClients parameter. This parameter defines how many simultaneous request can be served. Any connection request from browsers that come in after that will be queued.

,