In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to build a php website using a cloud server. The editor thinks it is very practical, so I hope you can learn something after reading this article. Let's take a look at it with the editor.
The grammar of PHP absorbs the characteristics of popular computer languages such as C language, Java and Perl, and is easy for programmers to learn. Generally, PHP websites are deployed in the Linux system environment, rarely deployed on Windows. Here we introduce how to build PHP websites on Windows.
1. Start the IIS service
First we start Windows remote Desktop locally, and then open the IIS server manager that comes with the server. Click add roles and Features, select next in the pop-up page, and then find the role-based or feature-based installation options.
Then next select the server from the server pool, and then click next. Tick the Web server (IIS) option in the server and role.
Click next, in the role Services options, find the CGI extension option, and click next. Then select the install button.
Then wait patiently for the installation. After the installation is complete, access your server's IP address. After the normal visit, we can install PHP.
2. Install PHP
Before installing PHP, we need to install Visual C++ Redistributable for Visual Studio 2015, download and select the same version of our system software, click download and install.
After clicking install, we need to download the php runtime environment, and we need to download the PHP installation package here.
Unzip this piece when the download is complete, then copy it to your C root directory and rename it php. After that, you can begin to configure the PHP environment.
3. Configure IIS and PHP environment
Locate the IIS Manager in the start menu and make the following settings. Double-click the default generated server on the left, and then double-click Handler Mapping in the panel
Click the default generated server on the left, and then double-click Handler Mapping in the panel; click add Module Mapping on the right side of the panel.
Fill in and select the appropriate information, enter * .php in the request path, enter FastCgiModule in the module, enter C:\ php\ php-cgi.exe in the executable file, enter FastCGI in the name, and confirm to add (when selecting the executable file, be careful to change the file type in the lower right corner to .exe)
Then we go back to the IIS administration page and double-click the default document in the panel. Click add on the right, and then enter index.php in it. Then click OK. Test whether PHP has been successfully deployed.
The above is how to build a php website using a CVM. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.