How to install and configure the PHP environment under Vista operating system
Source: Internet
Author: User
After downloading PHP 5
Extract the files into the C:\PHP directory
Then copy the DLL files under the root directory to C:\Windows\System32
Then change the php.ini-dist to PHP.ini
Will
Extension_dir = "./"
Change
Extension_dir = "c:/php/ext/"
Note that the following must be/end
If your session build fails, you can create a session in the C:\php directory
Then modify the php.ini
Will
; Session.save_path = "/tmp"
Change
Session.save_path = "C:/php/session"
If you need a database or GD library
MySQL Open method
; Extension=php_mysql.dll
Be able to use other functions as before;
Run Internet Information Services (IIS) Manager after
Left select navigation, then select Site, double-click Default Web site
There is a function on the right to set up
Set up the ISAPI filter first, then go to the right and select "Add"
Filter Name Input PHP
Executable File Selection C:\php\php5isapi.dll
Are you sure
Back to admin then set handler mappings, select Add script map in right corner
Request Path Input *.php
Executable File Selection C:\php\php5isapi.dll
Name set to PHP
Ok back to admin home
Then set the default document
When the filename is last entered, index.php note the comma requires a space
After you set up the directory, you can use the
But this time, please enter IISRESET at the command prompt to restart the IIS service
Create a index.php file under the server directory you set up
Inside input
?
Phpinfo ();
?>
Try it, at least I did it successfully, and IIS 7 is really different from what it used to be, and it's particularly powerful.
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