Home > Article > Backend Development > PHPnow easily creates a professional PHP server environment_PHP tutorial
How about setting up a virtual host on your own computer? It is completely under your control, and you can configure whatever you want to support.
It’s actually not difficult to build PHP, but it’s just a bit tedious. It is very time-consuming to set up a PHP + MySQL environment by yourself. To make matters worse, many novices often have problems of one kind or another when configuring PHP. Problems such as mysql extension, zend installation failure, etc. At this time, we need a fast, standard and professional PHP package. This is how PHPnow came into being to quickly build a professional virtual host for you.
The predecessor of PHPnow is GApm. If anyone is looking for GApm, tell them this. At that time, GApm was just a simple debugging environment package. Now PHPnow is a very professional PHP environment package. It's very simple to use. Don't associate professional with complicated.
First let’s briefly introduce PHPnow. PHPnow is a green and free Apache + PHP + MySQL environment package. In terms of functions, PHPnow has convenient virtual host management; a virtual host agent that can coexist with IIS; reasonable plug-ins support ASP, ASP.net, and JSP. The author believes that pure PHP is the most stable. Its characteristic is that all cmd + vbs scripts are used, which is very green and can be used with confidence! Domestic software has a certain user base and can quickly solve various problems. This is superior to foreign kits.
The same name as PHPnow, let’s PHPNow together!
First download the latest version of PHPnow from http://www.phpnow.org/download.html. PHPnow has two packages, one is the exe self-extracting version (recommended, this article is for this version), and the other is the pure 7z file (without exe self-extracting).
Execute PHPnow-1.3.x.exe and the picture below will appear. Just press Enter.
Figure-1: Decompression dialog box
After the automatic decompression is completed, Init.cmd will be automatically executed for initialization. As shown in Figure-2: A firewall prompt may appear during
, please allow it.
Figure-2: Init.cmd process
Figure-3: Unlock the firewall
Init.cmd can be completed in ten seconds. Once all is completed, the default page will open automatically. (If not, try opening it manually http://127.0.0.1)
Figure-4: Successfully built
If you just want to build a website, the above environment is enough. Very often we need to open multiple independent websites. For example, separate forums and homepages, share servers with friends, etc. At this time, virtual host will be used.
Let’s talk about the use of PHPnow virtual host. Very simple.
Double-click to execute D:PHPnowPnPnConf.cmd (maybe your installation path is not D:PHPnow), enter 2 and press Enter. Follow the prompts to enter the new virtual host information. As shown in Figure-5.
Figure-5: Opening a virtual host
After entering the information and pressing Enter, Apache will be automatically restarted to take effect. Then visit the domain name you just added, making sure to resolve the domain name and point it to your server IP in advance.