Home > Article > Backend Development > The process and precautions for upgrading PHP to 5.3.3 under windows_PHP tutorial
I upgraded the local development environment without touching 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 problemAfter the upgrade, my project can no longer connect to mysql. The reason is the problem of the 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, upgraded to 5.3.3 vc6
Steps
0. Stop the WAMP service and copy the decompressed php5.3.3 to E:Wampbinphp
1. Replace php5nsapi.dll and php5ts.dll in the E:WampbinapacheApache2.2.11bin directory to the latest version
2. Replace the path of extension_dir = "E:/Wamp/bin/php/php5.3.3/ext/" in E:WampbinapacheApache2.2.11binphp.ini
Copy memcache.dll to the ext directory of php.5.3.3 (so that memcache can be supported)
Add loading path extension=php_memcache.dll
extension=php_exif.dll Copy this from above. EXIF must be loaded after mbstring, otherwise it will prompt that it cannot be loaded
3. Modify LoadModule php5_module "E:/Wamp/bin/php/php5.3.3/php5apache2_2.dll" in E:WampbinapacheApache2.2.11confhttpd.conf
4. Check PHP info to see if it is successful
After the upgrade is completed, check if your program can run
Picture 0
Picture 1
Picture 2
Picture 3 The connection is OK
Figure 4 found the problem of being unable to connect to the database
Figure 5 PHP has added a new parameter max_file_uploads, which is the maximum number of files that can be uploaded per request