Here is how I configured Apache with PHP and mod SSL. The new PHP 5.2 is just out and I need CURL that wasn’t previously included in my last build.
# cd mod_ssl-2.8.28-1.3.37 # ./configure --with-apache=../apache_1.3.37 # cd ../apache_1.3.37 # SSL_BASE=/usr ./configure --prefix=/usr/local --enable-module=so \ --enable-module=speling --enable-module=rewrite --enable-module=ssl # make # make install # cd ../php-5.2.0
At this point I tried to apply a security patch that I wrote myself, but one hunk failed, so I changed the file manually and built an updated patchfile.
# diff -urNp php-5.2.0_orig php-5.2.0_obliquid > ob_patch.txt
And I try it on the original sources:
# patch -p1 > ../ob_patch.txt
This time it worked, of course. Time to call a pretty long configure line.
# ./configure --enable-memory-limit \ --disable-url-fopen-wrapper --with-gd --enable-dbase --enable-exif \ --enable-ftp --with-gettext --with-iconv --enable-mbstring \ --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/lib --with-kerberos \ --with-png-dir=/usr/lib --enable-gd-native-ttf --with-freetype-dir=/usr/lib \ --with-openssl --with-xml --with-dom --disable-cgi --with-mcrypt \ --with-xsl --enable-javascript --with-mcal --with-sablot-js --with-readline \ --with-imap --with-imap-ssl --with-mysql=/var/j_mysql/var/mysql \ --with-mysqli=/var/j_mysql/bin/mysql_config \ --with-config-file-path=/usr/local/conf/php-module \ --disable-cli --with-apxs=/usr/local/bin/apxs --with-sqllite \ --with-curl # make # make install
And also I compile separately the CLI version so I can have two different php.ini
# ./configure --enable-memory-limit \ --disable-url-fopen-wrapper --with-gd --enable-dbase --enable-exif \ --enable-ftp --with-gettext --with-iconv --enable-mbstring \ --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/lib --with-kerberos \ --with-png-dir=/usr/lib --enable-gd-native-ttf --with-freetype-dir=/usr/lib \ --with-openssl --with-xml --with-dom --disable-cgi --with-mcrypt \ --with-xsl --enable-javascript --with-mcal --with-sablot-js --with-readline \ --with-imap --with-imap-ssl --with-mysql=/var/j_mysql/var/mysql \ --with-mysqli=/var/j_mysql/bin/mysql_config \ --with-config-file-path=/usr/local/conf/php-cli \ --disable-cgi --with-sqllite --with-curl \ --enable-xslt --with-xslt-sablot # make # make install





