From owner-freebsd-questions@FreeBSD.ORG Thu Apr 7 07:41:46 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 ED68E16A4CE for ; Thu, 7 Apr 2005 07:41:46 +0000 (GMT) Received: from allrounder.lame.at (mail.softlink.at [195.58.166.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 692A943D2D for ; Thu, 7 Apr 2005 07:41:46 +0000 (GMT) (envelope-from haimat@lame.at) Received: from itchy.lame.at (unknown [213.235.192.15]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by allrounder.lame.at (Postfix) with ESMTP id 163FF300FE for ; Thu, 7 Apr 2005 09:41:44 +0200 (CEST) From: "Matthias F. Brandstetter" To: freebsd-questions@freebsd.org Date: Thu, 7 Apr 2005 09:41:42 +0200 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504070941.42684.haimat@lame.at> Subject: how to enable PHP on Apache? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 07:41:47 -0000 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?