Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

PHP & Apache

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
biffsmith
Asked:
biffsmith
  • 2
1 Solution
 
arantiusCommented:
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
 
biffsmithAuthor Commented:
Thanks...I assume that, since it says I'm running PHP CGI that it's not running as an Apache module.
0
 
arantiusCommented:
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

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now