Apache2 + php4.3.6 + mysql4.0.20 detailed configuration process

zhaozj2021-02-16  53

Apache2 php4.3.6 mysql4.0.20 detailed configuration process

Http://www.chinaunix.net

Apache2 php4.3.6 mysql4.0.20 SSL detailed configuration procedure First installation will put the required files in 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, steps are 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 ( Database initialization) #> mysql -u root -p (see if you can log in, ask your password)

Next, the Apache2 is installed, the steps are as follows: #> tar zxvf httpd-2.0.49.tar.gz #> cd httpd-2.0.49 #> ./ Configure --prefix = / usr / local / apache2 --enable-so

(--prefix = / usr / local / apache2 is the installation path, - enable-so support module) #> make #> make install preliminary test: #> cd / usr / local / apache2 / htdoc / # > cp index.html.zh-cn.gb2312 index.html #> cd ../conf (Enter Apache configuration folder, that is, / usr / local / apache2 / conf) #> vi http.conf look up AddDefaultcharset ISO- 8859-1 Replace ISO-8859-1 into GB2312 to solve the Chinese garbled problem to continue to find AddType, find AddType Application / X-tar .tgz, cancelly, change it to AddType Application / X-tar .tgz addtype image / x - icon .ico addtype application / x-httpd-php .php (store exit) #> / usr / local / apache2 / bin / apachectl start (Start Apache Server, now use your browser to see, there is no problem Close it) #> / usr / local / apache2 / bin / apachectl stop #> / usr / local / apache2 / bin / apachectl -l (can watch the loaded module via this command)

转载请注明原文地址:https://www.9cbs.com/read-18853.html

New Post(0)