This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8890|Reply: 0

Windows Server 2008 PHP environment setup

[Copy link]
Posted on 2/3/2015 9:26:47 AM | | | |

Windows Server 2008 is a new operating system based on the NT6 platform, which has made a qualitative leap in hardware performance compared with other NT platforms, and has begun to be popularized among the majority of users, and the operation is more intuitive and simple than that of 2003, and has been more and more praised. Here we will introduce the PHP environment construction in Windows Server 2008.


1. Install IIS

Windows Server 2008 is IIS version 7.0, including fastcgi, which is very easy to install.

Open the Start menu → Server Management to see the server management interface (Figure 1).

Figure 1 - Server management

Scroll down the bar or click "Roles" in the main menu, then click "Add Role", click Next when the wizard page appears, and select "Web Server (IIS)" (Figure 2)

Figure 2 - Add a character


After clicking "Next", you need to select a function, which needs to add one more "CGI" than the default option (Figure 3).

Figure 3 - Select Function

Click "Next", you will need to confirm the installation content, and click Install to install IIS in the operating system.

After installing IIS, you need to perform a test, enter "http://localhost/" in the browser address bar, if the IIS7 welcome page appears, it means that it is normal. Next, you need to configure a new website, first open IIS Manager (Start→ All Programs→ Administrative Tools→ Internet Information Services (IIS) Manager).

Then delete the default website, in the main menu, expand the website menu, and then right-click on the website name and click delete (Figure 4)

Figure 4 - Delete the default website


Create a new website, right-click on "Website", click Add Website, the form added by the information website will appear, first enter the website name, such as "dedecms", the path is selected as the path stored by the website, the server with a single IP does not need to select the IP, the host header is filled in as localhost, and then click OK.

Figure 5 - Add a website

After adding the website, open the website directory, create a new index.html, then open it with Notepad and enter "hello dede" to test.

You also need to configure permissions, go back to IIS Manager, right-click on the website "dedecms", click "Edit Permissions", click the "Security" tab after entering, and then click "Edit" (Figure 6)

Figure 6 - Edit permissions



Click the "Add" button after opening the "Edit" window. Add an IUSR to the list of permission users, and check the permissions for it except Full Control. Then click OK. (Figure 7)

Figure 7 - Add permissions


You also need to click OK again in the "Properties" window, otherwise the permission cannot be saved.

After finishing this step, you can access the local address "http://127.0.0.1" to test, and the web page displays "hello dede", indicating that the configuration is successful.

Figure 8 - Test web page


2.php installation.

As mentioned earlier, there is no need to install fastCGI separately in IIS7, so we only need to download the php installation package to install, download the address:http://windows.php.net/downloads/releases/archives/


After downloading, open the installer, guide it, configure the path, and go to the place where we select "web server setup", here we select "IIS fastcgi" (Figure 9)

Figure 9 - Selecting IIS FastCGI


Then click the "next" button, to the step of selecting the installation option, the general installation default is enough, if you want to add it you need to click on the disk icon in front of you, and then select install, the first item is to install only the selected items, and the second item is to install all the sub-projects of the project. (Figure 10) After the configuration, proceed to the next step

Figure 10 - Mounting options

After configuration, click "Next" and then click "Install" to install PHP.

After the installation is completed, we still need to test it, open the newly created website directory, create a new test.php file, open it with Notepad, and enter it


Save to exit and access the http://127.0.0.1/test.php from your browser

PHP information is displayed, indicating that the PHP environment is successfully installed.






Previous:345 game torrents to share
Next:php-cgi.exe - The FastCGI process quits unexpectedly
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com