For detailed configuration process of Apache2 + php4.3.6 + MySQL4.0.20 + SSL, first install and put all required files under the root directory. for details, install MySQL first. the procedure is as follows: # rpm-UvhMySQL-server Apache
Detailed configuration process of Apache2 + php4.3.6 + MySQL4.0.20 + SSL
First install and put all the required files under the root directory:
1. MySQL-client-4.0.20-0.i386.rpm 2. MySQL-server-4.0.20-0.i386.rpm
3. httpd-2.0.49.tar.gz 4. php-4.3.6.tar.gz
To install MySQL, follow these steps:
#> Rpm-Uvh MySQL-server-4.0.20-0.i386.rpm
#> Rpm-Uvh MySQL-client-4.0.20-0.i386.rpm
#> Mysql_install_db (database initialization)
#> Mysql-u root-p (to see if you can log on, enter the password)
To install Apache2, follow these steps:
#> Tar zxvf httpd-2.0.49.tar.gz
#> Cd httpd-2.0.49
#>./Configure -- prefix =/usr/local/apache2 -- enable-so -- enable-ssl
(-- Prefix =/usr/local/apache2 is the installation path, -- enable-so supports the module, and -- enable-ssl supports ssl)
#> Make
#> Make install (installation is complete)
Preliminary test:
#> Cd/usr/local/apache2/htdoc/
#> Cp index.html. zh-cn.gb2312 index.html
#> Cd ../conf (enter the configuration folder of apache, that is,/usr/local/apache2/conf)
#> Vi http. conf
Find adddefacharcharset ISO-8859-1
Replace ISO-8859-1 with GB2312 to solve Chinese garbled problem
Continue to find AddType, find AddType application/x-tar. tgz, cancel the annotation, and change it to the following
AddType application/x-tar. tgz
AddType image/x-icon. ico
AddType application/x-httpd-php. php (save disk to exit)
#>/Usr/local/apache2/bin/apachectl start
(Start the apache server. now you can use your browser to check it. close it if there is no problem)
#>/Usr/local/apache2/bin/apachectl stop
#>/Usr/local/apache2/bin/apachectl-l (you can use this command to view the loaded modules)
Finally install the PHP-4.3.6 as follows:
#> Tar zxvf php-4.3.6.tar.gz
#> Cd php-4.3.6
#>. /Configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache2/bin/apxs -- with-config-filepath =/usr/local/php -- enable- sockets -- with-mysql
(-- Prefix =/usr/local/php Installation Path)
(-- With-apxs2 =/usr/local/apache2/bin/apxs, I am not sure what it means, but be sure to check out the file on your own)
(-- With-config-filepath =/usr/local/php, the storage path of the configuration file, and copy the configuration file to it later)
(-- Enable-sockets -- with-mysql, which supports some functions)
#> Make
#> Make install
#> Cp php. ini-dist/usr/local/php. ini (this file is the PHP configuration file .)
#> Cd/usr/local/apache2/conf/
#> Vi httpd. conf
(Edit the httpd. conf file to check whether LoadModule php4_module modules/libphp4.so exists. it should be available by default)
#>/Usr/local/apache2/bin/apachectl start