From owner-freebsd-ports@FreeBSD.ORG Sun Jun 6 12:04:51 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F023310656EE for ; Sun, 6 Jun 2010 12:04:51 +0000 (UTC) (envelope-from SamanKaya@netscape.net) Received: from imr-ma01.mx.aol.com (imr-ma01.mx.aol.com [64.12.206.39]) by mx1.freebsd.org (Postfix) with ESMTP id B05C98FC14 for ; Sun, 6 Jun 2010 12:04:51 +0000 (UTC) Received: from mtaout-mb05.r1000.mx.aol.com (mtaout-mb05.r1000.mx.aol.com [172.29.41.69]) by imr-ma01.mx.aol.com (8.14.1/8.14.1) with ESMTP id o56Bov0N001235 for ; Sun, 6 Jun 2010 07:50:57 -0400 Received: from [172.16.0.66] (unknown [212.156.209.87]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mtaout-mb05.r1000.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id D3221E00009F for ; Sun, 6 Jun 2010 07:50:56 -0400 (EDT) Message-ID: <4C0B8B9B.5080206@netscape.net> Date: Sun, 06 Jun 2010 14:50:51 +0300 From: Kaya Saman User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit x-aol-global-disposition: G X-AOL-SCOLL-SCORE: 0:2:308430784:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d29454c0b8ba00b91 X-AOL-IP: 212.156.209.87 Subject: Torrentflux and Zabbix Apache Include files?? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 12:04:52 -0000 Hi guys, I am trying to migrate over from Linux to FreeBSD and although have been using BSD for a few months now I really enjoy it and it's amazing ability to be light yet powerful and secure at the same time. Not to mention the UFS2 and ZFS filesystems which knowing UFS and ZFS from Solaris really rock!! Now am a first time user for Zabbix which came highly recommended; but Torrentflux I have moved between Linux machines quite a bit without any problem. My issue for both of these ports is that I'm in need of configuring Apache Include config files for them but having no luck in doing so..... I'm not really used to the native BSD Apache config as with Linux the httpd.conf or apache2.conf file is very different (similar to case to Bind9 too). Anyhow, I decided to use my standard Linux config file: Alias /torrentflux /opt/torrentflux Options FollowSymLinks AllowOverride Limit DirectoryIndex index.php of which kept spitting out "Permission Denied" errors?? On first glimpse one can already see that the alias and Directory statements don't point to the port!! The ports path is /usr/local/www/data/tf. I have tried pointing it to the port but also get the same error?? The instance of Torrentflux in /opt is a migrated one from Linux. This is in the Apache error log file: [Sun Jun 06 14:41:07 2010] [error] [client 192.168.1.110] client denied by server configuration: /opt/torrentflux/ it doesn't really explain much at all...... apart from the client 192.168.1.110 which is a reverse proxy using Squid. I attempted to modify the file as I found a working Include file for use with Drupal5 which I also have on the system. So the modification is like so: Alias /torrentflux /opt DocumentRoot "/opt" Options FollowSymLinks AllowOverride Limit # AllowOverride None Order allow,deny Allow from all # # DirectoryIndex index.php # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps DirectoryIndex index.php index.html # Oh clump!!! Which I've just modded to /opt/torrentflux for the Alias and the same for the directive too.... I can't believe I missed that :-O It works now finally but is asking for a MySQL database instance which is easy!!! Few..... Now for Zabbix as I haven't got anywhere that actually gives the Apache config? I downloaded the PDF manual for it which doesn't actually even tell you which URL to go for the main page so how do I get that info or will I need to hack this one out like Torrentflux?? Thanks, Kaya