Author: pathfinder Source: Pconline This paper introduces the PHP4.03 and mysql3.23.9 redhat6.0 installed in the system apache1.3.11. The software drawn in the article can be downloaded on the software column of this site. The required software · PHP4.03 source program C language code · mysql3.23 alpha source · Apache 1.3.11 Source program · phpMyAdmin_2.0.5 Managing the best tool for managing the mysql database The first step Download the desired program, install mysql3.23 program . The SU has created a directory installed for the Root, such as / server built a directory mysql, apache, download the above 3 files to / usr / srp. Run the following instruction to unlock the file package tar -zxvf PHP-4.0 B3.TAR.GZTAR -ZXVF mysql-3.23.9-alpha.tar.gztar -zxvf apache_1.3.11.tar.gz The phpMyAdmin downloaded to / Server equally run tar -zxvf phpMyadmin_2.0.5.tar.gzcd / usr / src / mysql-xxxx Here XXXX is the version number of the program, the same, the system is required to have an installed C development library ·. / configure -help ·. / configure -prefix = / server / mysql · make · make install · CD / Server / mysql / bin ·. / MySQL_INSTALL_DB to this mysql installed successfully can run mysql database / server / mysql / libexec / mysqld & can be viewed by database view program mysqlshow View Database Current Status / Server / MySQL / BIN / MySQLSHOW Second Step Install Apache and PHP4. If the Apache runs first in the system, let's turn off this service killall httpd compile Apache and PHP4, each line number is a line of cd/usr/src/apache_1.3.x. / Configure --prefix = / server / apache · CD ../php-4.0.x ·. / configure --with-mysql = / server / mysql --with-apache = .. / apache_1.3.x --enable-track-vars · make · make install · cd ../apache_1.3.x ·. / configure --prefix = / server / apache --activate-module = src / modules / php4 / libphp4.a · make · make install · cd ../php-4.0.x · Cp php.ini-dist /usr/local/lib/php.ini apache and php4 installed successfully configured Apache and PHP4 • Configuring PHP4 PHP4 configuration files for /usr/local/lib/php.ini files can be used vi To edit, if you install the MC, you can use the MC to edit the mysql.default_port = 3306Mysql.default_host = localhostmysql.default_user = root saves files. • Configure the configuration file for Apache Apache to /Server/apache/conf/httpd.conf Remove the #addtype application / x-httpd-php .php row registration number "#" Add Row AddType Application / X-httpd-php .php3 Save file.