Month: July 2008

  • HAProxy 1.3.15.2 installation under Debian Etch (compiling from sources)

    HAProxy is an excellent load balancer which performs extremely well. This page explains how to install HAProxy 1.3.15.2 since this is one of the recommended versions on the ”HAProxy Mailing List”: Server response time discrepancy Also, it has been recommended on that thread to use one of the following kernels: 2.6.22 2.6.25 2.6.18 Installation Steps […]

  • Granting MySQL Permissions

    Usage Examples Notes WITH GRANT OPTION should only be added when really needed; this privilege allows a user to grant to others (more info). The location from where a user can connect (i.e. ‘username’@’server’) can be also a network if specified as  ‘username’@’10.120.%.%’ See Also Showing MySQL Permissions GRANT Syntax

  • Name based virtual hosting

    It is possible (using HTTP/1.1) to have several websites served on the same IP address and port and still differentiate them based on the host name. This should be done at the web server configuration level. Microsoft IIS IIS uses the so called “Host Headers”. It is straightforward to set up, you may want to […]

  • Linux gzip usage

    Compressing Example: Listing Example: See also Linux gzip man page

  • Forcing Perl to install CPAN packages via HTTP (i.e. avoiding FTP)

    If you are behind a firewall and your FTP connectivity with the external world is just restricted you might get frustrated with Perl’s automatic way of installing packages (via CPAN) because it uses FTP protocol by default. Solution Edit your CPAN settings file (probably /etc/perl/CPAN/Config.pm) and change the line: it should look like this: After […]

  • Installing unrar package under Debian Linux

    What we need to do is install this package (at least for Debian 4.0 Etch. You may find for your appropriate version here). Since it belongs to Debian’s non-free section you need to make sure you have non-free enabled on your apt sources. You may test that everything will be smooth by invoking the install […]

  • Unrar command line usage under Debian Linux

    The command usage is: See Also Installing unrar package under Debian Linux Decompressing rar files under Debian Linux

  • Decompressing rar files under Debian Linux

    First, you should have the necessary package(s) installed. Check this: Then: See Also Unrar command line usage under Debian Linux

  • Configuring syslog to receive messages from the network (aka listen)

    It is sometimes needed to have a syslog server configured in such a way that is able to listen to the network and log information send through it. By default, this is usually turned off. All we need to do is run syslog with the option ‘-r’. If we look at syslogd’s man page: -r […]