From owner-freebsd-questions@FreeBSD.ORG Mon Sep 1 12:55:29 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6666F3DC for ; Mon, 1 Sep 2014 12:55:29 +0000 (UTC) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E90B11839 for ; Mon, 1 Sep 2014 12:55:28 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id w7so5890763lbi.15 for ; Mon, 01 Sep 2014 05:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=HaIiFcHWNC+uvNDdexmyI5Kun/Y0LcyXQh/kwAPtSAo=; b=HwlFHOccLaaliJsgQB5922NDLc+/nEqjbNzV4QRkXrvz42gIX6XZR/Vfl5jWMUtFnW TXIA4k0CBk1nte8ud79w31x41zY/0Fo9LFdEikSHvqgKFk4OTgojwDsb4qad7n2qIr58 TTFzuEnZj2qbi7q0ivdhCr0cdKTj++y1Pja/AKIZt6CtuzIgOSghStFClXN63V4LbQdU SGkMFdUZAa75vHTReIEyJU+mI/ygKWfd+NWelRv1dMfim7qdov3FPS6H6ZeYKwNZ6JKH sKuIH8nF81UBO318JVLm8wmOk5bVn9N1/Kwz/wc4FM1TV4Vd8sHgYxWtR+TB7oMVQ9nx irAw== X-Received: by 10.112.149.36 with SMTP id tx4mr7979916lbb.79.1409576126609; Mon, 01 Sep 2014 05:55:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.70 with HTTP; Mon, 1 Sep 2014 05:55:06 -0700 (PDT) From: Monah Baki Date: Mon, 1 Sep 2014 08:55:06 -0400 Message-ID: Subject: CGI scripts not working To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 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 12:55:29 -0000 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? Thanks Monah