Php installation Configuration

Source: Internet
Author: User
IIS Environment
  1. Take the php installation directory c: \ php as an example. First, find c: \ php \ sapi \ php4ts. dll file, copy it to the windows System directory (% windows %/system32 directory in windows XP ).
  2. Add a file association in IIS to map the. php file to c: \ php \ sapi \ php4isapi. dll.
  3. Edit the c: \ php. ini file, find the register_globals string through the search function, and change the Off value after the equals sign to On. This setting will enable the session function. Similarly, find the extension_dir option, set it to c: \ php \ extensions, and then find the session. set the save_path option to c: \ tmp. Make sure the folder exists. If it does not exist, create a new one. Copy the php. ini file to the windows Installation Directory (% windows %,
  4. Restart the system and the php website will work.

Apache Environment

  1. Open httpd. conf
  2. Add the php type: AddType application/x-httpd-php. php
  3. Set the php Directory: ScriptAlias/php/"D:/Apache Group/php-4.4.0-Win32 /"
  4. Set default document: DirectoryIndex index.html. var index. php default. php

Install the gd graphics library

  1. Copy php_gd2.dll under the % php %/extension directory to % windir %/system32/
  2. Set in php. ini; extension = php_gd2.dll
    Remove the semicolon and save php. ini.
  3. Restart the web Server
  4. Call the phpinfo () function. If the gd segment settings appear, the installation is successful.

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.