PHP Suhosin config
As an addition to my previous post :
FastCGI php 5.3.6 compilation on Ubuntu 8.04
you have here a config settings for Suhosin which you can use as a base for further modifications:
FastCGI php 5.3.6 compilation on Ubuntu 8.04
In this article I will show you how to compile php 5.3 on Ubuntu 8.04 but it should work in a similar manner on later distributions.
Installation
EDIT: 1
- added some new dependencies: libicu-dev g++ libmysqlclient-dev
First some dependencies:
#apt-get install apache2 apache2-mpm-prefork apache2-prefork-dev apache2-utils apache2.2-common
apt-get install aspell libaspell-dev libxml2 libsnmp-base libsnmp15 libxml2-dev
apt-get install libbz2-dev libzip-dev libzip1 zlib1g zlib1g-dev
apt-get install curl libcurl4-openssl-dev libcurl3 libcurl3-gnutls
apt-get install libc-client-dev libfreetype6 libfreetype6-dev
apt-get install libjpeg62 libjpeg62-dev libpng12-0 libpng12-dev
apt-get install libmcrypt-dev libmcrypt4 libtidy-dev libxslt1-dev libicu-dev g++ libmysqlclient-dev
# for /usr/bin/apxs2
#aptitude install apache2-threaded-dev apache2-utils apache2.2-common
aptitude install libicu-dev libicu38
#aptitude install mysql-server-core-5.0
#aptitude install mysql-common mysql-server mysql-server-5.0 mysql-client mysql-client-5.0 mysql-server-core-5.0
I have commented out the the dependencies which are needed for compiling the apache2 module because in this post I want to show you how to get the the php5-cgi binary
which is a bit tricky because you can’t compile all binaries at once and you need to know which options to disable to get the CGI .
No we are going to need the php’s source code:
Continue reading “FastCGI php 5.3.6 compilation on Ubuntu 8.04” »