///////////////////////////////////////////////////////////////
////INSTALL APACHE2 + PHP + SSL +GLIB{JPEG,PNG) on RH7.3/////
///////////////////////////////////////////////////////////////
=================> zlib-1.1.3
./configure
make install
=================> libpng-1.2.0
copy makefile from dir libpng-1.2.3/scripts
make install
=================> jpegsrc.v6b.tar.gz (at end, gmake install-lib)
./configure
make
make install
make install-lib
=================> gd-1.8.4.tar.gz (see note at bottom on reasoning for numerous -I)
edit 'Makefile'
CFLAGS=-O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG
LIBS=-lgd -lpng -lz -ljpeg -lm
INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 \
-I/usr/X11R6/include/X11 -I/usr/local/include \
-I/usr/local/include/freetype2 -I/usr/X11R6/include \
-I/usr/local/include/freetype2/freetype
LIBDIRS=-L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib
make
make install
=================> openssl-0.9.6b.tar.gz
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl
make
make install
./usr/local/ssl/bin/openssl genrsa -des3 -rand any_file1:any_file12:any_file13 \
-out www.yourdomain.cz.key 1024
./usr/local/ssl/bin/openssl req -new -key www.yourdomain.cz.key -out www.yourdomain.cz.csr
./usr/local/ssl/bin/openssl x509 -req -days 365 \
-in www.yourdomain.cz.csr -signkey www.yourdomain.cz.key \
-out www.yourdomain.cz.crt
=================> cd ../apache_1.3.26
./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max --enable-module=ssl --enable-shared=ssl
make
make install
=================> PHP
!!!!!!!!! PHP4.2.1 S APACHE 2.0.39 on RH7.3 YOU MUST THIS !!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have the same problem and the solution was to recompile PHP. Go to the source \
directory of PHP 4.2 and run "make distclean". Then you go to file "php_functions.c" \
in directory "sapi/apache2filter" and change the 93rd line from !MODULE_MAGIC... to \
!AP_MODULE_MAGIC..... Then you should normally configure and make PHP 4.2.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================> PHP
./configure --enable-safe-mode \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql \
--enable-track-vars \
--enable-ftp \
--with-gd=/home/1/gd-1.8.4 \
--with-png-dir=/home/1/libpng-1.2.3 \
--with-zlib-dir=/home/1/zlib-1.1.4 \
--with-jpeg-dir=/home/1/jpeg-6b \
--enable-trans-sid \
--disable-debug
make
make install
=================> EDIT APACHE/CONF/Httpd.CONF
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.php3 index.phtml
</IfModule>
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
=================> EDIT APACHE/CONF/ssl.CONF
Server Certificate:
SSLCertificateFile /usr/local/apache/conf/www.yourdomain.cz.crt
#SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
Server Private Key:
SSLCertificateKeyFile /usr/local/apache/conf/www.yourdomain.cz.key
#SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
copy www.yourdomain.cz.crt and www.yourdomain.cz.key into /usr/local/apache/conf/
go to /usr/local/apache/bin/apachectl startssl
swingcoder wrote:
i try install php4.2.1+apache2.0.39 on linux
,i did it following http://www.php.net/manual/en/install.apache.php,but get the error message:cannot load /usr/local/lib/libphp4.so into server: /usr/local/lib/libphp4.so: undefined symbol: ap_block_alarms!!!
any clues!