From owner-freebsd-questions@FreeBSD.ORG Mon Sep 1 13:54:53 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25109817 for ; Mon, 1 Sep 2014 13:54:53 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2ED91E7F for ; Mon, 1 Sep 2014 13:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=vxjs/H3HelbsV3QKD63NtttAq79rr5VTPubVw06AOiE=; b=J9LHskVt2H57Ayk/s0ocbnhiK42CM7aq4wyZPkksU+ezB35k3VPDXTdFnkKnIdZmK/mHzWopLqa9h5RhmHy+GjWOhOWZ6qpWNWvW7JWEvDK3x257zk+2G9LUlTgDevvwqDI4YhfNY/tIhyuLKEOfxaOU+BaS3qX0p9u/VelMsU4=; Received: from [182.5.108.20] (port=27976 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XOS4D-0018r3-C5; Mon, 01 Sep 2014 07:54:46 -0600 Date: Mon, 1 Sep 2014 21:54:39 +0800 From: Erich Dollansky To: Monah Baki Subject: Re: CGI scripts not working Message-ID: <20140901215439.1fc94abb@X220.alogt.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2014 13:54:53 -0000 Hi, On Mon, 1 Sep 2014 08:55:06 -0400 Monah Baki wrote: > Hi all, > > I installed on FreeBSD 9.3 apache 2.4 from ports > > I am trying to run the following test script located in > /home/ipaudit/public_html/cgi-bin/test > > #!/usr/bin/perl -w > print "Content-type: text/html\r\n\r\n"; > print "Hello there!
\nJust testing .
\n"; > for ($i=0; $i<35; $i++) > { > print $i."
"; > } > > All I get is the script itself and not the output. My httpd-error.log > shows no error > > > > Here is what I have in my httpd.conf > > ScriptAlias /cgi-bin/ "/usr/home/ipaudit/public_html/cgi-bin/" > > > AllowOverride None > # Options None > Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch > Order allow,deny > Allow from all > Require all granted > > > AddHandler cgi-script .cgi > > ls -la /home/ip[audit/public_html/cgi-bin > drwxr-xr-x 2 root wheel 512 Sep 1 07:55 cgi-bin > > and > > -rwxr-xr-x 1 ipaudit ipaudit 165 Sep 1 08:31 test > > > > Here is what I have in my httpd-userdir.conf > > UserDir public_html > > > AllowOverride FileInfo AuthConfig Limit Indexes > Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec > Require method GET POST OPTIONS > > > > > > Am I missing anything else? > maybe this line: LoadModule cgi_module libexec/apache22/mod_cgi.so Erich > > > Thanks > Monah > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"