Home> Topics> IIS> body text

Take a look at how to deploy a PHP website on IIS

coldplay.xixi
Release: 2021-02-20 17:54:54
forward
3099 people have browsed it

Take a look at how to deploy a PHP website on IIS

Recommended (free):IIS

1. Start the iis server and open the IIS server

Open the IIS server, click on the website, right-click "Add Website"

2. Create a website

After clicking "Add Website", enter the page to fill in the website Related content, such as: website name, physical path (the folder where the website is located), click "OK" to create successfully

3, PHP settings

Click to create For a good website, click "Handler Mapping", click "Add Mapping Module" on the right, enter the corresponding parameters in the pop-up layer, and click Confirm

Set the default document

Click "Default Document", right-click the "Add" button, add a default document, enter index.php, click "OK" to add

4. Install urlrewrite

5. Use URL rewrite

Click " URL Rewrite", click "Import Rules" on the right, select the rule file to be imported, and click Apply

After applying the rule, the root of the website The directory will generate a web.config file. I use thinkphp's .htaccess file import rules

File content:

                        
Copy after login

The above is the detailed content of Take a look at how to deploy a PHP website on IIS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!