From owner-freebsd-questions@FreeBSD.ORG Thu Apr 7 12:36:07 2005 Return-Path: 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 2696916A4CE for ; Thu, 7 Apr 2005 12:36:07 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAC1643D46 for ; Thu, 7 Apr 2005 12:36:06 +0000 (GMT) (envelope-from ylebihan@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so507397wra for ; Thu, 07 Apr 2005 05:36:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=GTfTls63JddSt8nv6F9U95koyTr3sdwdlzpSi/QUTNT0mRWMU2/Tr/TLzzUBLTyQv34B8daU3POvFG53scYMWEI0wMytURbLbcUDfhU3ksqEOv/pQ9zVzjNWRZx987y/ZlmbOSJG+hjZ1H5WwvpYidEf18EZWdNUeSS8a+RlFKI= Received: by 10.54.76.3 with SMTP id y3mr1112391wra; Thu, 07 Apr 2005 05:36:03 -0700 (PDT) Received: by 10.54.69.12 with HTTP; Thu, 7 Apr 2005 05:36:03 -0700 (PDT) Message-ID: <7c263b6d05040705363e39daa7@mail.gmail.com> Date: Thu, 7 Apr 2005 14:36:03 +0200 From: Yoann Le Bihan To: freebsd-questions@freebsd.org In-Reply-To: <200504070941.42684.haimat@lame.at> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <200504070941.42684.haimat@lame.at> Subject: Re: how to enable PHP on Apache? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Yoann Le Bihan List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 12:36:07 -0000 Hello ! :-) You just need to install mod_php port. It's located into /usr/ports/www (there are a mod_php4/ and a mod_php5/ directories). Just "make install clean" from one or two of these directories and it must be installed. Because I think it's not installed (even if it's mentionned in httpd.conf... it's strange by the way :-). Don't forget to make a "/usr/local/sbin/apachectl restart" after (if it's not already done from the port's installation). Best regards, YLB. yoann.lebihan@softroad.net On Apr 7, 2005 9:41 AM, Matthias F. Brandstetter wrote: > Hi all, > > I did a "make install clean" to compile and install phpmyadmin, which > installed PHP4 as well. Then I added these lines into my httpd.conf: > > --------------------------------------------------------------------- > ... > LoadModule php4_module libexec/apache/libphp4.so > ... > AddModule mod_php4.c > ... > > > > DirectoryIndex index.php index.php3 index.html > > > DirectoryIndex index.php3 index.html > > > > > DirectoryIndex index.php index.html > > > DirectoryIndex index.html > > > > ... > > AddType application/x-httpd-php3 .php3 > AddType application/x-httpd-php3-source .php3s > > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > ... > Alias /phpmyadmin /usr/local/www/phpMyAdmin > ... > --------------------------------------------------------------------- > > But when I now point my browser to /phpmyadmin, Firefox tells me, > it wants to download a PHTML file. And when I point it to > /phpmyadmin/index.php, I get a .php file, which Firefox wants to > download as well. > > So, how can I setup Apache/PHP to interpret my php files, instead of > sending them 1:1 to the client? Do I miss a configuration here (see > above)? > > Greetings and TIA, Matthias > > -- > And thank you most of all for nuclear power, which is yet to cause a > single proven fatality, at least in this country. > > -- Homer Simpson > Oh Brother, Where Art Thou?