Author of this article: former Aosuo.com user herodong OICQ: 6678705
/* Lone Wolf: The original text is too big, more than 36K. I chose the important parts to post, if you need the original text, you can MAILTO: wolflx@263.net
Our goal is to install a web server that allows us to host multiple websites, some of which are security solutions for e-commerce, and large Some websites are driven by scripts that connect to a database server and extract its data.
The tools required for this task are:
Apache - a website server
Mod_SSL - a module for Secure Sockets Layer (SSL)
OpenSSL - an open source toolkit (required for mod_ssl )
RSARef - for US users only
MySQL - a database server
PHP - a scripting language
"All roads lead to Rome"...so this is just one of many configurations that will meet our requirements one. I chose this configuration because it's the simplest and fastest. The reason for choosing Mod_SSL/OpenSSL is because I have previous experience with it and it is the fastest to configure and the easiest to install. In order to easily integrate with Apache, I chose PHP and MySQL. Remember, Perl can do anything you want to do, whereas PHP is simple and easy for any programmer who wants to learn it.
Hopefully you will successfully complete the following goals by the end of this simple guide.
Install and set up the MySQL database server
Install and set up the Apache web server with SSL
Install and configure the PHP 4.0 hypertext preprocessor for server-side scripting
Create some sample certificates for use with Apache SSL
This article assumes that you have installed the following software on your system.
Perl (preferably ver 5+)
gzip or gunzip
gcc and GNU make
Prepare
Apache (Web server) - http://www.apache.org
Mod_SSL (Secure Server Layer)-http://www.modssl.org
OpenSSL (SSL Toolbox)-http://www.openssl.org
PHP (Scripting Language)-http://www. php.net
MySQL (SQL database server)-http://www.mysql.com
Download all (tar file) source code to a temporary directory. Make sure you put them somewhere with lots of space... you should download them as root to avoid permission issues.
Our plan
Our plan is to first install the MySQL server and make sure it works, then we will install PHP and Mod_SSL, and finally we will install the Apache web server. After we have installed Apache, we can test whether PHP and Mod_SSL support are working.
MySQL Source Code Installation (UNIX)
The basic command you must use to perform the installation of the MySQL source code distribution (from an unpacked "tar" file) is:
Become the root user by using su.
$su
Go directly to the directory where you have the tar file. (Use a temporary directory. /tmp/download/ is used here)