PHPnow PHP preparation

Source: Internet
Author: User
Tags php server how to use phpmyadmin
PHPnow is not difficult to build PHP, but it is complicated. It takes a lot of time to build a PHP + MySQL environment. Worse, many new users often encounter such problems when configuring PHP. Such as mysql extension and zend installation failure. In this case, we need a fast, standard, and professional PHP suite package. PHPnow came into being to help you quickly build professional virtual hosts. Build PHP with PHPnow

Building PHP is not difficult, but complicated. It takes a lot of time to build a PHP + MySQL environment. Worse, many new users often encounter such problems when configuring PHP. Such as mysql extension and zend installation failure. In this case, we need a fast, standard, and professional PHP suite package. PHPnow came into being to help you quickly build professional virtual hosts.

Like PHPnow, let's join PHPNow!

First from? Http://servkit.org/download? Download the latest PHPnow version. 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.



Figure-1: extract dialog box



After the automatic decompression is completed, the Init. cmd command is automatically executed to perform initialization. As shown in figure-2:
A firewall prompt may appear during this period. please allow.



Figure 2: Init. cmd process




Figure-3: remove the firewall



Init. cmd can be completed in 10 seconds. The renewal page is automatically displayed.
(If not, try to open it manually? Http: // 127.0.0.1)



Figure 4: build successful



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. See figure 5.



Figure 5: opening a VM



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.



Figure 6: VM opened successfully



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

Open? Http: // 127.1/phpMyAdmin; use root to log on.
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.



Figure-7: add a database user.



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. What Discuz! 6.0. PHPWind, DeDe, and PHPCms are not all problems. start your website construction journey right away.

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.