From owner-freebsd-questions Fri Nov 1 2:54:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AF4837B401 for ; Fri, 1 Nov 2002 02:54:45 -0800 (PST) Received: from web11201.mail.yahoo.com (web11201.mail.yahoo.com [216.136.131.171]) by mx1.FreeBSD.org (Postfix) with SMTP id D1AE443EE6 for ; Fri, 1 Nov 2002 02:54:44 -0800 (PST) (envelope-from roti_343@yahoo.com) Message-ID: <20021101105444.31858.qmail@web11201.mail.yahoo.com> Received: from [141.85.128.29] by web11201.mail.yahoo.com via HTTP; Fri, 01 Nov 2002 02:54:44 PST Date: Fri, 1 Nov 2002 02:54:44 -0800 (PST) From: Rotaru Razvan Subject: Re: regarding php installation To: Lefteris Tsintjelis Cc: freebsd-questions@freebsd.org In-Reply-To: <3DC15261.896280DF@asda.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Thanks for all these good advices. I have one more question: I added to httpd.conf the '' stuff as you said and it did not work. When I remove the if clause it works. In httpd conf i have the following line: LoadModule php4_module libexec/apache2/libphp4.so What is the correct name in ? Thanks again Razvan --- Lefteris Tsintjelis wrote: > DaleCo Help Desk wrote: > > > > From: "John Bleichert" > > To: "Rotaru Razvan" > > Cc: > > Sent: Thursday, October 31, 2002 8:45 AM > > Subject: Re: regarding php installation > > > > > On Thu, 31 Oct 2002, Rotaru Razvan wrote: > > > > > > > Date: Thu, 31 Oct 2002 06:41:45 -0800 (PST) > > > > From: Rotaru Razvan > > > > To: freebsd-questions@FreeBSD.ORG > > > > Subject: regarding php installation > > > > > > > > Hello, > > > > > > > > Well I have apache2+mod_php4 installed. Still my apache server > > does not > > > > execute php scripts (it just sends them as plain text). After > > > > installing mod_php4 i didn't modify anything in httpd.conf. > > > > Should I? As i can tell the module is loaded. Why is the server > > not > > > > running the scripts? > > > > > > > > Regards, > > > > Razvan > > > > > > > > > > Assuming it's the same setup as 1.2.x you need to tell the server > > what > > > type of files to interpret as php. See the comments in the file, > > search it > > > for 'php'. > > > > > > JB > > > > > > # John Bleichert > > > > That's pretty much it. Load_Module, Add_Module, > > and AddType application should get it. Do your scripts have the > > .php extension? > > Try adding the following in your httpd.conf: > > > AddType application/x-httpd-php .php .php4 .php3 .phtml > AddType application/x-httpd-php-source .phps > > __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message