 |
Linux - Step by Step Install
of Apache PHP SSL and more
by Jason Lam
March 02, 2003
Overview
A step by step installation guide on how to install Apache on Linux box.
As well along PHP, SSL and few other options.
Download
Visit the individual websites and download the latest tarball.
Build and Install
The following instructions is what I've installed in the past on several
machines you may want to leave out certain components or add in more.
For example, I did not include Perl in the build this is something you
might want to add. First step configure apache install directory
cd apache.x.x.x
./configure
--prefix=/usr/local/apachex.x.x
cd ..
Now you can configure the other components you want to build with Apache.
| |
zLib |
| |
./configure --prefix=/usr/local/zlib |
| |
make |
| |
make install |
| |
pspell (must be installed before
aspell ) |
| |
./configure --prefix=/usr/local |
| |
make |
| |
make install |
| |
aspell |
| |
./configure --prefix=/usr/local |
| |
make |
| |
make install |
| |
gd (http://www.boutell.com) |
| |
./configure --prefix=/usr/local/gd |
| |
make |
| |
make install |
| |
jpeg |
| |
./configure --prefix=/usr/local --enabled-shared |
| |
make |
| |
make install |
| |
expat |
| |
./configure --prefix=/usr/local |
| |
make |
| |
make install |
| |
sablotron (http://www.gingerall.com)
|
| |
./configure --prefix=/usr/local |
| |
make |
| |
make install |
| |
PHP |
| |
./configure --prefix=/usr/local/php \ |
| |
--with-mysql=/usr/local/mysql \ |
| |
--with-xml \ |
| |
--with-apache=../apachex.x.x \ |
| |
--with-zlib=/usr/local/zlib |
| |
--with-java=/usr/local \ |
| |
--with-pspell=/usr/local \ |
| |
--with-gd=/usr/local/gd \ |
| |
--enable-track-vars \ |
| |
--enable-trans-sid \ |
| |
--enable-xslt \ |
| |
--with-xslt-sablot \ |
| |
--with-expat |
| |
make |
| |
make install |
| |
cp php.ini-dist /usr/local/lib/php.ini |
| |
OpenSSL |
| |
./configure --prefix=/usr/local/ssl |
| |
make |
| |
make test |
| |
make install |
| |
Mod SSL |
| |
./configure --with-apache=../apachex.x.x |
| |
Apache |
| |
SSL_BASE=../openssl-x.x.x |
| |
./configure \ |
| |
--enable-module=ssl \ |
| |
--activate-module=src/modules/php4/libphp4.a \
|
| |
--enable-module=php4 \ |
| |
--prefix=/usr/local/apache \ |
| |
--enable-shared=ssl \ |
| |
--enable-shared=max \ |
| |
--enable-module=most \ |
| |
make |
| |
make certificate TYPE=custom |
| |
Now enter your SSL Infomation, you will be
prompted with several questions |
| |
make install |
You are now done, start apache by typing in /usr/local/apache/bin/apachectl
startssl. You might prompt for th SSL password. Point you browser to your
server's ip and you should see the apache default screen.
|