What is the difference between PHP execution and php-cgi execution in Apache modules?

Source: Internet
Author: User
Use PHP later, so do not know the previous version in php-cgi mode of implementation;

and has not used FastCGI;

So I want to ask two questions:

(1) What are the differences between PHP execution and php-cgi execution in Apache modules?
I am now local Mac OSX is using module execution:

LoadModule php5_module        modules/libphp5.so

(2) php-cgi If you do not use PHP-FPM or spawn-fcgi implement FastCGI, is there a website in use?

The first time to Sgementfault, thank you for your answer.

Reply content:

Use PHP later, so do not know the previous version in php-cgi mode of implementation;

and has not used FastCGI;

So I want to ask two questions:

(1) What are the differences between PHP execution and php-cgi execution in Apache modules?
I am now local Mac OSX is using module execution:

LoadModule php5_module        modules/libphp5.so

(2) php-cgi If you do not use PHP-FPM or spawn-fcgi implement FastCGI, is there a website in use?

The first time to Sgementfault, thank you for your answer.

Thank @Jex for the

Http://docs.joomla.org/Should_PHP_run_as_a_CGI_script_or_as_an_Apache_module%3F

Completely solve my doubts, thank you;

Do you speak c? If not, you can ignore all my answers below.

If it will. Have you ever developed a website in C language?

If used, that's the difference.

If it is not used, first understand the principle, the basis of the fight. Naturally, the problem is simple.

(PS: In the afternoon in the group asked the CI framework in the CLI mode error of the bit, is it you?) )

  • Related Article

    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.