From owner-freebsd-newbies@FreeBSD.ORG Mon Jul 14 07:16:56 2003 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BADB537B401 for ; Mon, 14 Jul 2003 07:16:56 -0700 (PDT) Received: from motgate5.mot.com (motgate5.mot.com [144.189.100.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05A9043FCB for ; Mon, 14 Jul 2003 07:16:56 -0700 (PDT) (envelope-from Charles.S.Libby@motorola.com) Received: from az33exr02.mot.com (az33exr02.mot.com [10.64.251.232]) by motgate5.mot.com (Motorola/Motgate5) with ESMTP id h6EEGtUY025770 for ; Mon, 14 Jul 2003 07:16:55 -0700 (MST) Received: from il33exm02.wes.mot.com (il33exm02.wes.mot.com [154.56.3.102]) by az33exr02.mot.com (Motorola/az33exr02) with ESMTP id h6EEGsRX016070 for ; Mon, 14 Jul 2003 09:16:55 -0500 Received: by il33exm02.wes.mot.com with Internet Mail Service (5.5.2657.2) id ; Mon, 14 Jul 2003 09:16:53 -0500 Message-ID: From: Libby Charles-CCL044 To: freebsd-newbies@freebsd.org Date: Mon, 14 Jul 2003 09:16:52 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.2) Content-Type: text/plain cc: 'Grzegorz Czaplinski' Subject: RE: php4 X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 14:16:57 -0000 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 "The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/ Fingerprint: EB77 E19D CFA2 5736 810F 847C A70F A275 2489 469F