Home php教程 php手册 windows下php开发环境的搭建

windows下php开发环境的搭建

Jun 06, 2016 pm 07:58 PM
php windows develop build environment software

环境搭建软件组合为:Apache2.2.9mysql5.2.32php5.2.6 下载地址如下 http://download.csdn.net/detail/xttxqjfg/5670455 appserv-win32-2.5.10集成安装 http://download.csdn.net/detail/xttxqjfg/5670447 mysql-5.5.32-win32.msi http://download.csdn.net/

环境搭建软件组合为:Apache2.2.9+mysql5.2.32+php5.2.6  下载地址如下

http://download.csdn.net/detail/xttxqjfg/5670455   appserv-win32-2.5.10集成安装

http://download.csdn.net/detail/xttxqjfg/5670447   mysql-5.5.32-win32.msi

http://download.csdn.net/detail/xttxqjfg/5670439   php-5.2.6-Win32.zip

http://download.csdn.net/detail/xttxqjfg/5670431   apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi


安装前的准备,在D盘下新建一个文件夹wamp,在该文件夹内分别新建三个文件夹php5、apache、MySQL
安装apache2.2
下载附件中的安装文件,点击运行安装,安装过程中需要注意的将安装目录指定到安装前准备的文件夹中wamp/apache,安装完成后运行apache,在浏览器中输入localhost,如果显示it works则表示安装成功,否则安装失败。
安装mysql5.1
Mysql的安装比较复杂,详细步骤就不描述了,下面是在网上找到的一个比较详细的安装步骤。主要安装目录也放到准备前建立的目录内
http://www.jb51.net/article/23876.htm
打开mysql客户端登陆界面,输入密码后成功进入则表示安装成功。
安装php
将附件中的php压缩文件夹解压到准备前php5文件夹,打开apache的配置文件,在下面字符
#LoadModule vhost_alias_module modules/mod_vhost_alias.so(一般在126行左右)
后面加入
LoadModule php5_module "D:/wamp/php5/php5apache2_2.dll"
找到如下字符串
AddType application/x-gzip .gz .tgz(一般在380行左右)
在后面加入
AddType application/x-httpd-php .php .phtml
PHPIniDir "D:/wamp/php5"
到php5的目录内找到php.ini-recommended,将其改名为php.ini
重启apache服务器,让刚才的配置生效,这一步很重要。
重启过程中没有报错则配置成功。
在apache2/htdocs文件夹内新建一个test.php文件,内容为
Phpinfo();
?>
在浏览器中输入localhost/test.php看到内容则说明安装正确。


配置与mysql的拓展接口
首先将php5目录下的libmysql.dll复制到windows的安装目录下C:/windows,打开php的配置文件php.ini,就是刚才改名的那个文件。
在第536行左右找到
extension_dir = "./"
将其修改为
extension_dir = "D:/wamp/php5/ext"
在第675行左右找到
;extension=php_mysql.dll
;extension=php_mysqli.dll
将前面的;去掉即可

重启apache服务器对刚才的修改配置生效,在浏览器中输入localhost/test.php,找到mysql说明那块,提示状态为On则表示拓展接口开启成功,其他拓展接口类似,也可自行上网查询。


另外如果嫌以上安装目录麻烦的话可以下载附件中的集成安装包,一键安装php环境

http://download.csdn.net/detail/xttxqjfg/5670455   appserv-win32-2.5.10集成安装

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 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months 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 update the latest version of Bybit Exchange? Will there be any impact if it is not updated? How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? Feb 21, 2025 pm 10:54 PM

The way to update ByBit exchanges varies by platform and device: Mobile: Check for updates and install in the app store. Desktop Client: Check for updates in the Help menu and install automatically. Web page: You need to manually access the official website for updates. Failure to update the exchange can lead to security vulnerabilities, functional limitations, compatibility issues and reduced transaction execution efficiency.

deepseek web version entrance deepseek official website entrance deepseek web version entrance deepseek official website entrance Feb 19, 2025 pm 04:54 PM

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Mar 05, 2025 pm 05:57 PM

Detailed explanation and installation guide for PiNetwork nodes This article will introduce the PiNetwork ecosystem in detail - Pi nodes, a key role in the PiNetwork ecosystem, and provide complete steps for installation and configuration. After the launch of the PiNetwork blockchain test network, Pi nodes have become an important part of many pioneers actively participating in the testing, preparing for the upcoming main network release. If you don’t know PiNetwork yet, please refer to what is Picoin? What is the price for listing? Pi usage, mining and security analysis. What is PiNetwork? The PiNetwork project started in 2019 and owns its exclusive cryptocurrency Pi Coin. The project aims to create a one that everyone can participate

How to install deepseek How to install deepseek Feb 19, 2025 pm 05:48 PM

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Coinsuper exchange software channel official website entrance Coinsuper exchange software channel official website entrance Feb 21, 2025 pm 10:39 PM

The official website entrance of the Coinsuper Exchange: https://www.coinsuper.com. The client download channels are: Windows client, macOS client, and mobile (iOS/Android). Registration requires an email, mobile phone number and password, and you need to complete real-name authentication before you can trade. The platform provides a variety of digital asset transactions, including Bitcoin, Ethereum, etc., with the transaction fee rate of 0.1% for both orders and acceptors. Security safeguards include cold wallet storage, dual-factor verification, anti-money laundering and anti-terrorism financing measures, and with security public

Ouyi okx installation package is directly included Ouyi okx installation package is directly included Feb 21, 2025 pm 08:00 PM

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.

See all articles