Web Server

Apache Chroot Jail: Virtual Hosting

Now your chrooted Apache jail is ready. It is time to add domains using Apache virtual hosting features. Our sample setup for two domains called theos.in and nixcraft.com is as follows: Domain: nixcraft.com JailDir ($J): /httpdjail Domain configuration file: /etc/httpd/conf/vdomains/nixcraft.com.conf DocumentRoot: $J/home/httpd/.nixcraft.com/http Log Directory: $J/home/httpd/.nixcraft.com/logs Virtualhosting settings for theos.in: Domain: […]

Auto restart apache on segmentation fault error

Recently a particular folder in a site started coming up with blank php pages and the root cause being Segmentation fault after memory exhaustion. The subfolder contents would only come up after doing a restart of apache. So something tried to access a region of memory that it did not […]

Linux Apache setting Perl CGI Script Limits

Usually Perl and/or CGI scripts can go wild and eat up ALL system resources: this is dangerous stuff can be controlled by three directives. Apache comes with three directives to place limits on the the amount of CPU, memory and processes the server can use. i) RLimitCPU – restrict the […]

Lighttpd Install mod_geoip For Country / City Level Geo Targeting

Geolocation software is used to get the geographic location of visitor using IP address. You can determine country, organization and guess visitors location. This is useful for a] Fraud detection b] Geo marketing and ad serving c] Target content d] Spam fighting e] And much more. mod_geoip is a Lighttpd […]

Red Hat / CentOS: Chroot Apache 2 Web Server

A chroot on Red Hat / CentOS / Fedora Linux operating changes the apparent disk root directory for the Apache process and its children. Once this is done attacker or other php / perl / python scripts cannot access or name files outside that directory. This is called a “chroot […]

CentOS, Apache & mod_fcgid: IPCCommTimeout not working as expected

If you’re running Apache with the mod_fcgid module to let your PHP scripts be viagra concerns handled in a seperate module, you can run into this cialis annoying little bug in the mod_fcgid 2.2.x implementations. The problem: mod_fcgid: read data timeout in xx seconds First, check if you have the […]

Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 11.04

Nginx (pronounced “engine x”) is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on an Ubuntu 11.04 server with PHP5 support (through PHP-FPM) and MySQL support. I do not […]

Exception of type ‘System.OutOfMemoryException’ was thrown

Error: I got the following problem Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown. Source Error: An unhandled […]