Install apache2.0.44 + PHP4.3.0 using Dynamic Modules

Source: Internet
Author: User
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> 〉

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.