Upgrade PHP to 5.3.3 and precautions

Source: Internet
Author: User

Introduction

Since focusing on lamp, I have been focusing on PHPCommunityToday, I went to the official website php.net and found that the new version of php5.3.3 has been released, which improves stability and security.

The local development environment is upgraded without involving the production environment. In fact, it is quite simple to upgrade from 5.3.0 to 5.3.3, that is, to modify your ownProgramA little troublesome.After the upgrade, my project cannot connect to MySQL because of the Database Configuration string problem. Just replace localhost with 127.0.0.1.I won't be using localhost in the future ........

 

Body

Environment Introduction: Wamp PHP version 5.3.0 vc6, upgraded to 5.3.3 vc6

 

Procedure

0. Stop the Wamp service to copy and decompress php5.3.3 to E: \ Wamp \ bin \ PHP

1. Replace php5nsapi. dll and php5ts. dll in the E: \ Wamp \ bin \ apache \ apache2.2.11 \ bin directory with the latest version.

2. Replace the path of extension_dir = "E:/Wamp/bin/PHP/php5.3.3/EXT/" in E: \ Wamp \ bin \ apache \ apache2.2.11 \ bin \ PHP. ini

Copy memcache. DLL to the ext directory of php.5.3.3 (this will support memcache)

Add the loading path extension = php_memcache.dll

Extension = php_exif.dllCopy the file from the above, and the exif file will be loaded after the mbstring file; otherwise, the system will prompt that the file cannot be loaded.

3. Modify loadmodule php5_module "E:/Wamp/bin/PHP/php5.3.3/php5apache2_2.dll" in E: \ Wamp \ bin \ apache \ apache2.2.11 \ conf \ httpd. conf"

4. Check the PHP info to see if it is successful.

 

After the upgrade, check whether your program can run.

Figure 0

Figure 1

Figure 2

 

Figure 3 No connection problems

Figure 4 find the problem that the database cannot be connected

Figure 5 The max_file_uploads parameter added to PhP indicates the maximum number of files that can be uploaded in each request.

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.