Apache2+php4.3.6+mysql4.0.20+ssl Detailed configuration process:
First install the required files into 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
Let's install MySQL first, as follows:
# >RPM–UVH mysql-server-4.0.20-0.i386.rpm
# >RPM-UVH mysql-client-4.0.20-0.i386.rpm
# >mysql_install_db (Initialization of the database)
# >mysql–u Root–p (see if you can log in, ask for a password)
The next step is to install Apache2, as follows:
# >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 for installation path,--ENABLE-SO support module,--ENABLE-SSL support SSL)
# >make
# >make Install (end of installation)
Initial test:
# >cd/usr/local/apache2/htdoc/
# >CP index.html.zh-cn.gb2312 index.html
# >CD. /CONF (into Apache configuration folder, i.e./usr/local/apache2/conf)
# >vi Http.conf
Find Adddefaultcharset iso-8859-1 and replace iso-8859-1 with GB2312 to solve the Chinese garbled problem. Continue to find AddType, find AddType application/x-tar. tgz, cancel the annotation and change it to read as follows:
AddType Application/x-tar. tgz
AddType image/x-icon. ico
AddType application/x-httpd-php. PHP (Disk exit)
# >/usr/local/apache2/bin/apachectl Start (Launch Apache server, now take a look at it with your browser, close it without any problems)
# >/usr/local/apache2/bin/apachectl Stop
# >/usr/local/apache2/bin/apachectl–l (You can view the modules already loaded with this command)
Finally, install 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'm not quite sure what that means, but I have to look at this file for myself.)
(--with-config-filepath=/usr/local/php, the location of the configuration file, a moment to copy the configuration file here)
(--enable-sockets--with-mysql, support for some features)
# >make
# >make Install
# >CP Php.ini-dist/usr/local/php/php.ini (this file is a PHP configuration file.) )
# >cd/usr/local/apache2/conf/
# >vi Httpd.conf
(Edit httpd.conf file, see if there are LoadModule php4_module modules/libphp4.so, the default should be)
# >/usr/local/apache2/bin/apachectl Start