Use phpnow to build a PHP + MySQL website development environment

Source: Internet
Author: User
Tags php server how to use phpmyadmin
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. First download the latest phpnowversion from http://www.phpnow.org/download.html. 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 ). Click Local download: phpnow 1.5.3 the Simplified Chinese version of phpnow-1.4.x.exe appears. Press enter. Figure 1: After the unzipping dialog box is automatically decompressed, The init. CMD command is automatically executed for initialization. 2. A firewall prompt may appear during this period. Please allow. Figure 2: init. CMD process figure 3: remove the firewall init. CMD in 10 seconds. The renewal page is automatically displayed. (If not, open http: // 127.0.0.1 manually.) Figure 4: 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. 5. Figure 5: After a VM is opened, enter the Information and Press enter. Apache is 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: If a VM is successfully opened, you may 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 and log on with root. Click "permission" and then "Add new user ". Enter the new username and password. Select "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.
Related Article

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.