Home Backend Development PHP Tutorial The latest method to build a PHP environment_PHP tutorial

The latest method to build a PHP environment_PHP tutorial

Jul 21, 2016 pm 04:11 PM
php right try build most friend correct environment Configuration

很多朋友对PHP环境很为难,经过多次尝试都无法正确配置
其实配置PHP环境并不难,掌握要领就会很轻松
对于初级用户和想简单配置PHP环境的朋友,本人提供一种方法和PHP环境文件
就会让您轻松拥有高性能PHP环境,而且还可以使用虚拟主机管理系统哦!


安装:首先必须确认系统中已经安装了IIS
系统推荐:win2003服务器版,win2000专业版和xp系统不支持多用户IIS
虚拟主机管理系统无法进行管理,xp系统IIS存在问题调试程序会经常出现不正常。

对于作网站和经常调试教本的朋友还是推荐使用win2003服务器版
把系统做好配置好玩游戏的话这两个系统都很不错的,有朋友说win2003系统
很多功能都关闭了而且界面也没有XP好看,不适合个人用,其实这个东西只
需要您稍微改一下,把默认关闭的东西打开,就是一个很不错的个人电脑用的系统
(win2003系统的优化设置方法见:http://www.ie2004.net/jok/index1.htm)

安装说明:
注意:php和mysql均安装到D盘,自己拥有服务器的朋友也建议这样安装
大致路径如下:

D:盘-----serv-u(只对服务器用户,本机调试免)
         mail(只对服务器用户,本机调试免)
         php
         mysql
         EfangVHost4.1(易方虚拟主机管理系统4.1)

E:盘-----www(IIS用户目录,存贮IIS用户数据或者本机调试数据)


1、PHP_setup.exe 安装到D盘PHP目录
完全自动安装自动配置,无需手工配置,解决初级用户不会设置PHP.INI的问题
此文件安装完IIS也会自动配置完成,无须手工更改。

2、将mysql-4.0.24-win文件夹拷贝到D盘,文件夹重命名为mysql

使用mysqladmin,更改默认密码。
当然也可以不更改,密码为空
进入命令提示符:进入D盘的mysql\bin文件夹
mysql的初始管理帐号是root,没有密码
如果想把默认帐号root密码更改为:123456
则执行:mysqladmin -u root -p password 123456
其中password不用动,后面的123456是更改后的密码
回车以后会再次提示输入密码,不用改直接回车,密码就会变为123456


执行:mysql中\BIN中的winmysqladmin.exe文件即可启动MYSQL
第一次需要添加一次默认的密码,此密码随意。

3、安装ZEND
安装路径默认,提示需要加速的WEB目录时选择你的WEB目录
比如WEB目录在E盘的WWW中,就选择e:\www此过程需要执行两次
提示是否需要更改系统文件夹中的PHP.INI时,选择是。

4、安装虚拟主机管理系统:
默认安装路径为D盘,安装完执行文件夹中的“安装服务.bat”文件启动易方主机管理系统。
浏览器中执行http://127.0.0.1:9999即可登陆管理系统,默认用户名和密码都是admin
主机管理系统使用说明请到软件官方www.efang.com.cn下载

 

Explanation of the problem:
1. How to make the system support PHP tutorial: Execute the PHP installation during installation and the system will automatically support it.
2. Connection between MYSQL and the host management system: Start MYSQL. Install the virtual host management system to the D drive
and execute: "Installation Service.bat" file in the EfangVHost4.1 folder on the D drive to start the E-Fang host management system.
Execute http://127.0.0.1:9999 in the browser to log in to the management system. The default username and password are both admin
After entering, select "System Configuration"-"Installation and Settings MySQL"
First For this operation, you need to install "Install ODBC_3.51.11 Driver (MySQL)"
and then fill in the host address: This address does not need to be changed by default (localhost), MYSQL user name: root,
Password: (This password is the installation step 2 above The changed password, if there is no change, the password will be empty).
If the connection to MYSQL is successful, there will be a success prompt.
3. The host management system opens a space that supports MYSQL and PHP:
Select "Host Type", fill in the number: ht01, and set the corresponding parameters, where "site directory" fills in "e:www"
Select: Support MySQL
Then select "Create Site" and select the host type: ht01
The administrator account and password are optional. Then click "Create Site". After success, click: "Manage Now"
Select "Create MYSQL Database" in "Database Settings"
Then the space is fully activated and already supports PHP and MYSQL. If it is local debugging, you need to enter the "IIS Settings" of this
space and fill in the IP of the host header into the local debugging IP, for example: 127.0.0.1
Complete the setting and enter the browser input: 127.0. 0.1 can display the successful site opening screen
4. The win2003 system cannot be debugged locally:
Open IIS, select: "WEB Service Extension", set "Active Server Pages" to "Allow"
Change " Just change the "Predefined Account" of
in the "Identity" of the default pool "DefaultAppPool" to "Network Service".
5. There is a problem with my PHP textbook debugging. What should I do if I want to delete the MYSQL library and re-debug it?
It’s very simple. Enter the data directory of the mysql folder and delete the
file in the folder that was automatically created in the virtual host management system. Of course, you can also delete the database created by MYSQL in the virtual host management system. Delete and re-create.


Related file download: http://www.ie2004.net/down/php/default.htm
Note: The download address is a Netcom line, which will be slow for telecom users. In addition, the host has an anti-leeching system. , please do not connect to download.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313891.htmlTechArticleMany friends are very embarrassed about the PHP environment and cannot configure it correctly after many attempts. In fact, configuring the PHP environment is not difficult. It will be easy to master the essentials. For beginner users and those who want to simply configure the PHP environment...
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

Video Face Swap

Video Face Swap

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

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

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

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

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,

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

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

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 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

What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? Apr 03, 2025 am 12:03 AM

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

PHP and Python: Comparing Two Popular Programming Languages PHP and Python: Comparing Two Popular Programming Languages Apr 14, 2025 am 12:13 AM

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.

See all articles