PHP Environment Configuration

Source: Internet
Author: User

Because small make up oneself want to rent a domain name space, helpless poor force small cock silk, can only use PHP server (cheaper).

obstinately in the spare time to learn PHP after work.

At first, it was manually configured, and it felt pretty much the same. The development environment is integrated directly with the XAMPP toolkit.

XAMPP is actually the Apache, PHP, MySQL These integration together, can be installed. Of course, friends who like to use the command can also add environment variables, in the cmd command inside the execution.

such as the

E:\apache;e:\apache\bin;

This environment variable is added to the path variable.

You can then execute it in cmd

Httpd-k start

Httpd-k restart

Httpd-k stop

command to start, restart, stop the server from running

Then go to the point, just beginning to learn a technology when always need to establish a bit of learning enthusiasm, so small do not recommend with me as the introduction of the person to configure too many things, first the environment well, the configuration after the study, lest the enthusiasm of learning to break up.

1. Download XAMPP

Address: https://www.apachefriends.org/zh_cn/index.html

Automatic fool-type installation, there should be no need to say anything.

2. Download EPP

EPP is the eclipse PHP, and ADT, PDT, the same thing, the custom version (integrated with the PHPEclipse plug-in Eclipse development environment).

Address is: http://epp.php100.com/

People who have used eclipse development should be more familiar with the interface.

3. Configure the debugging environment

A, first find the php.ini file (Xampp Control Panel in the Apache Config button can be seen, or under the installation directory to find the PHP directory can be seen)

Put

= "F:\xampp\php\ext\php_xdebug.dll"xdebug. profiler_append = 1xdebug. profiler_enable = 1xdebug . Profiler_enable_trigger = 1xdebug. Profiler_output_dir = "F:\xampp\tmp"xdebug. Profiler_ Output_name = "cachegrind.out.%t-%s"xdebug. remote_enable = 1xdebug. Remote_handler = "DBGP"  Xdebug. Remote_host = "127.0.0.1"xdebug. Trace_output_dir = "F:\xampp\tmp"

The preceding note, the semicolon (;), is removed. This is already removed from the small series. and changed all the parameters to 0 of the place to 1.

b, open the EPP configuration for debugging

Small series more lazy, this step is skipped.

The video can look a little bit, but some of the details are to try it yourself, because the current small series can not be fully normal use of debugging functions, only to ensure that the server is running properly after compilation.

Video sharing Address: Http://pan.baidu.com/s/1qWz5Iyw

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.