PHP Server configuration Process Resolution

Source: Internet
Author: User
Tags configuration php php server php and mysql phpinfo sapi tmp folder
This article describes the next PHP server configuration method, PHP environment to build the specific steps, with the need for a friend reference.

This section: PHP server Configuration method, PHP environment setup steps.

The steps are as follows: 1, unzip the installation package for c:/php (decompression to that can be, the most important to remember the path) 2, the SAPI and DLLs directory of all files copied to the php/directory 3, Copy the php.ini-dist to the C:windows directory and modify it to php.ini (this is not the case, but he can change the volume of the system, and the environmental change is " My Computer-high-level-system change (path or create a PHPRC (php.ini path)) 4, copy Php4ts.dll to Windows directory 5, modify Upload_tmp_dir = "c:/tmp/" and give the TMP folder permission. 6, modify Extension_dir = "c:/php/extension/" 7, remove the following before;

Extension=php_mbstring.dllextension=php_curl.dllextension=php_dbase.dllextension=php_gd2.dllextension=php_ Iconv.dllextension=php_ldap.dllextension=php_msql.dllextension=php_zip.dll

8, Session.save_path = "c:/tmp/" 9, Next Configure IIS: Open Control Panel--Administrative Tools--Internet Information Services (IIS) Manager, select Web site, open its Properties window, select the Home Directory page, click the Configure button under Application settings, click the Add button under the new window, and in the executable file, enter C:\php\sapi\php4isapi.dll (for the first time if this is not possible, try the Php-cgi.exe file), in the In the extension ". php", "Action" select "Limit to (L)" and enter "Get,head,post,trace" in the input box, click "OK". Next, select the Documents page, click the Add button, enter index.php in the default document name, click OK, and raise it to the highest level. You can also add commonly used PHP filenames, such as "default.phtml", "index.php3" and so on. 10. Next Select "Web Service Extensions" in "Internet Information Services (IIS) Manager", right-click "Add a new Web service extension", enter "PHP" in "Extension (x)" In the popup dialog, "C \" in "Required file (E)"). Php\sapi\php4isapi.dll (for the first time if this doesn't work, you can try the Php-cgi.exe file) ", check" set extension status to allow "and click" OK ". 11, switch to the DOS window, enter the net stop iisadmin command, return, answer yes, enter the net start w3svc, return, close the DOS window. The PHP configuration is complete.

12, write a phpinfo ();? > Save to default site for index.php

13, browsing success! The PHP configuration was successful. After the above, through the phpinfo (), must be able to see the basic information of PHP, note the content (Configuration File (php.ini) Path and Extension_dir (path format c: \ PHP) If the path is not what you want) after modifying the php.ini, view phpinfo (); If you do not change, you will need to enter the net stop iisadmin in cmd, and then enter the net start w3svc and finally view. PHP Server Environment configuration (Apache and IIS two methods) PHP Server Environment Construction method under Ubuntu configuration PHP Server environment PHP and MySQL server configuration instructions PHP get server information class PHP get server-side information alternative method PHP get server information for a piece of code

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.