From owner-freebsd-questions Wed Jul 24 13:44:30 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 2B5B837B415 for ; Wed, 24 Jul 2002 13:44:20 -0700 (PDT) Received: from mailout6.nyroc.rr.com (mailout6-1.nyroc.rr.com [24.92.226.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83C4943E67 for ; Wed, 24 Jul 2002 13:44:15 -0700 (PDT) (envelope-from met@uberstats.com) Received: from SURVIVAL (rrcs-nys-24-97-200-196.biz.rr.com [24.97.200.196]) by mailout6.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id g6OKiCp07201 for ; Wed, 24 Jul 2002 16:44:13 -0400 (EDT) From: "MET" To: Subject: PHP Apache Assistance ~ like a moron Date: Wed, 24 Jul 2002 16:48:27 -0400 Message-ID: <003201c23353$7cc7db90$6801a8c0@SURVIVAL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0033_01C23331.F5B63B90" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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 This is a multi-part message in MIME format. ------=_NextPart_000_0033_01C23331.F5B63B90 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Like a moron...I've decided to play with things. First off I've got Apache 1.3 and PHP 4.1.2 running on a different machine, but for one reason or another I've decided to test installing Apache 2 and PHP 4.2.2. And simply put whenever I put in the path to view a PHP file on the server it tries to download it. Here's what I've done so far. cd /usr/local/httpd-2.0.39 ./configure --prefix=/usr/local/apache --enable-module=all --with-mpm=worker make make install cd /usr/local/php-4.2.2 ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --with-xml --enable-ftp --enable-short-tags --enable-calendar --enable-track-vars --with-tsrm-pth make make install I then get a nice little PHP Liscense notice as well as a warning for register_globals being off. So I continue: ee /usr/local/apache/conf/httpd.conf I then append the line: AddType application/x-httpd-php .php /usr/local/apache/bin/apachectl configtest it returns that all is proper. /usr/local/apache/bin/apachectl start lynx http://localhost/test.php And it prompts me for a download. Any ideas? /************************************************************** Matthew Metnetsky met@uberstats.com **************************************************************/ ------=_NextPart_000_0033_01C23331.F5B63B90 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Like=20 a moron...I've decided to play with things.  First off I've got = Apache 1.3=20 and PHP 4.1.2 running on a different machine, but for one reason or = another I've=20 decided to test installing Apache 2 and PHP 4.2.2.  And simply put = whenever=20 I put in the path to view a PHP file on the server it tries to download=20 it.
 
Here's what I've done so far.
 
cd=20 /usr/local/httpd-2.0.39
./configure --prefix=3D/usr/local/apache --enable-module=3Dall=20 --with-mpm=3Dworker
make
make=20 install
 
cd=20 /usr/local/php-4.2.2
./configure --with-apxs2=3D/usr/local/apache/bin/apxs = --with-mysql=20 --with-xml --enable-ftp --enable-short-tags --enable-calendar=20 --enable-track-vars --with-tsrm-pth
 
make
make=20 install
 
I=20 then get a nice little PHP Liscense notice as well as a warning for=20 register_globals being off.
 
So I=20 continue:
 
ee=20 /usr/local/apache/conf/httpd.conf
 
I=20 then append the line:    AddType=20 application/x-httpd-php .php
 
/usr/local/apache/bin/apachectl configtest
it=20 returns that all is proper.
 
/usr/local/apache/bin/apachectl start
 
lynx=20 http://localhost/test.php
 
And=20 it prompts me for a download.
 
Any=20 ideas?
 
 
 
/**************************************************************
 
     =20 Matthew Metnetsky
 
      met@uberstats.com
 
**************************************************************/
 
 
------=_NextPart_000_0033_01C23331.F5B63B90-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message