In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to build php operating environment under windows server 2008". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to build a php operating environment under windows server 2008"!
Today, let's take a look at how to easily and quickly build a php environment under windows2008. We chose 7.2 for the php version.
Install the IIS WEB server
The windows2008 startup just installed will pop up this initial task window. Click add role to install IIS.
After clicking, the add role wizard window pops up. Click the server role on the left, and check the Web server (IIS) on the right. Click next.
Check the application development box and default the rest.
Click next, and then click install
Click the close button to complete the IIS installation
Open the browser and type http://localhost or http://127.0.0.1 in the address bar to test the IIS status. If the following welcome page is displayed, the installation is successful and has been started.
Test asp: start IIS, right-click on the default site and browse to open the default site root directory in the pop-up menu
Create a new test.asp file under the root of the site
Type the following code: (response.write "Hello World!" in the screenshot The following semicolon is wrong)
Then enter in the browse: http://localhost/test.asp sees the following to indicate that the asp script is already supported
Install PHP
Download the php7.2 version from php's official website.
Https://www.php.net/
Click 7.2.33 on the right side of download to enter the download page
Click windows downloads, jump to the download page of the Windows version, and click zip in VC15 x64 Non Thread Safe to complete the download
Unpack the downloaded installation package and copy it to the C:\ root directory and rename it to: C:\ php-7.2
Go to the php-7.2 directory and change php.ini.development to php.ini
Open php.ini with an editor
Ctrl+f search extension_dir
Remove the previous semicolon and change the path to c:\ php-7.2
Open some commonly used extensions
Extension=bz2extension=curlextension=gd2extension=mbstringextension=mysqliextension=opensslextension=pdo_mysql
Set time zone: ctrl + f search date.timezone remove the previous semicolon and change it to: date.timezone = Asia/Shanghai
Add IIS program mapping
Click on the right to add module mapping
Fill in below and click OK to complete the mapping.
Restart IIS
The new test.php content in the root directory of the website is as follows:
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.