Crazy installation of php4 (3 platforms)

Source: Internet
Author: User
######### Unix is the simplest and most efficient. obtain the source code of php4 and apache1.3.12. Tar.gz format. Complete as root: Prepare # cd ########## Unix
This is the simplest and most efficient method. get the source code of php4 and apache1.3.12. Tar.gz format.
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. old
# Ln-s/apache/bin/httpd/usr/bin/httpd
# Vi/apache/conf/httpd. conf
Remove AddType application/x-httpd-php. php #
#/Apache/bin/apachestl restart

##### WindowsNT/2000
IIS4/5 ISAPI is highly efficient.
Option pack 1 needs to be installed on NT4.0Server
Download the binary winzip version of PHP4 and unpack it to a directory,
For example, c: \ php
Assume that NT/2000 is installed in c: \ winnt
C: \> copy c: \ php. ini-dist c: \ winnt \ php. ini
C: \> copy c: \ php \ PHP4TS. DLL cL \ winnt \ system32
Go back to the graphical environment and start iis Manager
Right-click the web site icon and select "attribute" and "ISAPI filter"
Add a new filter named php
Path: c: \ php \ php4isapi. dll
Then open the "home directory properties" of the corresponding web site"
Click "configure" and select "application ing"
Add the. php extension and use executable files.
C: \ php \ php4isapi. dll
Restart IIS.

##### Windows 98
PWS is not recommended because you need to modify the registry.
You can use Apache 1.3.12 for Win32
Download and install apache1.3.12 W32
The default installation directory is
C: \ Program Files \ Apache Group \ Apache
Download and install the win32 version of php4.0.0
Decompress the package to c: \ php.
Assume that the windows installation directory is c: \ windows
Copy c: \ php. ini-dist c: \ windows
Copy c: \ php \ PHP4TS. DLL c: \ windows \ system
C: \ Program Files \ Apache Group \ Apache \ conf \ httpd. 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 is better to add a lot of addtype

Start apache from the Start menu

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