高速搭建php运行环境之WampServer
快速搭建php运行环境之WampServer
据我所知很多同学都想要试着学习一下PHP,无奈要在Windows下安装搭建好一个PHP环境来学习对于菜鸟同学来说繁琐程度足以让一半以上的人放弃,毕竟 Apache+PHP+MySQL 这3个程序配置起来比较麻烦,对于新手来说,要弄清楚那些配置还真是云里雾里。所以傻瓜式整合型的WAMP程序(Windows+Apache+PHP+MySQL)就出来了,这类软件可以让懒人和新手朋友们免除安装配置多款服务器软件的麻烦,让同学们更快地投入到PHP语言本身的开发与学习当中去。
WAMP类的软件有许多,并且基本上都是免费的,比如 XAMPP 等,而今天在这里我们要向大家介绍的是——WAMP Server,没错!它就是叫做WAMP!
LAMP是一个缩写,它指一组通常一起使用来运行动态网站或者服务器的著名免费开源的软件,其中包括:Linux操作系统;Apache网页服务器;MySQL数据库管理系统(或者数据库服务器);PHP 和有时 Perl 或 Python脚本语言。取各自名字的首个字母就组成LAMP这个词了。同样,在Windows操作系统下使用这些软件组合,就叫做WAMP了。
????? 虽然这些开放源代码程序本身并不是专门设计成同另外几个程序一起工作的,但由于它们都是用于构建Web服务器的影响较大的开源软件,这就导致了这些组件经常配合在一起使用。在过去的几年里,这些组件的兼容性不断完善,在一起的应用情形变得更加普遍。并且它们为了改善不同组件之间的协作,已经创建了某些扩展功能。目前,几乎在所有的Linux发布版中都默认包含了这些产品。Linux操作系统、Apache服务器、MySQL数据库和Perl、PHP或者 Python语言,这些产品共同组成了一个强大的Web应用程序平台。
最新的WAMP Server包括:Apache 2.2.11 / MySQL 5.1.33 / PHP 5.2.9-2,它的配置超容易,激动了吧?好了,开始吧!!
双击下载的文件(下载地址下有),出现安装界面,告诉你要卸载旧版本的WAMP再安装新版
?
?
选择“是”开始安装,然后一路Next吧,然后选择安装目录,建议使用默认的地址
?
?
选择安装目录选好之后点next继续,接下来就是快捷图标,域名等等,这个我就不多说了,点next就行了,安装到最后会出现选择explorer的提示,定位到%windir%explorer.exe即可
?
?
安装完毕会出现图标
?
?
运行之,这时托盘会出现一个带点红色的白色图标,不过默认是鸟语,不要担心,这个是多国语言。右击托盘图标-language-Chinese即可改成中文版
?
?
这时就会切换成简体中文,单击那个图标,启动所有服务
?
?
这时图标就会变成白色。
附:如果Apache无法启动,请先退出占用80端口的软件,启动workstation和DNS Client服务,网络协议安装Microsoft网络客户端,如果还不能启动,就到你的连接名-属性-网络-Internet协议-属性-高级-WINS-导入LMHOSTS—你的apache的httpd.exe地址(一般为wamp\bin\apache\bin\httpd.exe)就可以了
(根据X-Force的经验,迅雷、电驴、QQ音乐等程序均会占用80端口哟)
再选择PHPmyAdmin(一款网页版的用于管理MySQL数据库的程序)
?
?
点击添加新用户,我们增加一个数据库的用户
?
?
按照我的设置,用户名和密码随意,我的就是123 123。这时我们就可以在本机安装一些常用的PHP程序来玩玩了,例如异次元正在使用的WordPress,又或者一个Discuz论坛。现在我们以discuz为榜样,试验一下,Discuz安装前还要小小的设置一下,Php-php设置-勾选short open tag
?
?
下载Discuz,解压,将discuz的upload文件夹里的所有文件复制到wamp的www目录下,在浏览器访问 http://localhost/upload/install/index.php,这时就会出现discuz的安装界面了,点击我同意-检测通过,出现:
?
?
数据库用户名和密码按照上面的设置,下面的是Discuz管理员用户名,密码随便,点击“填写完毕,进行下一步”。就会出现安装完成的界面,好了!我们成功地在Windows本机上建立起一个自己的论坛了,总体的步骤都是非常简单的。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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

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

One of the major changes introduced in MySQL 8.4 (the latest LTS release as of 2024) is that the "MySQL Native Password" plugin is no longer enabled by default. Further, MySQL 9.0 removes this plugin completely. This change affects PHP and other app

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

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

CMS stands for Content Management System. It is a software application or platform that enables users to create, manage, and modify digital content without requiring advanced technical knowledge. CMS allows users to easily create and organize content

Arrays are linear data structures used to process data in programming. Sometimes when we are processing arrays we need to add new elements to the existing array. In this article, we will discuss several ways to add elements to the end of an array in PHP, with code examples, output, and time and space complexity analysis for each method. Here are the different ways to add elements to an array: Use square brackets [] In PHP, the way to add elements to the end of an array is to use square brackets []. This syntax only works in cases where we want to add only a single element. The following is the syntax: $array[] = value; Example

The page is blank after PHP connects to MySQL, and the reason why die() function fails. When learning the connection between PHP and MySQL database, you often encounter some confusing things...
