PHP installation configuration Summary

Source: Internet
Author: User

I just learned and used it. A newbie! Make a summary. Don't forget it!

PHP is an open-source project. In Linux, every time a module is added, it needs to be re-compiled.
In Windows, you can use the VC compiler or download the ready-made PHP. ini file to add and delete modules.

PHP supports fastcgi, which is implemented by php-cgi.exe. It uses Socket listening to accept new socket requests.

When FastCGI accepts the request, each time it receives a socket, it does not implement the socket connection processing!

Php-FMP is a FastCGI process management component, which is supported by the new version. It can achieve better FastCGI performance. In Windows, he uses the namedpipe named pipe to implement inter-process communication.

PHP installation

PHP. ini placement
1. Copy PHP. ini-development from the PHP Directory to c: \ windows \ PHP. ini.
2. Create a directory for PHP. ini in Apache.

PHP. ini configuration
Extension_dir = "C:/php5.4/EXT"

; Extension = php_mysql.dll

....

Remove the semicolon (;) and proceed as needed...

Xdebug Configuration

[Xdebug]
Zend_extension = C:/php5.4/EXT/php_xdebug-2.2.1-5.4-vc9.dll
Xdebug. profiler_enable = on
Xdebug. trace_output_dir = "../projects/xdebug"
Xdebug. profiler_output_dir = "../projects/xdebug"
Xdebug. remote_enable = on
Xdebug. remote_handler = dbgp
Xdebug. remote_host = localhost
Xdebug. remote_port = 9000

Fault tolerance handling:

Error_reporting = e_all &~ E_notice

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.