If you discovered that proxying your webserver with varnish breaks PhpMyAdmin I’ve got the solution:

Problem is that the backend webserver, apache2 or nginx doesn’t even know it’s running behind another software.

Varnish does a completely normal request to webserver. Most times this isn’t any problem at all.

PhpMyAdmin tries to be “smart” and figure out its absolute URL and I run the apache2 or nginx backend on port 80.

The solution is to force an URL.

Add the following line to “config.inc.php“, changing the obvious:

$cfg['PmaAbsoluteUri'] = 'http://yourdomain.com/phpmyadmin/';


G-WAN – Fastest Webserver Ever

Valic —  August 24, 2010 — 1 Comment

G-WAN is using full ANSI C scripts and is a FREE Web App. server.

G-WAN redefined the static Web content hierarchy on  Linux. Now, G-WAN redefines the standards of dynamic Web content generation.

On a gigabit LAN, ApacheBench compared G-WAN , IBM Apache+PHP, SUN GlassFish+Java and Microsoft IIS+C#.

Result, G-WAN does the job with 5 million times less servers. See images below:

Loan 100 years (131.4 KB):


Continue Reading…

There are many different ways you can configure Apache2 to host multiple sites. Here we’re only going to cover the basics with the use of the NameVirtualHost directive.
The advantage of this approach is that you don’t need to hard-wire any IP addresses, and it will just work. The only thing you need is for your domain names to resolve to the IP address of your webserver.

For example if you have an Apache2 server running upon the IP address and you wish to host the three sites example.com, example.net, and example.org you’ll need to make sure that these names resolve to the IP address of your server.

Since we’ll be hosting multiple websites on the same host it makes a lot of sense to be very clear on the location of each sites files upon the filesystem. The way I suggest you manage this is to create a completely seperate document root and logfile directory for each host. You can place these beneath the standard Debian prefix of /var/www or you may use a completely different root.

Step 1. If you’ve not already done create the directories to contain your content, etc, as follows:

Deb:~# mkdir /var/www/www.example.com

Deb:~# mkdir /var/www/www.example.net

Deb:~# mkdir /var/www/www.example.org

Continue Reading…

This guide will cover installing and updating Apache 2, MySQL 5 and PHP 5 on Debian Linux.

Step 1. To start with, its important to make sure apt-get is the latest version.

apt-get update && apt-get upgrade

* This line will update your aptitude to the latest version information and then upgrade the applications on your computer.

Step 2. Next, lets install Apache2.

apt-get install apache2

* This will install and provide basic configuration for apache2.
*  The default web directory will is /var/www and the Apache 2 configuration can be found in /etc/apache2/.

Continue Reading…