Php5.3.8

Source: Internet
Author: User
Tags php website
Php5.3.8 is configured first from the official php website www. php. netdownloads. php downloads the PHP5.3.87zippackage package for windows. 1) decompress the PHP zip package to a directory, such as "E: PHP"; 2) decompress the PHP Directory (E: PHP) php. rename the ini-production file to php. I php5.3.8 configuration

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

1) decompress the PHP zip package to a directory, for example, "E: \ PHP ";
2) convert PHP under the PHP Directory (E: \ php. rename the ini-production file to php. ini, PHP configuration file is it, modify the following places, after modifying the php. copy the ini file to the C: \ WINDOWS \ directory:
Extension_dir = "E: \ PHP \ ext", pointing to the path where the "php _ *. dll" file is placed in the php folder.
Doc_root = "E: \ appach2.2 \ php", home page location set by apache;
Default_charset = "gb2312", modify the default character set. here, if there is a semicolon ";" in front, remove this semicolon;
Change register_globals = Off to register_globals = On to make the passed global variable valid;
Extension = php_gd2.dll if there is a semicolon in front, cancel the semicolon, the same as below;
Extension = php_mbstring.dll
Extension = php_myslqi.dll
Extension = php_mysql.dll is used to connect to the MYSQL database;
3) copy the php5ts. dll file under the PHP directory to the C: \ WINDOWS \ system32 directory.
4) modify the httpd. conf file of Apache. Add the following two lines at the end of the file to install PHP in the module mode to enter Apache:
LoadModule php5_module E:/PHP/php5apache2_2.dll
AddType application/x-httpd-php. php

Finally, edit the Path in the environment variable and add "; E: \ PHP \ ext"

Add the system environment variable PHPRC and the variable is "E: \ PHP"

Create the index. php file and write the following code:

Phpinfo ();
?>
Enter http: // 127.0.0.1/or http: // localhost/in the address bar of your browser, and you will see the php version information.

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.