The process and precautions for upgrading PHP to 533 under windows

WBOY
Release: 2016-07-29 08:43:54
Original
1022 people have browsed it

I upgraded the local development environment without involving the production environment. In fact, the process of upgrading from 5.3.0 to 5.3.3 is quite simple, but it is a bit troublesome to modify my own program. I encountered a small problem: after the upgrade, My project cannot connect to mysql. The reason is the problem of database configuration string. Just change localhost to 127.0.0.1. I will not use localhost in the future...

Text

Environment introduction: WAMP PHP version 5.3.0 vc6, upgrade to 5.3.3 vc6

Steps

0. Stop the WAMP service and copy the decompressed php5.3.3 to E:Wampbinphp

1. Replace the E:WampbinapacheApache2.2.11bin directory php5nsapi.dll and php5ts.dll to the latest version

2. Replace extension_dir = "E:/Wamp/bin/php/php5.3.3/ext/" in E:WampbinapacheApache2.2.11binphp.ini with the path

Copy memcache.dll to the ext directory of php.5.3.3 (so that memcache can be supported)

Add the loading path extension=php_memcache.dll

extension=php_exif.dll Copy it from above and the exif must be in mbstring Load it later, otherwise it will prompt that it cannot be loaded

3. Modify the LoadModule php5_module "E:/Wamp/bin/php/php5.3.3/php5apache2_2.dll" in E:WampbinapacheApache2.2.11confhttpd.conf

4. View PHP info See if it is successful

After the upgrade is completed, see if your program can run

Picture 0

 windows下升级PHP到533的过程及注意事项

Picture 1

 windows下升级PHP到533的过程及注意事项

Picture 2

 windows下升级PHP到533的过程及注意事项

Picture 3 There is no problem with the connection

 windows下升级PHP到533的过程及注意事项

Figure 4 Found the problem of being unable to connect to the database

 windows下升级PHP到533的过程及注意事项

Figure 5 PHP has added a new parameter max_file_uploads, which is the maximum number of files that can be uploaded per request

 windows下升级PHP到533的过程及注意事项

The above introduces the process and precautions for upgrading PHP to 533 under Windows, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!