NetBSD-Users archive

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

Re: Configuring Apache 1.3.42 for PHP



Hi Jason,

I thought that might be the case, but I can't see a PHP module for Apache
1.3.

I'm sure I can't be the only one running PHP on Apache 1.3...



On 30 March 2011 22:13, Jason Mitchell <jmitchel%bigjar.com@localhost> wrote:

>  Hello,
>
>     There are two things that I know you need to do (there may be more).
> First, install the apache php module (that's separate from php itself).
> Second, you have to configure Apache to call the module when it encounters
a
> php file. The relevant code from my httpd.conf file is this:
>
> #
> # Dynamic Shared Object (DSO) Support
> #
> # To be able to use the functionality of a module which was built as a DSO
> you
> # have to place corresponding `LoadModule' lines at this location so the
> # directives contained in it are actually available _before_ they are used.
> # Statically compiled modules (those listed by `httpd -l') do not need
> # to be loaded here.
> #
> # Example:
> # LoadModule foo_module modules/mod_foo.so
> #
>
> LoadModule php5_module lib/httpd/mod_php5.so
> AddHandler application/x-httpd-php .php
>
> I think that's it, but as I said, I'm 100% sure. The above worked for me
> with apache2 and php.
>
> Thanks,
>
> Jason M.
>
> On 03/30/2011 04:57 PM, IT geek 31 wrote:
>
> Hi,
>
> I'm trying to setup Squirrelmail on NetBSD 5.1 Cobalt.  Apache 1.3.42
> is installed, and serving a site already.
>
> When I go to the PHP virtual directory, I see the text / code -
> meaning Apache isn't configured for PHP.  I have installed the
> php-5.2.12 package, plus all the prerequisites for Squirrelmail.
>
>
> Does anyone know how I solve this?  The install notes for php-5.1.12
> says to configure Apache to use /usr/pkg/libexec/cgi-bin/php, but I
> have no idea on how to do this.
>
> Any help would sure be appreciated!
>
> Many thanks,
>
>
>
>
> --
> Thanks,
>
> *Jason Mitchell*
> [image: bigjar systems]
> 5430 Lynx Lane | Suite 127 | Columbia, MD 21044
> www.bigjar.com p: 443.430.9739 | f: 443-583-0289 | c: 410-921-0272
> ?THINK GREEN?and print this email only if necessary. Doing the Right Things
> to Make a Difference?.

[demime 1.01d removed an attachment of type image/png which had a name of 
bigjar_systems_logo_small.png]


Home | Main Index | Thread Index | Old Index