The latest way to build PHP environment

Source: Internet
Author: User
Tags manual iis ini mysql in php and php and mysql mysql database

Many friends of PHP environment is very difficult, after many attempts are not properly configured

In fact, it is not difficult to configure the PHP environment, master the essentials will be very easy

For novice users and friends who want to simply configure the PHP environment, I provide a method and PHP environment file

Allows you to easily have a high-performance PHP environment, but also can use the virtual host management system Oh!

Installation: You must first verify that IIS is installed on the system

System recommended: Win2003 Server version, Win2000 Professional Edition and XP system does not support multi-user IIS

Virtual Host management system is unable to manage, XP system IIS has problems debugging programs will often appear abnormal.

Win2003 Server Edition is recommended for friends who make Web sites and often debug textbooks

Put the system to good Configuration fun game words These two systems are very good, have friends say Win2003 system

Many features are closed and the interface is not good for XP, not for personal use, in fact, this thing only

Need you to change a little bit, turn off the default thing, is a very good personal computer system

(Win2003 system Optimization setting method see:)

Installation Instructions:

Note: PHP and MySQL are installed to D disk, their own server friends also recommend this installation

The approximate path is as follows:

D: Disk-----serv-u (only for server users, this machine debugging free)

Mail (only for server users, native debugging free)

Php

Mysql

EfangVHost4.1 (easy-side virtual Host Management System 4.1)

E: Disk-----www (IIS user directory, storage of IIS user data or native debug data)

1, Php_setup.exe installed to the D-disk PHP directory

Automatically install automatic configuration, without manual configuration, solve the problem that the novice user does not set php.ini

IIS will also be configured automatically after this file is installed, without any manual changes.

2, copy the Mysql-4.0.24-win folder to D disk, folder renamed to MySQL

Use Mysqladmin to change the default password.

Of course, you can not change the password is empty

Enter command prompt: Enter Mysqlbin folder on D disk

MySQL's initial admin account is root, no password

If you want to change the default account root password to: 123456

Then execute: mysqladmin-u root-p password 123456

Where password does not move, the following 123456 is the changed password

Return will be prompted to enter the password again, do not change the direct return, the password will become 123456

Execute: MySQL in bin in the Winmysqladmin.exe file can start MySQL

The first time you need to add a default password, this password is arbitrary.

3. Installation Zend

Installation path defaults, prompting you to select your Web directory when you need an accelerated web directory

For example, the Web directory in the e-disk of WWW, select e:www This process needs to be executed twice

Tip If you need to change the php.ini in the System folder, select Yes.

4, install the virtual Host management system:

The default installation path is D disk, and the install service. bat file in the execution folder starts the Easy host management system.

Browser execution can login to the management system, the default username and password are admin

Host management System Usage instructions please go to the software official download

Question Explanation:

1, how to enable the system to support PHP textbooks: the implementation of the installation of the PHP installation system can be automatically supported.

2, MySQL and host management system connection: the MySQL boot. Install the virtual host management system to D disk

Execution: The installation Services. bat file in the D Disk EfangVHost4.1 folder starts the easy host management system.

Browser execution can login to the management system, the default username and password are admin

Select "System Configuration"-"Install settings MySQL" after entering

First run requires installation of "Install odbc_3.51.11 driver (MySQL)"

Then fill in the host address: This address is not changed by default (localhost), MySQL user name: root,

Password: (This password is the password changed after installation in step 2 above, blank if no changes are made).

If the connection to MySQL success will have a successful hint.

3, host management system opened to support the MySQL and PHP space:

Select "Host Type", the number is filled in: ht01, and set the corresponding parameters, where "Site Directory" fill "e:www"

Select: Support MySQL

Then select "Create Site" to select the host type: ht01

Admin account and password arbitrary. Then click on "Create Site", after successful click: "Immediate Management"

Select "Create MySQL Database" in database settings

This space is completed and PHP and MySQL are supported. If it is native debugging, you need to enter this

Space "IIS Settings", the main head of the IP to fill in the native debugging IP, such as: 127.0.0.1

Settings complete Browser input: 127.0.0.1 can show the site opened the successful screen

4, the Win2003 system can not be debugged:

Open IIS, select: Web service Extensions, set "Active Server Pages" to "Allow"

In the "DefaultAppPool" in the default pool in application pool, in the identity

"Predefined accounts" change to a bit, it is generally "network services."

5, my PHP textbooks debugging problems, to the MySQL library to delete the debugging how to do?

Very simple, into the MySQL folder of the data directory, delete just the virtual host management system in the automatically established folder in the

Files can be, of course, in the virtual host management system to the MySQL established database delete the rebuild.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.