Posts Tagged ‘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 […]

Read more…

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# 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 […]

Read more…

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# sudo apt-get install php-pear php5-dev libcurl4-openssl-dev Install pecl_http: # sudo pecl install pecl_http# sudo pecl install pecl_http Create file /etc/php5/conf.d/http.ini with the following content: extension=http.soextension=http.so Restart Apache2: # sudo /etc/init.d/apache2 restart# […]

Read more…

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 […]

Read more…

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# 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_PATHexport LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH To verify the […]

Read more…