Install XCache

XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load. It overcomes a lot of problems that has been with other competing opcachers such as being able to be used with new PHP versions.

1. Installing the XCache package

apt-get install php5-xcache
Continue reading

Installing suPHP

suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

1. Install suPHP

apt-get install libapache2-mod-suphp
Continue reading

Installing Zend Optimizer

Notice

This tutorial is for older Debian versions and may not work for current versions. Please refer to the links below to find a newer tutorial.

The Zend Optimizer enables you to run Zend Guard encoded files.

1. Download a copy of Zend Optimizer / Guard from the location below and put it into /tmp

http://www.zend.com/en/products/guard/downloads
Continue reading

Installing the DSPAM web frontend on lenny

This tutorial covers installing and configuring the DSPAM web frontend. Using the web frontend, the mail users can configure the sensitivity of the spam filter, see statistics and more.

I assume you already have the Apache2 web server and DSPAM daemon installed.

1. Install the dspam-webfrontend package and suexec module for the Apache2 web server.

apt-get install dspam-webfrontend apache2-suexec
Continue reading

Installing ionCube

ionCube protects software written using the PHP programming language from being viewed, changed, and run on unlicensed computers.

1. Download ionCube loaders

wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
Continue reading

Request and install SSL using Apache2 and OpenSSL

First we’ll need to create a certificate signing request (CSR) containing the certificate application info and a private key. Make sure you don’t expose you’re private key (test.com.key) to the public or the safety of the encrypted information could be compromised.

mkdir /etc/apache2/ssl
cd /etc/apache2/ssl
openssl req -new -nodes -keyout test.com.key -out test.com.csr
Continue reading

Password protecting a directory with Apache and .htaccess

The Apache web server can read .htaccess files located anywhere in your document root to perform different tasks and control settings without changing the configuration files. This may be useful where you don’t have access to change the configuration files or don’t want to mangle with the configuration files to perform easy tasks. In this tutorial we’re going to password protect a single directory on your web site.

First we’ll need to create a file containing users and passwords:

htpasswd -c /etc/apache2/.htpasswd user1
htpasswd /etc/apache2/.htpasswd user2

You can store the password file anywhere you like but I chose to store it where the Apache configuration files are located. Continue reading

Setup Trac and Subversion

Setup Trac and Subversion

First install packages for both Trac and Subversion. We’ll be using Apache to publish the Subversion repositories
apt-get install python-setuptools trac subversion libapache2-svn

Create the SVN repository directory structure, used to create new repositories later
mkdir /var/svn/
mkdir /var/svn/tmpproject
mkdir /var/svn/tmpproject/branches
mkdir /var/svn/tmpproject/tags
mkdir /var/svn/tmpproject/trunk
Continue reading