Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I install Mysql + Apache + Mod_ssl + PHP4 ?

Installation

How do I install Mysql + Apache + Mod_ssl + PHP4 ?

by  devnull22  Posted    (Edited  )
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

Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top