|
Posted by John Nichel on 04/10/05 16:01
Mark Sargent wrote:
> John Nichel wrote:
>
>> Mark Sargent wrote:
>> <snip>
>>
>>> http://www.php.net/manual/en/install.unix.php
>>>
>>> it has 2 examples,
>>>
>>> 4-1 and 4-2. Little confused with what shared and static modules are and
>>> which 1 pertains to me. I was wanting to get php running to allow base
>>> to show results of snort logging in mysql. Snort/Mysql/Base etc are
>>> installed fine, just php is the last hurdle. Again, sorry. Cheers.
>>
>>
>>
>> When you installed php, did you install it the same time as Apache
>> (--with-apache=../apache-1.3.x) or was Apache already installed
>> (--with-apxs=/path/to/apxs)?
>>
> Hi All,
>
> okay, I need to ask this "dumb"(?) question. What is the difference
> between httpd, already installed and Apache..? I thought they were the
> same. If they are, and I'm using the default version, from install, I
> just add those lines to the .conf file, yes..? Again, I do truly
> apologize for what may seem mundane questions. Cheers.
As far as the functionality of PHP, there really is no difference in the
installs. A big advantage to installing PHP as a DSO (--with-apxs) vs.
a static module (--with-apache) is when it comes time to re-install PHP
(because you need to add a third party library to it, a new version is
out, etc.). As a static module, you would have to
re-configure/compile/install both PHP and Apache, whereas a DSO, you
only need to redo PHP.
In both cases, the solution to your problem is probably adding this to
your Apache's config file (httpd.conf), and restarting Apache...
AddType application/x-httpd-php .php
--
By-Tor.com
....it's all about the Rush
http://www.by-tor.com
[Back to original message]
|