?
Solved

PHP & Apache

Posted on 2005-02-24
3
Medium Priority
?
342 Views
Last Modified: 2010-03-04
Can someone tell me how I find out if PHP is running as a module of Apache?  I'm sure it's probably in the phpinfo(), but I don't know where to look?
0
Comment
Question by:biffsmith
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Expert Comment

by:arantius
ID: 13399480
php_sapi_name()
http://us2.php.net/manual/en/function.php-sapi-name.php
"php_sapi_name --  Returns the type of interface between web server and PHP"
0
 

Author Comment

by:biffsmith
ID: 13399503
Thanks...I assume that, since it says I'm running PHP CGI that it's not running as an Apache module.
0
 
LVL 18

Accepted Solution

by:
arantius earned 2000 total points
ID: 13399511
Correct.  CGI means it's an externally invoked executable.  This is bad, if it can be avoided, as it is a lot of overhead to start the program each time.  As a module it is loaded into memory once and just called for each page.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question