search
Homephp教程php手册windows下升级PHP到5.3.3的过程及注意事项

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

Jun 13, 2016 pm 12:13 PM
phpwindowsDownupgradedeveloplocalPrecautionsenvironmentofprocess

就升级了本地的开发环境,没有涉及到生产环境.其实从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

图1

图2

 

图3 连接没问题

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

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

Statement
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)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.