Tag: Ubuntu

  • Debian/Ubuntu: Basic Apache 2 security

    Update 2010-10-25: I’ve added “TraceEnable Off” to the configuration (which is not the default on Debian). If you run an Apache 2 web server on a production system, it is always a good idea to make some easy configuration changes in /etc/apache2/conf.d/security to increase the server’s security: # Disable access, directory indexing and .htaccess files […]

  • Debian/Ubuntu & Apache 2: Transparent reverse proxy with mod_proxy

    Here is a tutorial how to use the apache module mod_proxy to set up a transparent reverse proxy that passes all requests to another web server. Under Debian or Ubuntu you have to enable the modules proxy and proxy_http: # sudo a2enmod proxy # sudo a2enmod proxy_http A use case for a transparent proxy is […]

  • Ubuntu 10.04: Setup APC for PHP 5.3 and Apache2

    Installing the APC (Alternative PHP Cache) using the php-apc package is straightforward: # sudo aptitude install php-apc # sudo /etc/init.d/apache2 restart Using the package php-apc installs APC 3.1.3p1. If you would like to use the most recent version 3.1.4 you can manually set up the PECL package as follows: Install the required packages: # sudo […]

  • Ubuntu 10.04 & PHP 5.3: Installing pecl_http

    To install the pecl_http PHP extension on Ubuntu 10.04 follow the instructions below: Install the required packages: # sudo apt-get install php-pear php5-dev libcurl4-openssl-dev Install pecl_http: # sudo pecl install pecl_http Create file /etc/php5/conf.d/http.ini with the following content: extension=http.so Restart Apache2: # sudo /etc/init.d/apache2 restart After restarting the Apache2 web server a “http” section should […]

  • Debian/Ubuntu: Multi network/gateway ip routing setup

    If you would like to connect your Debian or Ubuntu system to more than one network (e.g. with more than one physical or virtual network device) you could use the following ip routing setup to use a specific gateway for each network. Create a configuration file in /etc/network/if-up.d/ (like /etc/network/if-up.d/routing) and add one section for […]

  • Ubuntu 10.04 & Tomcat 6: Improve performance with Apache Tomcat Native library

    To improve the performance of the Apache Tomcat Server you could use the Apache Tomcat Native library. To install the library just execute: # sudo aptitude install libtcnative-1 and add the following line to the file $CATALINA_HOME/bin/setenv.sh (create the file if it does not exist): export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH To verify the library is running you will […]