Specifications
# ./configure --with-mysql=/usr/local/mysql \
--with-xml --with-apache=../apache_1.3.x \
--with-curl=/usr/local/curl \
--with-pspell=/usr/local/pspell \
--enable-shared-pdflib --enable-track-vars
Next, make and install the binaries:
# make
# make install
Copy the ini file to the lib directory:
# cp php.ini-dist /usr/local/lib/php.ini
You can edit the PHP file to set PHP options. You could, for example, increase the max_
execution_time in PHP by inserting the following line in your php.ini file.
max_execution_time = 60;
Apache and mod_SSL
Time to configure and install mod_SSL and Apache. If you are in the United States, you will
need the rsaref-2.0 files. Unfortunately, because this file is no longer distributed by RSA, it
does not have a stable home page. You will need to use a search engine such as Lycos
http://ftpsearch.lycos.com
or Google
http://www.google.com
to search for the file rsaref20.tar.Z. Make sure you get the UNIX distribution.
Create the rsaref directory where you will extract the files. Note that this assumes you have
downloaded to the temp directory where you are.
# mkdir rsaref-2.0
# cd rsaref-2.0
# gunzip -c ../rsaref20.tar.Z | tar xvf -
Now configure and build the OpenSSL Library. If inside the USA, you have to build OpenSSL
in conjunction with the RSAref library.
# cd rsaref-2.0
# cp -rp install/unix local
# cd local
# make
# mv rsaref.a librsaref.a
# cd ../..
Installing PHP 4 and MySQL
A
PPENDIX A
A
INSTALLING PHP 4
AND MYSQL
787
38 7842 app a 3/6/01 3:40 PM Page 787