HOWTO_ Apache2 mit PHP4 und GD kompilieren
Aus alten Zeiten stammt noch diese Anleitung, die ich bereits mehrmals erfolgreich ausgeführt habe. Inzwischen ist aber mein Server komplett per apt eingerichtet worden, ich habe keinen Compiler mehr benötigt.
-
Apache2
Anleitung laut http://www.php.net/manual/en/install.apache2.php.
Apache httpd herunterladen und entpacken.
#> cd apache2In der /etc/apache2/conf/httpd.conf für User und Group einen existierenden Benutzer und dessen Gruppe, zb nobody und nogroup eintragen.
#> ./configure \
--prefix=/etc/apache2/
--enable-so
#> make && make install
-
PHP4 mit GD-Library
Freetype 2, und zlib herunterladen, kompilieren und installieren ohne besondere Parameter.
libpng herunterladen, aus scripts die makefile.linux nach ../makefile kopieren, und mit make && make install kompilieren und installieren.
jpeg-6b downloaden und mit make kompilieren.
#> mkdir /usr/local/man/man1GD Graphics Library herunterladen und kompilieren.
#> cp libjpeg.* /usr/lib/
#> cp j*.h /usr/local/
#> make install
#> cp gd.h /usr/local/libPHP4 herunterladen und entpacken.
#> make install
#> ./configure \
--prefix=/etc/php4 \
--with-apx2=/etc/apache2/bin/apxs \
--with-zlib \
--enable-bcmath \
--with-bz2 \
--enable-exif \
--enable-ftp \
--with-gd=/usr/local/lib \
--with-jpeg-dir
cypressor - 21. Mai, 19:58