Home > Article > Backend Development > php server build windows
In the process of building a website, the website server is an essential part, which allows the website to run normally and provides visitors with the required website content and services. In Windows systems, you can easily build a website using the PHP language and its corresponding server. In this article, we will discuss how to set up a PHP server in Windows operating system.
Before you start the installation, you need to make sure you have the following programs installed on your system:
In this article, we are going to use PHP version 7.3.5. You can download the corresponding version from the PHP official website. After installing PHP, unzip and find the PHP installation directory, for example: "C:\php".
Next, we start configuring PHP’s environment variables.
At this point, the system environment variables have been successfully configured.
Next, how to add support for PHP in IIS.
Now, if you try to open the website in your browser, you will find that the website does not work properly because we still need to do some PHP configuration.
Now you can place a PHP file in the root directory of the website (e.g. "C:\inetpub\wwwroot"), such as a simple "hello world" program:
<?php echo "hello world"; ?>
Now, you can visit this website in your browser, and you will see the string "hello world".
Summary: It is not difficult to build a PHP server in Windows system. You only need to follow the above steps one by one. If you encounter any problems, you can refer to the PHP documentation or official community, or on the Internet Get help.
The above is the detailed content of php server build windows. For more information, please follow other related articles on the PHP Chinese website!