In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how windows server 2019 opens the iis server and the configuration and operation of tp5.1. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
First, create a new IIS server
Then click next until it is shown in the following figure:
Select as selected in the following figure:
Then install it in the next step.
II. IIS server configuration
The new website is shown in the following figure:
Click the basic settings and fill in as required:
Double-click the handler mapper
Pop up as shown in the following figure:
Click add Module Mapping and fill in the figure below:
Next:
Double-click the default document to add index.php:
Download php and configure
Link: https://windows.php.net/downloads/releases/php-7.3.17-nts-Win32-VC15-x64.zip, note that php-7.4 has a problem with tp5.1 support, so it's best to use php7.3
Make a copy of the above and change it to php.ini
Modify the php.ini as follows:
Zlib.output_compression = On / / enable Gzip compression max_execution_time = 30 / / maximum execution time, change memory_limit = 128m / / memory size limit display_errors = Off / / turn off error reporting error_log = e:\ temp\ php_errors.logpost_max_size = 100m / / maximum POST size Change extension_dir = "e:\ PHP\ ext" / / ext folder location cgi.force_redirect = 0cgi.fix_pathinfo=1fastcgi.impersonate = 1fastcgi.logging = 0upload_tmp_dir = e:\ tempupload_max_filesize = 100m / / maximum upload size as needed, and date.timezone = Asia/shanghai / / time zone session.save_path = "e:\ temp" session.auto_start = 0sys_temp_dir = "e:\ web\ temp\ tmp"
Enable extension:
Extension=xxxxx / / remove the previous semicolon to enable the corresponding extension
I opened these: curl, fileinfo, gd2, gettext, mbstring, exif, mysqli, openssl, pdo_mysql, xmlrpc
4. IIS url rewrite error
Win+R input regedit
At the HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ InetStp location
Modify the registry
Change the MajorVersion value to 9
Download: https://www.iis.net/downloads/microsoft/url-rewrite
And install it.
V. configuration of tp5
Add web.config under the public folder and fill in the following.
If: tp5 reports an error: Non-string needles will be interpreted as strings in the future
Modification error:.\ extend\ XBase\ Column.php
This- > name = (strpos ($name, 0x00)! = = false)? Substr ($name, 0, strpos ($name, 0x00)): $name; is changed to:
$this- > name = (strpos ($name, chr (0x00))! = false)? Substr ($name, 0, strpos ($name, chr (0x00)): $name
With the whole process coming down, tp5 can run perfectly on the server.
This is the end of the article on "how to start the iis server and the configuration and operation of tp5.1 in windows server 2019". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.