Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Aug 2003 22:51:05 +0100
From:      "Markie" <markie@notwentytwo.freeserve.co.uk>
To:        "tb" <tb@material.net>, <freebsd-questions@freebsd.org>
Subject:   Re: yes! (Re: frustrating *dumb* problem getting php to work underapache)
Message-ID:  <003e01c3611b$e3a357d0$e400a8c0@ape>
References:  <BB28669D4974D311B4A00008C75D1CF91014C982@pcaxs02.pcacorp.net><20030812204941.GB32551@gremlin.material.net><005a01c36114$ecb215c0$e400a8c0@ape> <20030812212829.GC52753@gremlin.material.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0039_01C36124.36A4E900
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


----- Original Message -----
From: "tb" <tb@material.net>
To: <freebsd-questions@freebsd.org>
Sent: Tuesday, August 12, 2003 10:28 PM
Subject: yes! (Re: frustrating *dumb* problem getting php to work
underapache)


> markie@notwentytwo.freeserve.co.uk (Tue 08/12/03 at 10:01 PM +0100):
>
> > As it sounds like you've done everything alright, could I suggest you
try
> > creating a page, for now index.php and inside putting the following
>
> yeah, i was trying php scripts in .php files. i know, it
> never hurts to ask...
>
> > You'll want to do this with
> >
> > LoadModule php4_module        libexec/apache/libphp4.so
> > AddModule mod_php4.c
> > AddType application/x-httpd-php .php
> >
> > In the apache configuration...
>
> BINGO! in three out of three (actually, more like ten out of ten)
> of my test config files, i had two out of three of those lines.
>
> i knew it was dumb mistake. otoh, i don't think i saw a single
> FAQ that said 'HEY STUPID -- you need *three* new configs to
> get this to work. so now i know. i'll make a note of it in my
> httpd.conf and put it up somewhere.
>
> THANKS MUCH! you brightened up my day. ok, now what kind of
> beer should i attach? (just make sure you have the plug-in. :)
>
> cheers,
> t

No problem :o)
There's also this one if you need it

AddType application/x-httpd-php-source .phps

Then files with the .phps extension will display the source code highlighted
and things :o)

I always thought that installing php put all three lines in for you, or
maybe I did add them myself... it's been a long time since I had to deal
with setting up Apache ;)

I can legally drink beer now too (only just 18 years old did you know),
anything will do :o) Some money is attached :o) (Can you tell I am still a
kid?)

------=_NextPart_000_0039_01C36124.36A4E900
Content-Type: text/plain;
	name="fiver.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="fiver.txt"

=A35 :o)
------=_NextPart_000_0039_01C36124.36A4E900--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003e01c3611b$e3a357d0$e400a8c0>