Selected version: mysql4, apache2.52, php5.0 installation process: first delete the self-contained software: rpm -e --nodeps httpd-2.0.46-26.entrpm -e --Nodeps PHP-4.3.2-8. ENT1. Install MySQL: Unzip file to / usr / local # CD / usr / local # tar xzvf mysql-standard-4.0.21-pc-linux-i686.tar.gz # cd xzvf mysql-standard-4.0.21- PC-Linux-i686 # ./configure --prefix = / usr / local / mysql # make # make install # scripts / mysql_install_db Settings Automatic start # cp /usr/local/mysql/share/mysql/mysql.server / etc / Rc.d / rc.local / mysql
2. Install apache #cd / usr / local / src #tar xzvf httpd-2.0.50-i686-pc-linux-gnu.tar.gz #CD httpd-2.0.50-i686-pc-linux-gnu # ./ Configure --prefix = / usr / local / apache2 --enable-module = so #make #make install configures httpd.conf #CD / usr / local / apache / bin #vi httpd.conf Modify the following: Put AddType Application / X-httpd-php .php addtype application / x-httpd-php-source .phps DirectoryIndex index.html
Change to:
AddType Application / X-httpd-php .php .php3 addtype application / x-httpd-php-source .phps DirectoryIndex index.html index.php index.php3 index.htm
Restart Apache
3. Install php #CD / usr / local / src #tar php-5.0.2.tar.gz #CD PHP-5.0.2 #. / Config --MYSQL = / usr / local / mysql --with-apxs2 = / server / apache / bin / apxs --enable
-track-vars # Make #Make Install #cp php.ini-dist /server/apache/conf/php.ini Configure php.ini register-golbals = on session.auto_start = 1 no longer supports mysql by default in PHP5, need Modify php.ini to support mysql items extension_dir = "./ EXT" // to change to your own path EXTENSION = php_mysql.dll to find the above two lines, and remove the previous comments,