Home Backend Development PHP Tutorial windows下升级PHP到5.3.3的过程及注意事项_PHP

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

Jun 01, 2016 pm 12:17 PM
php upgrade

就升级了本地的开发环境,没有涉及到生产环境.其实从5.3.0升级到5.3.3的过程还算蛮简单的,就是修改自己的程序有点麻烦,遇到了个小问题就是升级后竟然自己的项目无法连接mysql了,原因就是数据库配置串的问题,将localhost换成了127.0.0.1就好了.以后我在也不会在用localhost了........

 

正文

环境介绍:WAMP   PHP版本 5.3.0 vc6  ,升级到 5.3.3 vc6

 

步骤

0.停止WAMP服务 复制解压的php5.3.3 到 E:\Wamp\bin\php

1.替换E:\Wamp\bin\apache\Apache2.2.11\bin目录下的 php5nsapi.dll  和 php5ts.dll 到最新版本

2.替换E:\Wamp\bin\apache\Apache2.2.11\bin\php.ini  中的  extension_dir = "E:/Wamp/bin/php/php5.3.3/ext/" 的路径 

复制memcache.dll 到到php.5.3.3的ext目录下(这样就可以支持memcache了)

添加加载路径extension=php_memcache.dll

extension=php_exif.dll  将这样从上面复制下来exif要在mbstring后面加载,否则会提示无法加载

3.修改E:\Wamp\bin\apache\Apache2.2.11\conf\httpd.conf中的 LoadModule php5_module "E:/Wamp/bin/php/php5.3.3/php5apache2_2.dll"

4.查看PHP info看是否成功

 

升级完成后,看下自己的程序是否可以跑起来

图0

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

图1

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

图2

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

 

图3 连接没问题

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

图4 找到无法连接数据库的问题了

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

图5  PHP新添加了参数 max_file_uploads 就是每次请求最多能够上传的文件数

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

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to perform a smooth upgrade from PHP5.6 to PHP7.4 to avoid compatibility issues? How to perform a smooth upgrade from PHP5.6 to PHP7.4 to avoid compatibility issues? Sep 05, 2023 pm 06:57 PM

How to perform a smooth upgrade from PHP5.6 to PHP7.4 to avoid compatibility issues? With the continuous development of PHP technology, PHP7.4 has become the mainstream PHP version, but many projects still stay in older versions, such as PHP5.6. Upgrading to PHP7.4 can bring higher performance, more features and better security. However, due to some incompatibilities between PHP5.6 and PHP7.4, the upgrade process may cause some confusion. This article will explain how to achieve a smooth pH

How to avoid compatibility pitfalls when upgrading from PHP5.6 to PHP7.4? How to avoid compatibility pitfalls when upgrading from PHP5.6 to PHP7.4? Sep 05, 2023 am 08:25 AM

How to avoid compatibility pitfalls when upgrading from PHP5.6 to PHP7.4? With the continuous advancement of technology, PHP, as a commonly used programming language, often has some compatibility issues between different versions. When we decide to upgrade from an older version to a newer version, it is easy to encounter some unexpected problems, especially during the upgrade from PHP5.6 to PHP7.4. To help you avoid compatibility pitfalls, this article will introduce some common pitfalls and their solutions. Syntax error PH

How to identify potential compatibility issues in PHP5.6 to PHP7.4 upgrade? How to identify potential compatibility issues in PHP5.6 to PHP7.4 upgrade? Sep 05, 2023 am 08:34 AM

How to identify potential compatibility issues in PHP5.6 to PHP7.4 upgrade? Overview: PHP is a widely used programming language, and upgrading to the latest version can improve performance and security. However, some potential compatibility issues may arise when upgrading from an older version (such as PHP5.6) to a newer version (such as PHP7.4). This article will describe some common potential compatibility issues and how to identify and resolve them. Functions and methodsDeprecated: In PHP7, some functions and methods

How to prepare for compatibility migration from PHP5.6 to PHP7.4? How to prepare for compatibility migration from PHP5.6 to PHP7.4? Sep 05, 2023 pm 03:19 PM

How to prepare for compatibility migration from PHP5.6 to PHP7.4? With the continuous development of the PHP language, version upgrades have become an important aspect of maintaining program performance and security. PHP7.4 is an important upgrade version of PHP5.6, which includes some new features, improvements and optimizations, and also involves some incompatible changes. In order to successfully upgrade to PHP7.4, we need to do some preparation work and compatibility migration. Compatibility check First, we need to use PHP5.6

How to solve the compatibility challenges that may arise when upgrading PHP5.6 to PHP7.4? How to solve the compatibility challenges that may arise when upgrading PHP5.6 to PHP7.4? Sep 05, 2023 pm 04:12 PM

How to solve the compatibility challenges that may arise when upgrading PHP5.6 to PHP7.4? With the development of the times, software technology is also constantly improving. In order to keep up with the latest trends and technology trends, many developers choose to upgrade their projects from PHP5.6 to PHP7.4. However, this process may pose some compatibility challenges, as PHP 7.4 introduces some new features and syntax, and modifies some old features. In this article, we discuss how to solve these challenges and provide some code examples. Modify obsolete

How to solve possible namespace conflicts in the upgrade from PHP5.6 to PHP7.4? How to solve possible namespace conflicts in the upgrade from PHP5.6 to PHP7.4? Sep 05, 2023 pm 04:14 PM

How to solve possible namespace conflicts in the upgrade from PHP5.6 to PHP7.4? In modern web development, PHP is one of the most commonly used programming languages. As PHP versions are constantly updated, we often need to upgrade the old version of PHP code to the new version to obtain better performance and more features. However, during the process of upgrading PHP, you sometimes encounter namespace conflicts. This article will introduce you how to solve the namespace conflicts that may occur during the upgrade from PHP5.6 to PHP7.4, and

How to ensure your website runs properly after upgrading to PHP7.4 How to ensure your website runs properly after upgrading to PHP7.4 Sep 05, 2023 pm 06:26 PM

How to ensure that your website can run normally after upgrading to PHP7.4. With the continuous development of technology, PHP is also constantly updated and upgraded. PHP7.4 is one of the latest versions. Upgrading to PHP7.4 will not only get better performance and security, but also enjoy more new features and functions. However, for website administrators, upgrading PHP versions can pose some challenges, including ensuring that the website functions properly after the upgrade. This article will introduce some methods and sample code to help you ensure that your website is upgraded to PH.

How to deal with compatibility issues when upgrading from PHP5.6 to PHP7.4? How to deal with compatibility issues when upgrading from PHP5.6 to PHP7.4? Sep 05, 2023 pm 04:18 PM

How to deal with compatibility issues when upgrading from PHP5.6 to PHP7.4? With the rapid development of technology, PHP as a popular server-side programming language is also constantly evolving. PHP7.4 is the latest version. Compared with PHP5.6, it has significant improvements in performance and functions. However, due to changes in syntax and functions, PHP7.4 also introduces some compatibility issues. This article will introduce the compatibility issues that may be encountered when upgrading PHP5.6 to PHP7.4, and provide some solutions.

See all articles