Home php教程 php手册 傻瓜化配置PHP环境Appserv

傻瓜化配置PHP环境Appserv

Jun 13, 2016 pm 12:35 PM
iis php start server environment look program Configuration

必 看:如果你已经装了IIS服务器,请到:
“开始—> 程序 —> 管理工具 —> Internet 信息服务(IIS)管理器 —> 网站”
将所有网站停止。否则将导致Apache无法启动。如果你已经配置过PHP环境,为避免重复出错,请先卸载所有相关软件:Apache、PHP、MySQL、phpMyadmin,因为Appserv已经自带了这些东东。


  用Appserv配置PHP环境就跟大家平常安装游戏一样简单,所以大家不要太紧张。好了,我们闲话少说,开始用Appserv配置PHP环境吧。双击运行已经下载好的软件:Appserv-win32-2.5.7.exe

欢迎界面,不理它,直接点Next


选择安装目录,随你喜欢啦,建议不要装在C盘


选择安装方式,建议用默认方式,直接点Next


这里也不用改了,直接点Next


Mysql的用户名和密码、字符集,自己设置吧


开始安装咯


全部打钩(启动Apache和MySQL)点Close就完了


  完了?完了。完了?完了!就是这么简单,你还想怎样?Apache、PHP、MySQL、phpMyadmin该有的都有了。去你的安装目录看一下吧,不出意外的话,应该有四个文件夹:

Apache2.2 —— Apache服务器目录
PHP      —— PHP目录
MySQL   —— MySQL目录
www     —— 网站目录(用来装你的PHP程序的,phpMyadmin也在里面,因为它也是PHP程序)

  好了,PHP环境就这么配置好了,快吧?比自己手动去配简单吧?呵呵。初学者用Appserv配很方便,但是入门级的人建议还是用手动配置吧。其一,能够了解一些基础知识;其二,诸如Appserv之类的集成软件,还是很多不足之处,没有手动配置的健全。我们现在的目的只是开发,而不是服务,所以,用Appserv就足够了。

  OK,打开浏览器,输入http://localhost 或者 http://127.0.0.1 如果能打开下面的网页,就表示你安装成功了,祝你好运哦!



顺便说一下这个页面的头两个连接有什么用吧:
phpMyAdmin Database Manager Version 2.9.0.2 (phpMyadmin管理入口)
PHP Information Version 5.1.6 (PHP的相关配置信息)

  在往下就是Apache、PHP、MySQL和phpMyAdmin的官方网站连接。再再往下就是一些Appserv的相关信息,这些都不用去理,只有头两个连接比较重要。

  终于讲完了两种PHP的配置方法了,长舒一口气。还有一种IIS + PHP的配置方法,我们会在下一篇教程中讲到。所以一定要留意www.hetty.cn哦。那就到这里吧,呵呵。

——海霆 (Hetty)


点击下载此教程的world文档
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)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP Logging CakePHP Logging Sep 10, 2024 pm 05:26 PM

Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provide

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks.

See all articles