php5.3.8 equipped

Source: Internet
Author: User
Tags php website
php5.3.8 Configuration

First download the PHP 5.3.87zip package for Windows version from the official PHP website http://www.php.net/downloads.php

1), unzip the PHP compressed package zip into a directory, such as "E:\PHP";
2), the Php.ini-production file under the PHP directory (E:\PHP) renamed to php.ini,php configuration file is it, modify the following several places, modify the php.ini file to copy to the C:\WINDOWS\ directory:
Extension_dir= "E:\PHP\ext", pointing to the path of the "Php_*.dll" file placed under the PHP folder.
Doc_root= "E:\appach2.2\php", Apache set the home position;
Default_charset= "gb2312", modify the default character set, here, if preceded by a semicolon ";", remove the semicolon;
The Register_globals=off is changed to Register_globals=on, making the transitive global variable valid;
Extension=php_gd2.dll If there is a semicolon in front, remove the semicolon to the same;
Extension=php_mbstring.dll
Extension=php_myslqi.dll
Extension=php_mysql.dll is used to connect MySQL database;
3) Copy the Php5ts.dll file from the PHP directory to the C:\WINDOWS\system32 directory.
4), and finally modify the Apache httpd.conf file. Add the following 2 lines at the end of the file to indicate that PHP is installed as a module into Apache:
LoadModule Php5_module E:/php/php5apache2_2.dll
AddType application/x-httpd-php. php

Finally, edit the path in the environment variable, plus "; E:\PHP; E:\PHP\ext "

Add system environment variable PHPRC, variable = "E:\PHP"

New file index.php, write the following code:

Phpinfo ();
?>
Enter HTTP://127.0.0.1/or http://localhost/in the browser's address bar and you will see the PHP version information.

  • Related Article

    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.