Web

Get rid of favicon.ico does not exist and robots.txt does not exist

If you run an Apache2  server then you have no doubt seen the following error messages a thousand times in your error.log file:

File does not exist: /var/www/robots.txt

File does not exist: /var/www/favicon.ico

As you know by now  not having a favicon.ico file  web browsers will requesting  it each time. But you can tell Apache2  not to log the event as a mistake message.

You will still see the request in the access.log, but at least you will have a cleaner error.log file.

Solution:


Install Suhosin PHP5 Security Protection on Debian Squeeze

What is Suhosin?

Suhosin is an advanced protection  for PHP5 installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core. Suhosin comes in independent parts, that can be used separately or in combination.

Suhosin is a great and simple way of increasing your security protection without having a immense impact on overall performance.

In this tutorial I will cover the installation and configuration of Suhosin on Debian Squeeze. I will also assume that you already have apache2 and php2 setup using this tutorial:How to install apache2, mysql5 and php5 on debian squeeze

1. Install Suhosin on Debian Squeeze:

Installation of suhosin on Debian Squeeze is simple.

apt-get update && apt-get install php5-suhosin

2. Configuring Suhosin:

The configuration file on Debian Squeeze is located in /etc/php5/conf.d/suhosin.ini.


Optimize your site easy with mod_pagespeed

Page Speed ​​is an open source project started by Google to help developers optimize their web pages by applying best practices in web performance.
Page Speed ​​began as an extension of the open source browser, and is now deployed in third party products as Webpagetest.org, Show Slow and Google Webmaster Tools.

How it works :

The Page Speed extensions run performance tests on the basis of a set of best practices known to reduce page load time.
mod_pagespeed, the Apache module, automatically optimizes the resources in a web page.

Installation:

First you need to download the module from here:  mod-pagespeed download

Then run the following commands to install it:

dpkg -i mod-pagespeed-*.deb
apt-get -f install

After you installed the plugin you must restart the apache2 server.

/etc/init.d/apache2 restart

Configure mod_pagespeed for using  on VirtualHosts:


Collect and Analyze Web Stats with Piwik

Piwik is a  source, open (GPL) web real-time analysis software. It provides detailed reports about visitors on your website like: search engines,  keywords used, the language they speak, your popular pages .
Piwik is an alternative to Google Analytics, and is already used by more than 150,000 websites.
Piwik is an PHP MySQL software program that you can download and install on your own web server. At the end of installation process you will be given five minutes JavaScript code.
Simply copy and paste this tag on websites that wish to track  and access your reports real-time analysis.

You can Download the latest Piwik release and install it on your server. You will need at least PHP5.1 and MySQL to make piwik to work.

Install Piwik on Debian Squeeze:

Step1.  First we need to download the latest release of Piwik from http://piwik.org/latest.zip :

wget http://piwik.org/latest.zip

Step2. Then unzip the downloaded file. This will  create a “piwik” folder containing files and directories.

unzip latest.zip


How to purge Varnish cache

If you’re new varnish user, this is some words about varnish:

Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. Unlike other HTTP accelerators, such as squid, which began as a cache on the client, or Apache2, which is mainly an origin server, Varnish was designed from the ground up as an HTTP accelerator..

Now I will show you how to purge all the cache without restarting the daemon.
The following coomand will do this for you:

varnishadm -T 127.0.0.1:6082 url.purge .

Enjoy


       


Categories

Page 1 of 712345...Last »
Copyright © 2012 Linux Debian Tutorials | Debian Squeeze Tutorials. All rights reserved.
Feedbase
Stop ACTA 37 queries in 0.237 seconds.