Install apache2.0.44+php4.3.0 as a dynamic module

Source: Internet
Author: User
Tags install php
After a day's efforts, finally loaded apache2.0.44+php4.3.0 hehe,
Could not help admiring his folly: (
Previously installed in the form of a PHP static module, it seems to be in the apache2 above version does not work (guess just:))
The installation process is summarized as follows:
MySQL was previously installed with RPM (RPM-IVH mysql-3.23.i386.rpm)
1. Acquisition of apache2.0.44 and php-4.3.0 tarball.
Put it in/down
#tar ZXVF apache2.0.44.tar.gz
Unlock directory for httpd-2.0.44
#tar ZXVF php-4.3.0.tar.gz
2 installation apache2.0.44
#cd/httpd-2.0.44
#./configure--prefix=/usr/local/apache
#make
#make Install
apache2.0.44 installation Complete, it takes about half an hour
3 Installation php4.3.0
#cd/php-4.3.1
#./configure--with-mysql--with-apxs2=/usr/local/apache/bin/apxs--enable-versioning--disable-debug-- Enable-track-vars
#make
#make Install
--with-mysql says support for MySQL
of which--WITH-APXS2=/USR/LOCAL/APACHE/BIN/APXS
Must not be less, this parameter to the dynamic module to install PHP in the way under the Apache
#cp/php-4.3.0/php.ini-dist/usr/local/lib/php.ini
#vi/usr/local/lib/php.ini Modify Register_globals=on
At this point, the PHP installation is complete, about half an hour,
4. Configure httpd.conf
#cd/usr/local/apache/conf
#vi httpd.conf
Add two lines:
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 the/usr/local/apache/htdocs
Edit index.php
<?phpinfo ();? >
Enter http://192.168.0.1/index.php in IE
You can see the familiar PHP tables and the information.
-----------------
Finish



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.