Php4.04 simple installation

Source: Internet
Author: User

PHP 4.04 has been in use for a while, and it feels good, especially the complete 3 M version comes with a lot of good stuff. However, we recommend that you have many friends who are still using the old version.

Address: http://www.php.net/downloads.php
PHP 4.0.4-19 December 2000
(3.79 mb cgi binary and ISAPI module encoded ded, MySQL support built-in, embedded
Extensions encoded ded, packaged as zip)
(3.79 MB already contains CGI and ISAPI modules, built-in support for MySQL, including many extension models
Block, zip format)

The accompanying description e is too long. Now I only want to talk about the installation under Apache (most people use Apache
Right ?) :
Assume that Apache is installed in c: \ apache and PHP is decompressed to c: \ PHP. the Windows directory is
C: \ WINDOWS (Win98) or C: \ WINNT (Win2000 ).
1. Disable Apache.
Edit c: \ apache \ conf \ httpd. conf and add the following lines as needed:
2. Copy c: \ PHP \ php4ts. DLL to C: \ WINDOWS \ SYSTEM \ (Win98) or
C: \ winnt \ SYSTEM32 (Win2000), overwrite any original file.

# Install the SDK using the Apache module and add the following lines to httpd. conf:
Loadmodule php4_module C:/PHP/SAPI/php4apache. dll
Addtype application/X-httpd-PHP. php
(Is it more convenient than using that mod_php4-4.x.zip)

# Install it in CGI Mode and add the following lines to httpd. conf:
ScriptAlias/PHP/"C:/PHP /"
Action application/x-httpd-php4 "/PHP/php.exe"
Addtype application/x-httpd-php4. php

3. Copy c: \ PHP. ini-Dist to c: \ windows \ (Win98) or C: \ winnt \ (Win2000). Modify
Name PHP. ini and edit it as needed.
Must be changed to extension_dir = C:/PHP

4. Restart Apache.

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.