Home  >  Article  >  Backend Development  >  PHP environment building tool_PHP tutorial

PHP environment building tool_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 14:51:45881browse

I have been using XAMPP to build a local PHP environment. I have also introduced local XAMPP to build and install WordPress before and how to make local XAMPP support Rewrite redirection. However, recently, my XAMPP has experienced many strange phenomena. First, after each installation, I use The page will change to 500 in the last day or two. Apache and Mysql cannot be started after uninstalling and reinstalling or even reinstalling the system and reinstalling (not a port problem). So I looked for some other PHP local environment building tools.

7 local PHP environment building tools

 1. XAMPP

XAMPP is a relatively powerful local testing platform. It integrates the three necessary functions and also comes with FileZilla. The software comes with a control panel where you can register Apache, MySql and FileZilla as system services. Or uninstall the service, there is a control button for starting the service, and you can also see the running information of the service in the lower part of the window. Although the panel is in English, it is clear and easy to understand. An advantage of registering as a system service is that it can run automatically when booting, but it will consume a certain amount of system resources. It is up to the user to decide. After the installation is successful and the service is started successfully, you can open the browser and enter http://localhost/ to see if it is successful. In the XAMPP web page options, there is Chinese support.

 2. Wamp Server

Its official website does not have Chinese, but the program supports Chinese. After starting the installation program, it will prompt you to uninstall the old version first. Overlay upgrades are not supported, and then the installation will be successful all the way to NEXT. It has an icon in the task tray. If the service starts abnormally, it will be red; if some exceptions occur, it will turn yellow; if everything is normal, it will turn white. With these different color warnings, you can easily determine whether your localhost can be opened currently. It can also switch between online and offline status. Simplified Chinese is also available in the language option, which is very good.

3. Vertrigo Server

This is a lightweight WAMP environment, but when you download it, Xunlei's own security component actually says that it contains viruses. After my scanning (ESS3.0) and use, it turns out that this is completely a false alarm, so you can use it with confidence. Just install NEXT, and there is actually the original password in PhpMyAdmin, which is vertrigo. I feel that this default is not necessary when testing locally. It comes with a simple control panel and the operating status is clear at a glance.

It has common links in its localhost page, which is very convenient.

 4. PHPNow

PHPNow is really simple. The installation program is a self-extracting program made with RAR. There is no shortcut since release. You must find the folder where the file is stored and then run the Init.cmd program to initialize it. During the initialization process, you are prompted to set a password. Because it is in the CMD command line, only one password input is designed, and there is no password confirmation item, so please be careful when setting it and don't forget it. It also registers Apache and MySql as services and starts automatically at boot.

In the program folder, it also has a control panel, which is just CMD, but it is very easy to use.

Uninstalling is even easier. Uninstall the service in the control panel that comes with the software, and then delete the entire folder. It’s so convenient and the picture is simple, you can try it.

5. PHPStudy

PHPStudy is different. It contains IIS+PHP and Apache+PHP. The recommended software setting is the latter. There is also an icon in the task tray, and you can open the panel to see the service running status, which is also very simple.

Open localhost, and the standard PHP information interface appears.

6. AppServ

During the program installation process, it prompts you to change the default port 80 to the service port, which can avoid conflicts caused by port sharing. There is a password setting prompt, but it is much better than PHPNow. The software can also set the character set, and the default is UTF-8. Although the software does not have a control panel, shortcuts are added to the start menu for all operations, which is of course very convenient to use. The software also comes with a MySql command line terminal.

 7. EasyPHP

As the name suggests, the software is really EASY! Install NEXT all the way, but Apache and MySql will not be loaded as services, so they must be started manually every time they are used. The software also comes with a simple control panel, and there’s not much else to say.

Note: The original text of the above introduction is from linxo.cn, but the website is no longer available, so the original address is not listed.

Two common questions

In fact, I have only used XAMPP and EasyPHP, but they are generally similar. The two most common problems I encounter are the inability to start Apache due to port problems, and the inability to implement Rewrite locally.

 1. Apache cannot be started due to port problem

If Apache cannot be started due to a port problem, then close other programs and try them one by one to determine which one occupies port 80. The most common one is Thunder.

2. Enable the Rewrite module locally

I don’t know if it is applicable to others. XAMPP and EasyPHP, find the httpd.conf file, open it for editing, replace all AllowOverride None with AllowOverride All, and then remove the "#" sign in front of #LoadModule rewrite_module modules/mod_rewrite.so.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/371723.htmlTechArticleI have been using XAMPP to build a local PHP environment. I have also introduced local XAMPP to build and install WordPress before and how to make local XAMPP support Rewrite redirects, but recently my XAMPP has been experiencing a lot of strange phenomena...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn