apache
XAMPP- Easy to install Apache Distribution!
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start. At the moment there are four XAMPP distributions: 1) XAMPP for Linux The distribution for Linux systems (tested for SuSE, RedHat, Mandrake and Debian) contains: Apache, [...]
WampServer – Install PHP 5 Apache MySQL on Windows
WampServer is a Windows web development environment. It allows you to create web applications with Apache, PHP and the MySQL database. It also comes with PHPMyAdmin to easily manage your databases. WampServer installs automatically (installer), and its usage is very intuitive. You will be able to tune your server without even touching the setting files. [...]
The Virtual Hosts Section in httpd.conf
Before delving into a discussion on virtual hosts, you need to become familiar with the Virtual Hosts section in the httpd.conf file. The following section (Section 3) contains a few directives that you should be familiar with before you begin: # Section 3: Virtual Hosts # # VirtualHost: If you want to maintain multiple domains/hostnames [...]
Statistics: Web Grows, Apache Profits
Web statistics specialist Netcraft measured over 230 million websites in its webserver survey for October 2009. Apache comprises about 60% of the 4.3 million or so new sites gained since September, corresponding to 2.6 million sites, according to Netcraft. More: continued here
The config.status File – Apache
After you use the configure script, Apache is ready to be compiled. A set of files assists Apache during the compilation process. One such file is the config.status file. This file is created automatically when you run the configure script. However, if this file exists, it is overwritten when you specify the ./configure command. The [...]
Apache Sample Use of the configure Script
By now you must be familiar with a lot of configure options. However, each Web server administrator operates under different circumstances and is influenced by different perceptions. To me, the following command has proven to be the most helpful: #./configure –prefix=/usr/local/apache \ >–server-uid=www \ >–server-gid=www \ >–htdocsdir=/opt/web/html \ >–cgidir=/opt/web/cgi-bin \ >–enable-module=most \ >–enable-shared=max Now, review [...]
Installing Apache on Linux – RPM Installation
You can handle RPM installation with a single command. However, you should follow a few guidelines within the context of RPMs. Before you begin downloading the RPM, ensure the following: The RPM is for the latest version and is specific to the operating system that you are using. The RPM is built with the precompiled [...]
Request Handling in Apache
The process of handling requests can be divided generally into these consecutive phases: Check Uniform Resource Identifier (URI). In this phase, the Apache Web server first analyzes the request sent by the client and determines the information that the client requires. After doing so, the Apache Web server locates the place where the requested information [...]
How to Restrict access based on domain or IP address on Apache
Allow specified domain to access site: Order deny, allow Deny from all Allow from allowable-domain.com Allow from XXX.XXX.XXX Deny from evil-domain.com Specify first three (or one, or two, …) octets of IP address defining allowable domain.
How to protect directories with htaccess
Apache allows access to directories to be restricted unless overridden by a valid user name and password. Here you will see how to set it up in your config file, how to create the .htaccess file, and how to generate the password file for it. Denying access in httpd.conf The first step is to deny [...]
How to Analyze web traffic with awstats
Installing awstats from the ports # cd /usr/ports/www/awstats # make install Awstats installs to /usr/local/www/awstats and needs to following lines added to your apache httpd.conf # # Directives to allow use of AWStats as a CGI # Alias /awstatsclasses “/usr/local/www/awstats/classes/” Alias /awstatscss “/usr/local/www/awstats/css/” Alias /awstatsicons “/usr/local/www/awstats/icons/” ScriptAlias /awstats/ “/usr/local/www/awstats/cgi-bin/” # # This is to permit [...]
How to Use multitail to watch the logs
Multitail is a program which shows you the tail of several files on the screen at once and automatically scrolls them up as they are updated. Just looking at the log files continously rolling by can be confusing at first, but once you get use to it its easy to pick out important information so [...]
