Build the php environment (use the Integrated Environment phpnow)

Source: Internet
Author: User
Tags php development environment how to use phpmyadmin

It is not difficult to build a PHP environment, but the process is a little complicated. It is time and effort-consuming to build a PHP + MySQL environment using the original program. In addition, PHP is often configured with such errors. Such as mysql extension and zend installation failure. Here we will share with you how to quickly build a php runtime environment using an integrated environment and how to build a virtual host, that is, phpnow software.

If you want to install the complete php runtime environment step by step, refer to the article on this site:

How to build a PHP runtime environment in Windows 7

Phpnow is a fast, standard, and professional PHP package that allows you to quickly build a professional php runtime environment. Let's take a look at the specific process.

First download the latest PHPnow from http://servkit.org/download. PHPnow has two packages: one is the self-decompressed version of exe (recommended in this article), and the other is the pure 7z file (without the self-decompressed version of exe ).

The execution PHPnow-1.4.x.exe appears. Press enter (note that the installation directory must be selected here, because after decompression, the installation program will be automatically executed. If you decompress the package to the desktop, automatically installed in the desktop file directory ).

After the automatic decompression is completed, the Init. cmd command is automatically executed for initialization (a firewall prompt may appear during this period, please allow ). As shown in:

Init. cmd can be completed in 10 seconds. After all the settings are complete, the hosts page is automatically opened (if not, try to manually open http: // 127.0.0.1 ).

If you only want to build a website, the above environment is sufficient. In most cases, we need to open multiple independent websites. For example, separating a forum from a home page and sharing a server with friends. In this case, the VM is used.

The following describes how to use the PHPnow VM. Very simple.

Double-click execute D: \ PHPnow \ PnCp. cmd (your installation path may not be D: \ PHPnow), enter 2, and press Enter. Follow the prompts to enter new VM information. For example:

After you enter the information and press enter, Apache will be automatically restarted to take effect. Then visit the added domain name. Note that the domain name points to your server IP address in advance.

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

In this example, bbs.test.com is implemented by adding a line "127.0.0.1 bbs.test.com" in the next line of "127.0.0.1 localhost.

You may also need to allocate a MySQL database to each VM. The following describes how to use phpmyadmin to allocate users and databases.

Enable http: // 127.1/phpMyAdmin; and log on with root.

Click "permission" and then "Add new user ".

Enter the new user name and password;

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

Keep others by default. You must note that you do not select global permissions unless necessary.

Click [execute. Let's look at the figure.

Just give the username and password you just added to the user. Note that root has the highest permissions. Do not give the password to others easily.

Okay! You now have a professional PHP server environment.

Articles you may be interested in
  • Introduction to building software in the php Development Environment
  • How to build a PHP runtime environment in Windows 7
  • Php SDK for retrieving pm2.5 data from a certain place (pm2.5 php api)
  • Analysis and Comparison of major open-source CMS in php
  • Php gets the method of each month in a certain period of time, and returns an array composed of these months
  • Nine open-source PHP projects with great development potential (including iphone push and phpForAndroid)
  • Three methods for php to obtain the real IP address of the client
  • PHP generates continuous numbers (letters) Array Function range () analysis, PHP lottery program function

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.