Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2003 09:16:52 -0500
From:      Libby Charles-CCL044 <Charles.S.Libby@motorola.com>
To:        freebsd-newbies@freebsd.org
Cc:        'Grzegorz Czaplinski' <G.Czaplinski@prioris.mini.pw.edu.pl>
Subject:   RE: php4
Message-ID:  <AD31C7ED267AD411B55500D0B781E33D065CCAB7@il33exm02.wes.mot.com>

next in thread | raw e-mail | index | archive | help
There are a couple of things you need to do to the httpd.conf file


In the section containing LoadModules, add the line

LoadModule php4_module	modules/libphp4.so

Now go to the section which starts 

#
# AddType allows you to add or to override the MIME configuration
# file mime.types for specific file types.
#

Add the following lines

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

This should get it working for you.  I am just learning this too and I am using the SAMs teach your self PHP,MySQL, and Apache.  It works for me.  I hope this helps.  It still might be better to ask these questions on -questions.

									Charles
-----Original Message-----
From: Grzegorz Czaplinski [mailto:G.Czaplinski@prioris.mini.pw.edu.pl] 
Sent: Friday, July 11, 2003 11:50 AM
To: Bangle Bot
Cc: freebsd-newbies@freebsd.org
Subject: Re: php4


On Fri, Jul 11, 2003 at 08:56:50AM -0700, Bangle Bot wrote:
> Hi,
>  
> I installed php4 from the ports collection. Everything worked great, 
> but when I looked at a php page in my browser only the source came out 
> and didn't start the php program. Is it a problem if i didn't compile 
> php3? Of course I restarted apache after the install... Please help.
>  
> Here is my httpd.conf file:
[...]

Hi!

You should have installed mod_php4 from /usr/ports/www/mod_php4/ .

	gregory
--
Grzegorz Czaplinski <gregory at prioris.mini.pw.edu.pl>
"The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/
 Fingerprint: EB77 E19D CFA2 5736 810F  847C A70F A275 2489 469F



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AD31C7ED267AD411B55500D0B781E33D065CCAB7>