PHP Environment build (using integrated environment Phpnow)

Source: Internet
Author: User
Tags mysql php server php development environment version domain name how to use phpmyadmin mysql database phpmyadmin

PHP environment is not very difficult to build, but the process is a little cumbersome. It is time-consuming and laborious to build a PHP + MySQL environment using the original program. And this is often the case when configuring PHP. Issues such as MySQL extensions, Zend installation failures, and so on. Here we share an environment that uses an integrated environment to quickly build a PHP operation and how to build a virtual host, that is, Phpnow software.

If you really want to install the entire PHP operating environment, you can refer to this site article:

How to build PHP running environment under Windows 7

Phpnow is a fast, standard and professional PHP package, can be very convenient to quickly build a professional PHP operating environment, the following look at the specific process.

First download the latest version of Phpnow from Http://servkit.org/download. Phpnow has two kinds of encapsulation, one is the self-extracting version (recommended, this article for this version), the second is a pure 7z file (no EXE self-extracting).

The execution phpnow-1.4.x.exe appears as shown in the following figure. Enter can (note here must choose the installation directory, because after the decompression here will automatically execute the installation program, if you extract to the desktop, will automatically install to the desktop file directory inside).

After the automatic decompression is completed, Init.cmd will be executed automatically (firewall prompts may appear during the period, please allow). As shown in the following illustration:

Init.cmd can be completed in 10 seconds. When all is complete, the default page opens automatically (try opening http://127.0.0.1 manually if not).

If you only want to build a website, the above environment is enough. Most of the time we need to open a number of independent sites. For example, the forum and the homepage separate, and the friend share the server and so on. This is the time to use the virtual host.

Here is the use of Phpnow virtual host. Very simple.

Double-click Execute D:\PHPnow\PnCp.cmd (your installation path may not be D:\PHPnow), enter 2 and return. Follow the prompts to enter the new virtual host information. The following figure:

When you enter the information, the Apache is automatically restarted for entry. Then visit the domain name you just added, and notice that the domain name points to your server IP in advance.

If you do not have a domain name or do not use it, you can use the "virtual domain name" by editing C:\WINDOWS\system32\drivers\etc\hosts.

The bbs.test.com in this example is to add a row of "127.0.0.1 bbs.test.com" to the next line of "127.0.0.1 localhost".

You may also need to assign a MySQL database to each virtual host, and here's how to use phpMyAdmin to assign users and databases.

Open the Http://127.1/phpMyAdmin, and log in with Root.

Then click "Permissions" and click "Add New User".

Fill in the new username and password;

Select the second item "Create database with same name and grant all privileges".

Others remain the default; it is important to mention that global permissions are not optional, unless necessary.

Click [Execute] to complete. It's hard to understand, just look at the picture.

Give the user name and password you just added to the user. Note that Root has the highest privileges, do not easily give the password to others.

All right! You now have a professional PHP server environment.

Articles that you may be interested in

    • PHP development environment to build software introduction
    • PHP gets a PM2.5 data interface development (PM2.5 PHP API)
    • How to build PHP running environment under Windows 7
    • PHP's major open source CMS analysis and comparison
    • PHP gets the method for each month over a period of time, returning an array of these months
    • 9 PHP Open source projects with great potential for development (including iphone push and phpforandroid)
    • Three ways to get a client's real IP address from PHP
    • PHP extracts the birthday date in the ID number and the function to verify that it is a minor


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.