Find instructions attached. This is for a static install though, not
modules.
--MonMotha
Dustin Cross wrote:
Too bad there aren't any updated/patched binaries for Apache on 64-bit
Unix. I have looked everywhere for my SuSE Sparc64 system. Guess I have
to compile it. Is there anything i need to know about compiling apache and
getting mod_ssl and mod_php to work?
Dusty
ID - 108. How do I install Mysql + Apache + Mod_ssl + PHP4 ?
Note: this installation was done under linux redhat 6.2 on
pentium celeron 500.
First Lets install Mysql :
We are going to install mysql-3.22.32 ,but you may insatll
what ever version you wish.
Files Needed :www.mysql.com
- openssl-0.9.5a.tar.gz www.openssl.org
- apache_1.3.12.tar.gz www.apache.org
- mod_ssl-2.6.2-1.3.12.tar.gz www.modssl.org
- php-4.0.0.tar www.php.net
(1) download all files into /usr/local/src/
(2) tar -zxvf mysql-3.22.32.tar.gz # unzip and untar
(3) cd mysql-3.22.32
(4) ./configure --prefix=/usr/local/mysql
--localstatedir=/data/mysql
- install mysql in /usr/local/mysql
- install database data files in /data/mysql
(5) make
(6) make install
(7) scripts/mysql_install_db
(8) edit the /etc/rc.d/rc.local
- add "/bin/sh -c 'cd /usr/local/mysql ;
./bin/safe_mysqld &'
- this will automatically start sql server
when server restarts.
- or : copy support-files/mysql.server to
/etc/rc.d/init.d
and linked to /etc/rc.d/rc3.d/S99mysql
- set root password with
/usr/local/mysql/bin/mysqladmin -u root password
'new-password'
Now that MySQL is running , lets install the rest.
The order of installation is important!
(9)cd /usr/local/src
(10) tar -zxvf apache_1.3.12.tar.gz
(11) tar -zxvf mod_ssl-2.6.2-1.3.12.tar.gz
(12) tar -zxvf php-4.0.0.tar.gz
(13) tar -zxvf openssl-0.9.5a.tar.gz
# First install Openssl
(14) cd openssl-0.9.5a
(15) ./config --prefix=/usr/local/openssl
(16) make
(17) make test
(18) make install
(19) cd /usr/local/src/mod_ssl-2.6.2-1.3.12
(20) ./configure --with-apache=../apache_1.3.12
(21) cd /usr/local/src/apache_1.3.12
(22) ./configure --prefix=/usr/local/apache_ssl
# config php4
(23) cd php-4.0.0
(24) CFLAGS='-O2 -I/usr/local/openssl/include' \
./configure \
--with-apache=../apache_1.3.12 \
--with-msyql=/usr/local/mysql \
--enable-memory-limit=yes \
--enable-debug=no \
--enable-track-vars
(25) make
(26) make install
(27) cd ..
# build/install apache
(28) cd apach_1.3.12
(29) SSL_BASE=/usr/local/openssl \
./configure \
--prefix=/usr/local/apache_ssl \
--enable-module=ssl \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4
--enable-module=auth_dbm
--enable-module=auth_db
(30) make
(31) make certificate
- when ask for Common Name make sure
you put your full domain name
(ie. www.canadianads.com)
(32) make install
(33) cd ../php-4.0.0
(34) cp php.ini-dist /usr/local/lib/php.ini
# now edit your httpd.conf at
# /usr/local/apache_ssl/conf
(35) Uncomment : AddType application/xhttpd-php .php
(36) Uncomment : AddHandler cgi-script .cgi
(37) DirectoryIndex index.html index.php index.cgi
And that about does it. Let me know if there are any
errors.
Cheers
Ken
Last Updated : Sep 23,2000
Create Date : Aug 25,2000