search
Homephp教程php手册Windows7下的php环境配置教程

这篇文章主要介绍了Windows7下的php环境配置教程,本文讲解了Windows7下的PHP环境配置步骤,包含下载安装文件、配置PHP、添加到系统变量和检测安装是否成功等步骤,

一:下载程序包

首先到php官网下载程序包,官网地址:

二:解压

解压你的程序包,放在除c盘外的目录下(文件夹非中文命名)

三:修改php安装包文件

在php根目录下找到“php.ini-development”并修改为:“php.ini”

php.ini中找到(如下的自己没有设置)

找到下列语句,并将这些语句前的「;」去掉:

复制代码 代码如下:


;extension=php_gd2.dll
;extension=php_mysql.dll
;extension=php_sockets.dll

找到下列这两句:

复制代码 代码如下:


;On windows:
;extension_dir = "ext"

将上面的后一句改为(注意去掉前面的分号):

复制代码 代码如下:


extension_dir = "D:\php-5.5.7\ext" //你存放php的目录

四:添加进坏境变量

win7理的环境变量设置和xp差不多,右击【计算机】--【属性】--【高级系统设置】然后在系统属性里选择【高级】--【环境变量】

Windows7下的php环境配置教程

Windows7下的php环境配置教程

五:检测php版本号

Windows7下的php环境配置教程

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function