From owner-freebsd-questions@FreeBSD.ORG Tue Jun 19 05:04:09 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F2F916A400 for ; Tue, 19 Jun 2007 05:04:09 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id BE32D13C43E for ; Tue, 19 Jun 2007 05:04:08 +0000 (UTC) (envelope-from jackbarnett@gmail.com) Received: by py-out-1112.google.com with SMTP id a29so3586561pyi for ; Mon, 18 Jun 2007 22:04:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=dYR4Tm3bZ4nxIcaw6P7rL9NiTLgdZRCnVNsdCRGezgtaD7d3xfXGeEwlQADZ23tZOdFO/NyTGFHalq3ocymCeH+d6t1azQME5HobWj1/xdHQWv1nKi2VH27RNEAY6RQXylDmrTgeRB/y2LRlWIv1B40Of/9YfxVXrcuPSJZ1TK8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=p1I333BEyMMqaVRHFnFiTED8b49yrh3BtY9HudsBi/YXp93Fi9KMrfSiby9INskSAbM9CNrMhKQ5yoFsN1tva7Qcfv1pOcNp3pIjL9xwFUSrvhKBrGaASmUyg4lqkA3amnCGHWMqUSEmRHhhtjUjaprONbvW99qLKJ1zqekvbd8= Received: by 10.35.19.6 with SMTP id w6mr11995279pyi.1182229448224; Mon, 18 Jun 2007 22:04:08 -0700 (PDT) Received: from ?192.168.17.10? ( [66.41.41.11]) by mx.google.com with ESMTP id n63sm11603580pyh.2007.06.18.22.04.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 Jun 2007 22:04:07 -0700 (PDT) Message-ID: <467763C3.306@gmail.com> Date: Tue, 19 Jun 2007 00:04:03 -0500 From: Jack Barnett User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Apache, php? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jackbarnett@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 05:04:09 -0000 FreeBSD 6.2 Apache 1.3.37 (from ports) php 5.2.3 (from ports) on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. I installed it like this (extensions to) http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ The only difference is that I'm using 1.3 and not 2.x of Apache. Apache config below Installing 2.x isn't an option yet (test server, still need 1.3) fire2# grep -i php * httpd.conf:AddType application/x-httpd-php .php httpd.conf:AddType application/x-httpd-php-source .phps httpd.conf: httpd.conf: httpd.conf: DirectoryIndex index.php index.php3 index.html httpd.conf: httpd.conf: DirectoryIndex index.php3 index.html httpd.conf: httpd.conf: httpd.conf: DirectoryIndex index.php index.html httpd.conf: httpd.conf: httpd.conf: AddType application/x-httpd-php3 .php3 httpd.conf: AddType application/x-httpd-php3-source .php3s httpd.conf: httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps