Debian / Ubuntu
Install Apache
# apt-get install apache2If you want to use mod_rewrite
# a2enmod rewrite# a2enmod proxyInstall MySQL
# apt-get install mysql-serverMySQL on Debian unfortunately comes with latin1 as default character set. You may prefer to change to utf8 in /etc/mysql/my.cnf if that doesn't have an impact on other applications.
[mysqld]
default-character-set=utf8
default-collation=utf8_general_ci
character-set-server=utf8
collation-server=utf8_general_ci
[client]
default-character-set=utf8
Then install the additional required packages
# apt-get install imagemagick curlFor PHP, you have to install a number of libraries as well
# apt-get install php5 php5-mysql php5-xsl php5-curl php-pear php5-cli php5-imagick php5-mhash php5-mcrypt php5-imapIf you want to use server-side video/audio encoding, add the debian-multimedia repository in /etc/apt/sources.list
deb http://www.debian-multimedia.org lenny main
import its key
# wget http://debian-multimedia.org/gpgkey.pub -O - | apt-key add - && apt-get install debian-multimedia-keyringand install ffmpeg
# apt-get install ffmpegIf you want to use APC cache
# apt-get install php-apc