This article describes how to configure the php server and how to build the php environment. For more information, see. This section describes how to configure the php server and how to set up the php environment. The specific steps are as follows: 1. decompress the installation package to C:/PHP (you can decompress the package here, and remember the path) 2. copy all files in the sapi and DLLS directories to the PHP/directory 3. ini-dist copy to C: change to php in the WINDOWS directory. ini, environment changes can be found in "My computer-flexibility-high concurrency-system changes (path or self-built phprc content is (php. ini path) 4. copy php4ts. dll to the WINDOWS directory 5. modify upload_tmp_dir = "c:/tmp/" and grant the TMP folder permission. 6. modify extension_dir = "C:/PHP/extension/" 7. remove the following; Extension = php_curl.dllextension = php_dbase.dllextension = php_gd2.dllextension = php_iconv.dllextension = php_ldap.dllextension = php_msql.dllextension = php_zip.dll8. session. save_path = "C:/tmp/" 9. next configure IIS: open "control panel" --> "administrative tools" --> "Internet Information Service (IIS) Manager ", select "website", open its "properties" window, select the "main directory" page, and click "configure" under "application settings, in the new window, click the Add button. in the executable file, enter "C: \ php \ sapi \ php4isapi.dll(if the initial attempt is successful, you can upload the php-cgi.exe file)" and enter ". in php and action, select "limit to (L)", enter "GET, HEAD, POST, TRACE" in the input box, and click "OK ". Next, select the "document" page, click the "add" button, enter "index. php" in "default document name", click "OK", and raise it to the highest level. You can also add common php file names, such as "default. phtml" and "index. php3. 10. Next, select "web service extension" in "Internet Information Service (IIS) Manager", right-click and choose "add a new web service extension ", in the displayed dialog box, enter "php" in "extension (x)", and add "C: \ php \ sapi \ php4isapi.dll(if the php-cgi.exe file is downloaded for the first time) to" required File (E) ", select" set extension status to allow ", and click" OK ". 11. switch to the dos window, enter the net stop iisadmin command, press enter, answer yes, press enter, enter net start w3svc, and press enter to close the dos window. Php configuration is complete. 12. compile a phpinfo ();?> Save to default site: index. php 13. browsing successful! PHP configuration successful. After completing the above steps, you can see the basic information of PHP through phpinfo (); and pay attention to the content (Configuration File (php. ini) Path and extension_dir (Path encoding format: c: \ php) whether you want to modify PHP. view phpinfo () after you run the INI command. if no change is found, you need to upload the net stop iisadmin command in CMD, then upload the net start w3svc command, and finally view the changes. Php Server environment setup and configuration (apache and iis) php Server environment construction method: Configure php Server environment in ubuntu php and mysql server configuration description php obtains server information Class php obtains server information alternative method php obtains server information a piece of code |