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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, April 19, 2007 4:59 pm, Weston C wrote:
> On 4/19/07, Richard Lynch <ceo@xxxxxxxxx> wrote:
>> 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?
>> >
>> > phpinfo() / Server API value .. just says "Apache 2.0 Filter"
>>
>> If you can read httpd.conf, and find a LoadModule there with php,
>> then
>> it's shared, I think.
>
> I do have access to httpd.conf. I can't find a LoadModule directive
> for php in it, though. Is that a bad sign? Could they possibly have
> been stuffed into any of the other lesser-used conf files?

Yes.

The LoadModule could be anywhere in the various httpd.conf included
files.

Well, not ANYWHERE, as I don't think it can be only in a virtual host
or directory...

>> 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.
>
> Seems to give the same result.
>
>> ... if you compiled it directly into Apache (does anybody do
>> that anymore?)
>
> I certainly wouldn't. But I think this is the default Apache2
> distribution on RH9, and you just never know with those folks. ;)

Almost for sure a shared library on default Apache 2 in RedHat 9, if
you are just doing up2date or whatever to maintain it.

Though I always compiled my apache and php from source on RH9 personally.

-- 
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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux