傻瓜化配置PHP环境Appserv
必 看:如果你已经装了IIS服务器,请到:
“开始—> 程序 —> 管理工具 —> Internet 信息服务(IIS)管理器 —> 网站”
将所有网站停止。否则将导致Apache无法启动。如果你已经配置过PHP环境,为避免重复出错,请先卸载所有相关软件:Apache、PHP、MySQL、phpMyadmin,因为Appserv已经自带了这些东东。
用Appserv配置PHP环境就跟大家平常安装游戏一样简单,所以大家不要太紧张。好了,我们闲话少说,开始用Appserv配置PHP环境吧。双击运行已经下载好的软件:Appserv-win32-2.5.7.exe
选择安装目录,随你喜欢啦,建议不要装在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哦。那就到这里吧,呵呵。
点击下载此教程的world文档

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

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

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

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

In PHP8, match expressions are a new control structure that returns different results based on the value of the expression. 1) It is similar to a switch statement, but returns a value instead of an execution statement block. 2) The match expression is strictly compared (===), which improves security. 3) It avoids possible break omissions in switch statements and enhances the simplicity and readability of the code.

In PHP, you can effectively prevent CSRF attacks by using unpredictable tokens. Specific methods include: 1. Generate and embed CSRF tokens in the form; 2. Verify the validity of the token when processing the request.

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.
