The new version of the old version is still different. Now put the steps.
installation steps:
1.mysql
Download mysql for Linux rpm package http://www.mysql.com/downloads/down...52-1.i386.rpm; http://www.mysql.com/downloads/down ... 3.52-1.i386.rpm;
Save to / home / TMP directory
Command list:
CD / Home / TMP rpm -ivh mysql-3.23.52-1.i386.rpm # Install mysql server rpm -ivh mysql-client-3.23.52-1.i386.rpm # Install MySQL Client / USR / MYSQL / SAFE_MYSQLD & # Start MySQL Server MySQL # Run the mysql client and open the ROOT user's remote access. In order to debug USE MySQL Update User Set Host = '%' Where User = 'root' and host <> 'localhost'; flush privileges; quit
To this mysql installation
2.Apache
Download the source package of Apache for Linux in the following page
http://www.apache.org/dist/httpd/apache_1.3.26.tar.gz;
Save to / home / TMP directory
Command list:
CD / home / tmp tar -zxvf apache_1.3.26.tar.gz mv apache_1.3.3.26.tar.gz apache cd apache ./configure --prefix = / usr / local / apache --enable-module = SO Make Make Install
Install apache to / usr / local / apache and configure Apache Support DSO
3.php
Download PHP for Linux source package in the following page
http://www.php.net/get_download.php?df=php-4.2.3.tar.gz;
Save to / home / TMP directory
Command list:
CD / home / tmp tar -zxvf php-4.2.3.tar.gz mv php-4.2.3.tar.gz php cd php ./configure --prefix = / usr / local / php --with-apxs = / USR / local / apache / bin / apxs --with-config-file-path = / usr / local / lib --enable-track-vars --with-xml --with-mysql make make install cp php.ini- Dist /usr/local/lib/php.ini
Installing the PHP to / usr / local / php settings in DSO settings to / usr / local / lib opens mysql, XML support
4. Configuration
Vi /usr/local/apache/conf/httpd.conf Do the following configuration # 将 s s 一 一 地址 地址 地址 地址 地址
#Documentroot "/ home / httpd / html /" here is HTML file main directory
# 同 上
#Options Followsymlinks MultiViews Removes "Indexes" for security
# # Directoryindex default.php default.phtml default.php3 default.html default.htm # # Setting Apache's default file name order
#Addtype application / x-httpd-php .php .phtml .php3 .inc #addtype application / x-httpd-php-source .phps # Setup PHP file suffix
Deployment
Vi /usr/local/lib/php.ini # register-golbals = on
Deployment
5. Startup service / usr / local / apache / bin / apachectl start
6. Remarks Apache's default maximum number of processes under Linux is 256, no matter how httpd.conf cannot exceed this limit. If you want to increase this limit, edit /HOME/TMP/apache/src/include/httpd.h before compiling Apache, change the #define hard_server_limit 256 and compile Apache after compiling Apache,
MOD_SO in Apache 1.3.26 seems to be no default module. When you need to add --Nable-module = so, I first compiled did not add this parameter, and the result could not find APXS when PHP compile.
The default configuration file path in PHP 4.2.3 seems to be changed. To compile --with-config-file-path = / usr / local / lib parameters, I used to compile PHP.INI and put it N places. No. Can only add this parameter.