La stringa di configurazione per permettere a PHP5 di essere correttamente eseguito come CGI.

In teoria basterebbe un ./configure, ma per compilare PHP5 in modo che possa selettivamente essere eseguito sia come modulo apache sia come CGI (a seconda per esempio dell’estensione degli script) occorrono alcuni accorgimenti:

./configure --with-interbase --with-mysql=/usr --with-ming=/usr --with-png-dir \ --with-jpeg-dir=/usr/local/src/jpeg-6b --with-zlib-dir --with-gd \ --with-flatfile \ --enable-exif --with-ttf --with-freetype-dir=/usr/include/freetype2 \ --with-t1lib --enable-gd-native-ttf --enable-debugger \ --enable-mbstr-enc-trans --with-iconv --with-pgsql --enable-dbase \ --enable-force-cgi-redirect make clean make install service httpd stop service httpd start