Classic PHP for Win32 installation (RPM)

Source: Internet
Author: User
Tags copy file system iis ini key php file win32 root directory
1. Download the latest PHP for Win32 to Www.php.net.
2. Extract all the files to the directory you need, recommend your choice: c:\php3\;
3. Copy the file Php3-dist.ini to your Windows directory and rename it to Php3.ini;
C:\WINDOWS 95 or 98 is the name
C:\Winnt or C:\WINNT40 This is the NT directory
4. Edit your Php3.ini file: Set the Extension_dir option to the directory where you unzipped the file, where I
They're c:\php3.
5. Set the Doc_root to your Web site's root directory, such as C:\apache\htdocs or C:\webroot

6. Starting from here we have to set up separately:

*windows 95/98/nt and Pws/iis 3 go this way:
Run regedit program;
@ Find this registry key: Hkey_local_machine/system/currentcontrolset/servic
Es/w3svc/parameters/scriptmap.
@ In the Edit menu select: New->string Value.
@ at the key name, type the file name extension you want the PHP3 interpreter to resolve: for example. PHP3 has a point in front,
Don't ignore it!
@ Double-click the registry key you just built, and enter the path and filename of the PHP.EXE file at the key value, such as C:\php3
\php.exe%s%s These two s% can not be less yo, otherwise ...
@ You can repeat the two steps above to add a lot of file names to PHP3 resolution, and I'm going to add a AAA to
It explains ...:)))))
@ Find this registry key: HKEY_CLASSES_ROOT
@ Select New-> primary key in Edit menu
@ Name the primary key as. PhP3 the same as above, then double-click its default value and enter Phpfile
@ Now build a primary key named Phpfile in HKEY_CLASSES_ROOT and set its default value to PHP
Script, however
Right-click on the Phpfile to select the new-> string value, named Shell,
Right-click on the shell, create a new open key,
Right-click on open to create a new command key
Sets the key value of the command key to the path and file name of the Php.exe, such as C:\php3\php.exe,
It's OK!

Comrade *apache here to see:
• Extract all PHP files to c:\php3g;
• Rename Php3-dist.ini to Php3.ini, then copy to Windows directory;
• Edit httpd.conf files in Apache's conf directory
• Set the following lines in the actual place:
scriptalias/php3/"c:/path-to-php-dir/"

AddType application/x-httpd-php3. php3

AddType application/x-httpd-php3. phtml

Action application/x-httpd-php3 "/php3/php.exe"


· Windows NT and IIS 4
In Internet SERVICE MANAGER (MMC),
Select site
Right-click, pull up attribute, select home Directory tab
Click the Configure button to select the Application tab
Click Add, enter C:\php3\php.exe in the executable box s% s% be careful not to lose s%
Enter in the Extension box. php3
Set the security level, if you use the NTFS file system, let the php file directory have the client's execution rights



----------------------------------------------------------------------
---
Reprinted from "Cottage Forum"
The original text is published by "figurines"


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.