Linux with its safe and reliable, code open, Low-cost and rich Third-party software, by the site designers of all ages, which apache+mysql+php is eye-catching, coupled with Mod―auth―mysql, phpMyAdmin and other modules support, So that the site developers are more powerful. Apache is a Web services program, features similar to the Microsoft IIS Information Server, MySQL is a multi-user, multi-threaded database servers, it is known for ease of use, even if you do not understand the database is not a problem, but you must not worry about its functional and security issues PHP is a new programming language, syntax similar to the C language, the function is very strong; phpMyAdmin is a free software written in PHP for MySQL database management; Mod―auth―mysql is a third-party module used by Apache for user authentication.
First, software acquisition
Apache―1.3.6.tar.gz
Can be downloaded from http://www.apache.org.
Php-3.0.12.tar.gz
Can be downloaded from the http://www.php.net, and this is the "home" of PHP.
Mysql-3.22.27.tar.gz
Can be downloaded from http://www.mysql.com.
Mod―auth―mysql-2.20.tar.gz
Can be downloaded from http://bourbon.netvision.net.il/mysql/mod―auth―mysql/.
Phpmyadmin―2.0.5.tar.gz
Can be downloaded from http://www.htmlwizard.net/phpMyAdmin/.
Note: All of the above are source code, not rpm packages.
Second, the Software installation
Log in as root and copy all of the above files to/tmp.
1. Install MySQL
#tar -zvxf mysql-3.22.27.tar.gz(产生mysql-3.22.27目录)
#mv mysql-3.22.27 /usr/local/mysql
#cd /usr/local/mysql
#./configure --prefix=/usr/local/mysql(把MySQL的安装目录定为/usr/local/mysql)
#make ;make install
2. Install Apache, PHP3, Mod―auth―mysql
Since PHP3 and Mod―auth―mysql are compiled as two of Apache modules, Apache compiles with them.
#tar xvzf apache―1.3.6.tar.gz (产生apache―1.3.6目录)
#tar xvzf php-3.0.12.tar.gz (产生php-3.0.12目录)
#tar xzvf mod―auth―mysql-2.20.tar.gz (产生mod―auth―mysql-2.20目录)
#cd apache―1.3.6
#./configure --prefix=/usr/local/apache (把Apache的安装目录定为/usr/local/apache)
#cd ../php-3.0.12
#./configure --with-mysql=/usr/local/mysql
--with-apache=../apache―1.3.6 --enable-track-vars