Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 760141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:40:53+00:00 2026-05-14T15:40:53+00:00

What are the differences between mod_php and cgi php script? I mean, why it’s

  • 0

What are the differences between mod_php and cgi php script?

I mean, why it’s better (is it?) to use mod_php instead simple php scripts, running them as CGIs?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:40:53+00:00Added an answer on May 14, 2026 at 3:40 pm

    When using CGI : a PHP process is launched by Apache, and it is that PHP process that interprets PHP code — not Apache itself.

    In theory, a distinct PHP process has to be created for each request — which makes things slower : Apache has more work to do to answer a request.

    (Well, as pointed out by @AlReece45 in a comment, this can be made better using FastCGI)

    When using PHP as an Apache module (mod_php, or mod_php5), the PHP interpreter is kind of “embedded” inside the Apache process : there is no external PHP process.

    Which means :

    • No forking to answer a request (faster)
    • Better communication between Apache and PHP

    Generally speaking, I would say that mod_php is the solution that’s used the most.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What are the main differences between these WPF controls? And when I should use
Is there any differences between hibernate session and the session which you use while
What are the differences between these two, and which one should I use? string
What are the differences between htmlspecialchars() and htmlentities() . When should I use one
First. Which differences between mod_Deflate and gzip, which is better ? And can i
The differences between StringBuilder and StringBuffer in Java are well documented and have been
There are any differences between using SetValue with (for example) Canvas.LeftProperty and Margin Property?
What are the differences between preg_replace() and preg_filter() ? In which situations should I
Are there any differences between LEA $1000,A0 and MOVE #$1000,A0 to put an address
I know the differences between IBAction and IBOutlet, but I don't know when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.