How to enable GZip compression in XAMPP server

By: TarranJones When we test our webiste by tools.pingdom.com and we get error: The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header   Find apache\conf\httpd.conf uncomment the following line(remove #) LoadModule headers_module modules/mod_deflate.so some versions may require you to comment out the following lines instead. LoadModule headers_module modules/mod_headers.so LoadModule deflate_module modules/mod_deflate.so finally addContinue reading “How to enable GZip compression in XAMPP server”

Install mod_deflate in Ubunut Apache 2.2

By: pontikis.net Installation In latest Debian version (Debian 6 or Squeeze), mod_deflate is installed and enabled. If not: a2enmod deflate service apache2 restart Edit website configutation file, for example: nano /etc/apache2/sites-available/www.pontikis.net add the following lines: SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|ico|png)$ \ no-gzip dont-vary SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ \no-gzip dont-vary SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary BrowserMatch ^Mozilla/4 gzip-only-text/htmlContinue reading “Install mod_deflate in Ubunut Apache 2.2”

Change www path in Apache2 Ubuntu

By: Apache Ubuntu To create a new site: Copy the default website as a starting point. sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mysite.conf  Edit the new configuration file in a text editor “sudo nano” on the command line or “gksudo gedit”, for example:gksudo gedit /etc/apache2/sites-available/mysite.conf Change the DocumentRoot to point to the new location. For example, /home/user/public_html/ In the file: /etc/apache2/apache2.conf, change theContinue reading “Change www path in Apache2 Ubuntu”

Error 500 and 404 when using .htaccess for removing index.php

By: Sochinda Enable mod_rewrite in apache Enable ReWrite mode in Apache2 $ sudo a2enmod rewrite $ sudo service apache2 restart Edit site-enable configuration <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all </Directory> Add .htaccess Options +FollowSymLinks IndexIgnore */* <IfModule mod_rewrite.c> RewriteEngine on #RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRuleContinue reading “Error 500 and 404 when using .htaccess for removing index.php”

Install Apache + PHP + MySQL in Ubunut

We can Install Apache, PHP and MySQL in Ubuntu 3 types as bellow: When install Ubuntu Screen, please select ( [x] LAMP SERVER) Go to terminal : sudo apt-get install lamp-server^ Install all application one by one as:   1 Preliminary Note In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings mightContinue reading “Install Apache + PHP + MySQL in Ubunut”

Config ISCSI Drive to Local Drive in Ubuntu for Fixed 403 when you change Document Root in Apache2

By Sochinda, When you connect iscsi initiator that using open-iscsi already in to your server you will get drive as: /media/root/drivename ***root: is a user name that you have connected to iscsi and when you change Document Root in Apache2 to that drive, you will got 403 Error. For fix this error: sudo umount /dev/sda3 mkdirContinue reading “Config ISCSI Drive to Local Drive in Ubuntu for Fixed 403 when you change Document Root in Apache2”