INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Installation

How do I install Mysql + Apache + Mod_ssl + PHP4 ? by devnull22
Posted: 13 Oct 00

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


Back to MySQL FAQ Index
Back to MySQL Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close