1: Download php5.4.2forwindows.to download the php-5.4.2-win32-vc9-x86.zip version of threadsafethread Security Edition 2: php after decompression. ini-development is the configuration of the development version. php. ini-production is the configuration for website publishing. use php for development. ini-development to php. ini. 3: Modify p below
1: Download php5.4.2 for windows. to download the Thread Safe Thread security edition php-5.4.2-Win32-VC9-x86.zip 2: unzip php. ini-development is the configuration of the development version. php. ini-production is the configuration for website publishing. use php for development. ini-development to php. ini. 3: Modify p below
1: Download php5.4.2 for windows.
To download the Thread Safe Thread security Edition
Php-5.4.2-Win32-VC9-x86.zip
2: Decompress the package.
Php. ini-development is the configuration of the development version.
Php. ini-production is the configuration when the website is released.
Use php. ini-development for development to change to php. ini.
3: Modify the php. ini configuration below my php5.4.2 is placed in the E: \ apache2.2 \ php-5.4.2 folder, modify the following content
Xml Code
- Short_open_tag = On Enable
- Asp_tags = On <**> Enabled
- Register_globals = off super global variable. We recommend that you disable it to cause security vulnerabilities.
- Post_max_size = 8 m post maximum data submission volume
- Magic_quotes_gpc = off php built-in security verification. We recommend that you enable
- File_uploads = On php supports File Upload
- Upload_max_filesize = 2 M File Upload maximum 2 M
- Max_file_uploads = 20 maximum number of concurrently uploaded files
Find extension_dir and the following extension = *****. dll here
Add this section before extension = *****. dll to configure the dynamic link library address of php.
Xml Code
- Extension_dir = "E: \ apache2.2 \ php-5.4.2 \ ext"
Remove the semicolon before the following extension to enable it.
Php code
- Extension = php_bz2.dll
- Extension = php_curl.dll
-
- Extension = php_gd2.dll
- Extension = php_gettext.dll
-
- Extension = php_mbstring.dll
- Extension = php_mysql.dll
- Extension = php_mysqli.dll
-
- Extension = php_openssl.dll
- Extension = php_pdo_mysql.dll
-
- Extension = php_sockets.dll
-
- Extension = php_xmlrpc.dll
Locate date. timezone
Set the time zone to China
Java code
- Date. timezone = prc
4: Let Apahce support php.
Open. \ apache2.2 \ conf \ httpd. conf
Add at around 60 rows
Java code
- PHPIniDir "E:/apache2.2/php-5.4.2"
Note that you must add it before the LoadModule to load the file in advance. Otherwise, phpMyAdmin may be prone to errors later.
After LoadModule, add
Java code
- LoadModule php5_module "E:/apache2.2/php-5.4.2/php5apache2_2.dll"
Add to Addtype in approximately 380 rows
Java code
- AddType application/x-httpd-php. php. php5. php4. php3. phtml. phpt
- AddType application/x-httpd-php-source. phps
5. Restart Apache
Create a phpinfo. php test in E: \ apache2.2 \ htdocs
Php code
-
- Phpinfo ();
- ?>