PHP Environment Building (using integrated environment Phpnow) _php Tutorial

Source: Internet
Author: User
Tags php server php development environment how to use phpmyadmin open source cms
PHP environment is not very difficult to build, but the process is a bit cumbersome. It takes time and effort to build a PHP + MySQL environment using the original program. And there are often such errors when configuring PHP. Issues such as MySQL extensions, Zend installation failures, and so on. Here we share a running environment that uses an integrated environment to quickly build a PHP and how to build a virtual host, the Phpnow software.

If you really want to install the entire PHP running environment, you can refer to the article:

How to build PHP runtime 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 to see the specific process.

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

The execution phpnow-1.4.x.exe appears as shown. Enter (note that it is important to select the installation directory, because the decompression is completed here will automatically execute the installation program, if you extract to the desktop, will automatically install to the Desktop file directory).

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

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

If you only want to build a website, the above environment is enough. Very often we need to open multiple independent websites. For example, forums and home pages separate, and friends to share the server and so on. This will be the use of virtual host.

Let's talk about the use of Phpnow virtual host. Very simple.

Double-click Execute D:\PHPnow\PnCp.cmd (perhaps your installation path is not D:\PHPnow), enter 2 and return. Follow the prompts to enter the new virtual host information. Such as:

After entering the information, you will automatically restart Apache to take effect. Then access the domain name you just added, note that the domain name is resolved in advance to point to your server IP.

If you do not have a domain name or are not available, 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 line "127.0.0.1 bbs.test.com" on the next line of "127.0.0.1 localhost".

You may also need to assign a MySQL database to each virtual host, as described below how to use phpMyAdmin to assign users and databases.

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

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

Fill in the new user name and password;

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

Others remain the default; It should be noted that the global permissions are not optional, unless necessary.

Click [Execute] to complete. It's hard to see the picture.

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

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

Articles you may be interested in

    • Introduction to PHP development environment building software
    • How to build PHP runtime environment under Windows 7
    • PHP acquires a PM2.5 data interface development (PM2.5 PHP API)
    • PHP major open source CMS analysis and comparison
    • PHP gets a method for each month in a certain period of time, returning an array of these months
    • 9 Promising PHP open source projects (including iphone push and phpforandroid)
    • PHP three ways to get the real IP address of the client
    • PHP generates consecutive numbers (Letters) array function range () analysis, PHP lottery program function

http://www.bkjia.com/PHPjc/779413.html www.bkjia.com true http://www.bkjia.com/PHPjc/779413.html techarticle PHP environment is not very difficult to build, but the process is a bit cumbersome. It takes time and effort to build a PHP + MySQL environment using the original program. And this is often the case when you configure PHP ...

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