Re: [PHP] Ways to tell if existing setup is SAPI or Shared Object?



On Thu, April 19, 2007 4:08 pm, Weston C wrote:
What ways are there to tell if PHP is actually built into an Apache 2
installation or if it's installed as a shared object?

I've dropped a file containing phpinfo() on the server I'm looking at,
hoping the Server API value would give me a clue, but it just says
"Apache 2.0 Filter," and I don't know if Apache filters are required
to be one or the other....

If I had to take a wild guess, I'd say "Filter" was a shared object...

But I suppose if you compiled it directly into Apache (does anybody do
that anymore?) you might still see the same thing...

If you can read httpd.conf, and find a LoadModule there with php, then
it's shared, I think.

The php_sapi_name function and PHP_SAPI constant may be of use if you
just want SAPI info in your program, rather than all of phpinfo()

They're probably all exactly the same output, though.

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.



Relevant Pages

  • Re: PHP and PEAR and MySQL Setup on Apache
    ... Very experienced developer, newbie to PHP. ... The PHP installation works fine. ... I can put PHP files under the Apache ... Where does phpinfo() pull the include_path ...
    (comp.lang.php)
  • PHP problems in Apache
    ... Installation of 3 ports ended normally, ... Finally, when trying to start Apache I get the following, ... 'httpready' Accept Filter ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Need help with PLC noise problems in a Manhattan (New York City) apartment
    ... change as I switch branch breakers off. ... Leviton's written instructions, the filter is ... correct installation? ...
    (comp.home.automation)
  • Re: how long does it take ?
    ... This should really go in the A.I.S-E FAQ - never, ever use Microsoft ... You don't mean an ISO HTML ... I have more experience with Apache, MySQL, PHP, Perl etc. ... Connecting a default installation of GNU/Linux or any *nix installation ...
    (alt.internet.search-engines)
  • RE: Not a Debian question, but you guys know this stuff...
    ... the Apache manual is a bit misleading in that it says that ... "uninstall" options - installation of another instance is not an option. ... Katipo and Alvin, feel free to read this procedure and pass it off as your ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)