Win2000 installation Apache+php4+mysql

Source: Internet
Author: User
Tags copy file info ini mysql zip
Apache|mysql First, install APACHE1.3.9 (Configure the httpd.conf file under the Conf directory)

1.
#BindAddress * Changed to bindaddress 127.0.0.1
#Servername new.host.name changed to Servername localhost
  
2.

Let your Apache support PHP4. Add the following sentences:

scriptalias/php4/"c:/php4/"
AddType application/x-httpd-php4. php
AddType APPLICATION/X-HTTPD-PHP4. php3
AddType APPLICATION/X-HTTPD-PHP4. PhP4
Action application/x-httpd-php4 "/php4/php.exe"

3.

Set the Apache virtual directory and add the following line:

alias/test/"c:/php3/test/"
alias/jjjj/"d:/timenet/"

4.

To increase the default startup document:

DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex INDEX.PHP4

5.

Test file info.php:

? Phpinfo ();

Enter http://localhost/info.php in the browser

   Second, PHP4 installation (Php-4.0.2pl2-win32.zip)

1. Unzip the package to the C:\PHP4.

2. Then copy all the DLL files under the directory to C;\winnt\system32, and do not overwrite existing DLL files. Copy the Php.exe and php.ini-dist two files under the catalogue to C:\Winnt;

3. Renamed Winnt\php.ini-dist as PHP.ini, and found; Windows Extensions items will

Extension_dir =C:\PHP4
Extension=php_zlib.dll
Extension =php_ldap.dll
Extension =php_zlib.dll
Extension =php_calendar.dll
Extension =php_exif.dll
Extension =php_ftp.dll
Extension =php_mssql70.dll (don't add this one, no MSSQL7.0)
Extension =php_imap.dll

Have to remove the front semicolon, did not add themselves. This section is prone to errors because it is specified in the php.ini file that an invalid or non-existent Php_*.dll file is loaded, and loading these error messages may also cause the browser to not find the server.

4. Php. INI Other settings:

Asp_tags = on; Allow ASP-style markup
Upload_max_filesize = 2097152; maximum bytes of uploaded file (about MySQL settings)
Mysql.default_host = localhost;
Mysql.default_user = root;
Mysql.default_password= yourpasswd;

Above (when you use the Include function, only files in the specified directory can be included)

include_path = \path1;\path2;\path3 ....
(only php files under the C:\php4\test directory can be executed)
Doc_root=c:\php4\test

   third, MySQL installation (mysql-3.23.27-beta-win.zip)

1. Install MySQL first, the default installation path is: C:\mysql

2. Open "Run" input C:\mysql\bin\mysqld-nt.exe–install

3. Open the Administrative Tools-> Service, locate the MySQL service, and start it.

Restart Windows2000

Related Article

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.