In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the Win2008 system how to install the php environment, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Win2008 system installation php environment method: 1, configure IIS;2, create a website; 3, download php environment installation package, configure PHP environment; 4, modify php.ini;5, configure iis "deal with application mapping".
This article operating environment: Windows2008 system, PHP5.6.9 version, Dell G3 computer.
Win2008 Server configure the PHP environment:
Read the catalogue
Create a website
Configure the PHP environment
Configure iis to handle Application Mapping
Configure IIS before configuring the PHP environment.
Configure and install IIS under Portal-> Win2008 Server
If IIS is installed in the default configuration, you also need to install CGI.
Check CGI here and install it.
Create a website
Find the manager
Delete the default site.
Create a new website. Right-click the site and select add site
The name of the website is arbitrarily configured, and the physical path is the path where the website is stored.
If the server has a bound domain name, configure it at the hostname.
If not, it will be empty by default.
Go to the root of the website and add a random html document, and then test it
Configure the PHP environment
Download the php environment installation package and choose the version you need
Http://windows.php.net/downloads/releases/archives/
What I downloaded here is php-5.6.9-nts-Win32-VC11-x86.zip
There are two ways to execute PHP: ISAPI and FastCGI.
Nts is Non Thread Safe is non-thread safe, which is executed by FastCGI. It performs the operation as a single thread, so there is no need for thread safety check.
Removing the protection of thread safety checks can improve execution efficiency, so if you are using FastCGI to execute PHP, it is recommended that you choose the NonThread Safe version.
Conversely, if it is executed in ISAPI mode, it is recommended that you choose the Thread Safe version.
Download it and extract it to a custom directory.
Creating a php.ini,php.ini is obtained by renaming php.ini-production
Modify php.ini
Search for extension_dir and set the path
Add ext to the storage path where you just extracted the php. Remember that it is a backslash and remove the semicolon in front of it.
Open the components as needed, here are some commonly used ones. To remove the semicolon is to open it.
In the future, if you need anything, open it. Of course, if you find it troublesome, open it all now.
; extension=php_gd2.dll
; extension=php_curl.dll
; extension=php_mbstring.dll
; extension=php_exif.dll
; extension=php_mysql.dll
; extension=php_mysqli.dll
; extension=php_scokets.dll
; extension=php_pdo_mysql.dll
Search date.timezone to set the time zone to avoid time confusion. Remember to remove the semicolon
For example: Asia/Chongqing (Chongqing), Asia/Shanghai (Shanghai), Asia/Urumqi (Urumqi), Asia/Macao (Macao), Asia/Hong_Kong (Hong Kong), Asia/Taipei (Taipei), PRC
Set up fastcgi.impersonate and cgi.rfc2616_headers
Set cgi.force_redirect = 0 to enable PHP execution in CGI mode
Enable short label support
Configure iis to handle Application Mapping
Add module mapping
Click "add module mapping" on the right, pop-up module mapping settings window, and enter "* .php" as the name.
Select "FastCgiModule" for the module, and the executor selects "php-cgi.exe" in the PHP directory you just downloaded.
Configure the default document
Click add on the right.
Restart IIS.
Add a test document to the root of the site, create a new "index.php", and the content can be set to
Then test it locally.
Thank you for reading this article carefully. I hope the article "how to install the php environment for Win2008 system" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.