What is the difference between php execution with the apache module and php-cgi execution? -Php Tutorial

Source: Internet
Author: User
Php is relatively late, so I don't know how to execute the previous version in php-cgi mode, and I have never used FastCGI. so I would like to ask two questions: (1) what is the difference between php execution in the apache module and php-cgi execution? I am currently using the local macosx module for execution: {code... using php is relatively late, so I am not familiar with the execution of previous versions in php-cgi mode;

And FastCGI has never been used;

So I want to ask two questions:

(1) What is the difference between php execution in the apache module and php-cgi execution?
My local mac osx is executed using the module:

LoadModule php5_module        modules/libphp5.so

(2) If php-cgi is not usedPHP-FPMOrspawn-fcgiIs there any website in use to implement FastCGI?

The first time I came to sgementfault, thank you for your answers.

Reply content:

It is relatively late to use php, so I am not familiar with the execution of previous versions in php-cgi mode;

And FastCGI has never been used;

So I want to ask two questions:

(1) What is the difference between php execution in the apache module and php-cgi execution?
My local mac osx is executed using the module:

LoadModule php5_module        modules/libphp5.so

(2) If php-cgi is not usedPHP-FPMOrspawn-fcgiIs there any website in use to implement FastCGI?

The first time I came to sgementfault, thank you for your answers.

Thanks to @ Jex for providing

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

It completely solves my doubts. thank you;

Do you know C language? If not, ignore all the answers below.

If yes. Have you developed a website in C language?

This is the difference if you have used it.

If it has never been used, first clarify the principles and lay a solid foundation. Naturally, this problem is quite simple.

(Ps: In the afternoon, I asked the person who reported the ci framework error in cli mode in the group, is that you ?)

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.