From owner-freebsd-questions Sat Aug 25 12:30:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from c007.snv.cp.net (c007-h013.c007.snv.cp.net [209.228.33.220]) by hub.freebsd.org (Postfix) with SMTP id 7C6A237B40C for ; Sat, 25 Aug 2001 12:30:39 -0700 (PDT) (envelope-from backdoc@netdoor.com) Received: (cpmta 22071 invoked from network); 25 Aug 2001 12:30:38 -0700 Received: from dsl-64-130-100-249.telocity.com (HELO bigdaddy.crotchett.com) (64.130.100.249) by smtp.directvinternet.com (209.228.33.220) with SMTP; 25 Aug 2001 12:30:38 -0700 X-Sent: 25 Aug 2001 19:30:38 GMT Content-Type: text/plain; charset="iso-8859-1" From: darren To: Joe Clarke Subject: Re: php, mysql and apache Date: Sat, 25 Aug 2001 14:29:14 -0500 X-Mailer: KMail [version 1.2] References: <20010825145925.Q3068-100000@shumai.marcuscom.com> In-Reply-To: <20010825145925.Q3068-100000@shumai.marcuscom.com> Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-Id: <01082514291402.15799@bigdaddy.crotchett.com> Content-Transfer-Encoding: 8bit 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 I did what you suggested. But, that didn't seem to help. So, out of curiosity, I tried renaming my index file to index.php (from index.php3). It works now. This is really kind of odd because everywhere there is a reference to ".php" in httpd.conf there is "php3". Obviously, I have something screwed in my httpd.conf file. But, I don't see it. Thanks, Darren On Saturday 25 August 2001 02:01 pm, you wrote: > Well, looks like crotchett.com is treating the PHP page as plain HTML. > You'll need to add something to the httpd.conf like: > > AddType application/x-httpd-php .php .php3 > > In order to tell the web server that .php3 files are to be parsed, and not > passed as-is. You may also want to add: > > AddType application/x-httpd-php-source .phps .php3s > > for consistency. > > Joe Clarke > > On Sat, 25 Aug 2001, darren wrote: > > I'm not positive if this question is appropriate for this list. I posted > > to newbie yesterday and received help, but I also received a notice that > > I might have posted it to the wrong list. So, my apologies if I'm not on > > the right list. > > > > Anyhow, I'm trying to get apache, php and mysql running. I have > > installed them from /usr/ports. > > > > >From pkg_info, these are the ports that I have installed. > > > > apache+mod_ssl-1.3.19+2.8.2 The Apache 1.3 webserver with SSL/TL > > functionality mod_php4-4.0.4pl1 PHP4 module for Apache > > mysql-client-3.23.36 Multithreaded SQL database (client) > > > > My web page looks like this: www.crotchett.com > > It is supposed to look like this: www2.netdoor.com/~backdoc > > > > It seems to me that Apache is not parsing the php scripts. When you go > > to crotchett.com, the default index file is index.php3. So, it is being > > noticed by httpd.conf. But, it doesn't handle the php include() > > statements inside of it. > > > > I have edited the DirectoryIndex in my httpd.conf file to include > > index.php3. > > > > I have also edited it to include: > > AddType application/x-httpd-php .php > > AddType application/x-httpd-php-source .phps > > > > I copied php.ini-dist to /usr/local/lib/php.ini. > > > > What else am I missing? > > > > Darren > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message