1.mysql
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
MySQL installation
2.Apache
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
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 to Apache as the following configuration # 将 s s q3boy@younet.com
#Documentroot "/ home / httpd / html /" here is HTML file main directory
# 同 上
#Options Followsymlinks MultiViews Remove "Indexes"
# # Directoryindex default.php default.phtml default.php3 default.html default.htm
#Addtype application / x-httpd-php .php .phtml .php3 .inc #addtype application / x-httpd-php-source .phps # Setup PHP file suffix
Vi /usr/local/lib/php.ini # register-golbals = on
5. Startup service / usr / local / apache / bin / apachectl start