Crazy Install PHP4 (3 platforms) _php Tutorial

Source: Internet
Author: User
##########unix
This is the simplest and most efficient, get the source code of PHP4 and apache1.3.12. In the form of tar.gz.
Complete as root:
#tar-ZXVF apache_1.3.12.tar.gz
#cd apache_1.3.12
#./configure--prefix=/apache
#mkdir/apache
#cd:
#tar-ZXVF php-4.0.0.tar.gz
#cd php-4.0.0
#./configure--with-apache=. /apache_1.3.12--enable-track-vars--with-mysql--disable-debug
#make
#make Install
#cd: /apache_1.3.12
#./configure--prefix=/apache--activate-module=src/modules/php4/libphp4.a
#make
#make Install
#mv/usr/bin/httpd/usr/bin/httpd.old
#ln-S/APACHE/BIN/HTTPD/USR/BIN/HTTPD
#vi/apache/conf/httpd.conf
Remove AddType application/x-httpd-php. PHP in front of #
#/apache/bin/apachestl restart
#####windows nt/2000
Using the IIS4/5 ISAPI interface is highly efficient
Nt4.0server need to install Option Pack 1
Download PHP4 binary WinZip version, unpack to a directory,
such as c:php
The following assumptions nt/2000 installed in the C:WINNT
C:>copy c:phpphp.ini-dist C:winntphp.ini
C:>copy C:phpphp4ts.dll CLwinntsystem32
Back to the graphical environment to start IIS Manager
Right-click on the Web site icon and select "Properties" "ISAPI filter"
Add a new filter with the name PHP
The path is: C:phpphp4isapi.dll
Then open the home directory properties for the appropriate Web site
Press the "Configure" button and select "Application Mapping"
Add. php extension, executable file use
C:phpphp4isapi.dll
Restart IIS.
#####windows 98
It is not recommended to use PWS because it modifies the registry.
You can use Apache 1.3.12 for Win32
Download Install apache1.3.12 W32 version
The default installation directory is
C:Program Filesapache Groupapache
Download the Win32 version of the installation php4.0.0
Unzip to c:php
Suppose the Windows installation directory is c:windows
Copy c:phpphp.ini-dist c:windows
Copy C:phpphp4ts.dll C:windowssystem
Edit
C:Program Filesapache groupapacheconfhttpd.conf
Add the following three lines
scriptalias/php/"c:/php/"
AddType application/x-httpd-php. php
Action application/x-httpd-php "/php/php.exe"
It's better to add a lot of addtype to the place.
Start Apache from the Start menu

http://www.bkjia.com/PHPjc/629857.html www.bkjia.com true http://www.bkjia.com/PHPjc/629857.html techarticle ##########unix This is the simplest and most efficient, get the source code for PHP4 and apache1.3.12. In the form of tar.gz. Complete as root: #tar-zxvf apache_1.3.12 ....

  • 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.