From owner-freebsd-questions@FreeBSD.ORG Sun Jul 12 23:26:16 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F5B31065674 for ; Sun, 12 Jul 2009 23:26:16 +0000 (UTC) (envelope-from ray@stilltech.net) Received: from mail.geekdelivery.com (mail.geekdelivery.com [206.75.152.197]) by mx1.freebsd.org (Postfix) with ESMTP id 092188FC24 for ; Sun, 12 Jul 2009 23:26:15 +0000 (UTC) (envelope-from ray@stilltech.net) Received: from localhost (localhost [127.0.0.1]) by mail.geekdelivery.com (Postfix) with ESMTP id 4B78C1A99F0 for ; Sun, 12 Jul 2009 17:09:26 -0600 (MDT) Received: from mail.geekdelivery.com ([127.0.0.1]) by localhost (wserver.geekdelivery.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AeM0AVMkQgCo for ; Sun, 12 Jul 2009 17:09:25 -0600 (MDT) Received: from dev.localnet (S010600179a299839.lb.shawcable.net [70.65.137.146]) by mail.geekdelivery.com (Postfix) with ESMTPA id CC0361A99EB for ; Sun, 12 Jul 2009 17:09:25 -0600 (MDT) From: Ray To: freebsd-questions@freebsd.org Date: Sun, 12 Jul 2009 17:09:24 -0600 User-Agent: KMail/1.11.2 (Linux/2.6.28-13-generic; KDE/4.2.2; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907121709.25015.ray@stilltech.net> Subject: activate apache mod_rewrite X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2009 23:26:16 -0000 Hello, I'm running FreeBSD 7.0-RELEASE-p3, amd64 I have never used mod rewrite before, but I am about to be hosting a php website that does use it and I can't figure out how to turn it on. The website was working properly under other hosting. The server has been working properly for over a year with other php websites. I installed apache 2.2 along with php 5.2 from ports. google says that the following lines should appear in httpd.conf LoadModule rewrite_module libexec/apache/mod_rewrite.so AddModule mod_rewrite.c first line does appear, slightly modified LoadModule rewrite_module libexec/apache22/mod_rewrite.so when I try to add the second line, apache won't start. mod_rewrite.so is in the location specified. at the moment I'm guessing I am missing something in httpd-vhosts.conf, but I haven't found a guide for this yet. Any suggestions, manual sections, links appreciated. Ray