Using Servkit (Phpnow) to build PHP environment [image]

Source: Internet
Author: User

Http://servkit.org/guide

Building PHP is not very difficult, just a bit cumbersome. It's time-consuming to build your own PHP + MySQL environment. To make matters worse, many novices often have problems with PHP when they are configured. Issues such as MySQL extensions, Zend installation failures, and so on. At this point, we need a fast, standard and professional PHP suite package. Phpnow in this way, for you to quickly build a professional virtual host.

As with Phpnow's name, let's phpnow! together.

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. You can enter.



Figure-1: Unzip the dialog box



After the automatic decompression is complete, the init.cmd is automatically executed for initialization action. As shown in Figure 2:
Firewall prompts may appear during the period, please allow.



Figure -2:init.cmd Process




Figure 3: Decommissioning the firewall



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)



Figure 4: Build Success



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. As shown in Figure 5.



Figure-5: Open a virtual host



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



Figure 6: Virtual Hosting successfully opened



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.



Figure-7: Add a database user.



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

It's OK! You now have a professional PHP server environment. What discuz!? 6.0, Phpwind, DeDe, phpcms All is not a problem, immediately start your build station journey.

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.