After a day of hard work, I finally installed apache2.0.44 + PHP4.3.0. I can't help but admire my stupidity: (I used to install php static modules in the past, it seems that the installation process in apache2 or later versions does not work (I guess it's all about :): mysql has been installed with rpm before (rpm-ivhmysql-3.23.i386.rpm) 1. obtain Apache
After a day of hard work, we finally installed apache2.0.44 + PHP4.3.0,
I can't help but admire my stupidity :(
I used to install php static modules in the past. it seems that the php static module does not work in apache2 or a later version (I guess it is only :))
The installation process is described as follows:
Mysql has been installed with rpm (rpm-ivh mysql-3.23.i386.rpm) before)
1. get the tarball of apache2.0.44 and php-4.3.0.
Put under/
# Tar zxvf apache2.0.44.tar.gz
Undo directory for httpd-2.0.44
# Tar zxvf php-4.3.0.tar.gz
2 install apache2.0.44
# Httpd-2.0.44/cd
#./Configure -- prefix =/usr/local/apache
# Make
# Make install
Apache2.0.44 installation is complete, which takes about half an hour
3. install php4.3.0
# Php-4.3.1/cd
#./Configure -- with-mysql -- with-apxs2 =/usr/local/apache/bin/apxs -- enable-versioning -- disable-debug -- enable-track-vars
# Make
# Make install
-- With-mysql indicates that mysql is supported.
-- With-apxs2 =/usr/local/apache/bin/apxs
It must not be less. this parameter installs php under apache as a dynamic module.
# Php-4.3.0/php. ini-dist/usr/local/lib/php. ini
# Vi/usr/local/lib/php. ini modify register_globals = On
So far, php installation is complete, about half an hour,
4. configure httpd. conf
# Cd/usr/local/apache/conf
# Vi httpd. conf
Add two rows:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php. php
Modify Listen 192.168.0.1: 80
5. start:
/Usr/local/apache/bin/apachectl start
5. Test:
Under/usr/local/apache/htdocs
Edit index. php
Enter http: // 192.168.0.1/index. php in ie
You can see familiar php tables and information.
-----------------
<End> 〉