faqts : Computers : Programming : Languages : PHP : Installation and Setup : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

28 of 53 people (53%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

How do I install Apache, MySQL, PHP3, mod-ssl on the same machine?

Jun 28th, 1999 01:04
Nathan Wallace, M.Brands


1. Get the following packages:
        Apache 1.3.6            (www.apache.org)
        OpenSSL 0.9.3a          (www.openssl.org)
        mod_ssl 2.3.5-1.3.6     (www.modssl.org)
        php 3.0.9 ???           (www.php.net)

2. Extract all tarballs (for instance to /tmp/compile).

3. Installing OpenSSL:
        - start config to configure the build (you may need
          some extra options, such as --prefix. INSTALL has
          more information)
        - compile the stuff (do a 'make')
        - test the build (do a 'make test'). On my machine this
          ends with:
                OpenSSL 0.9.3a 29 May 1999
                built on: Fri Jun 25 20:24:08 CEST 1999
                platform: FreeBSD-elf
                options:  bn(64,32) md2(int) rc4(ptr,int) 
                          des(ptr,risc1,16,long) idea(int)
                          blowfish(idx) 
                compiler: gcc -DTERMIOS -DL_ENDIAN -fomit-frame-pointer 
                              -O3 -m486 -Wall -DSHA1_ASM
                              -DMD5_ASM -DRMD160_ASM
                `test' is up to date.
        - if the test was succesful, install (do a 'make install' as 
          root) and do a 'ldconfig' just to make sure (looks for new
          systemlibs)

4. Installing PHP
        - go to the apache dir and do a configure without any options.
          it wil be configured correctly later.
        - go to the php dir and configure configure the build
                ./configure --with-apache=../apache_1.3.6
          you probably want extra stuff (do a configure --help)
        - build the goods (make)
        - install the goods (make install as normal user)

5. Installing mod_ssl
        - configure mod_ssl: ./configure --with-apache=../apache_1.3.6
          you should see:
                Done: source extension and patches successfully applied.
                
                Now proceed with the following commands (Bourne-Shell 
                syntax):
                 $ cd ../apache_1.3.6
                 $ SSL_BASE=/path/to/openssl ./configure ... 
                        --enable-module=ssl
                 $ make
                 $ make certificate
                 $ make install

6. Install apache
        - configure apache (do a configure --help for more info)
                ./configure --activate-module=src/modules/php3/libphp3.a 
                            --enable-module=ssl
        - build it (make)
        - and now the fun part: install it with a 'make install'
          (you probably need root access)

7. Have a beer and lie in the sun for a while, then get back to your PC
   to configure apache and php. The fun has only just begun ;)

Btw. I installed it on a pristine FBSD 3.2 box. The buildoptions I
showed produce a fairly barebones server, so you'll probably want to use
some extra parameters while configuring everything (mostly php, I
assume).