<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: running .cgi and .pl scripts in Apache server in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571598#M920337</link>
    <description>Hi Denver,&lt;BR /&gt;&lt;BR /&gt;I did as per your suggestion but still not working.  I still see the "Index of /" page and then the listing of what I have in my Documentroot/htdocs dir.  However, this time I went to the link of one of the file and click to open, I got the "Forbidden:  you don't have permission to access /filename on this server" message - I had the permission for both dir. and files to be 755, the owner are "root" and the group is "sys" but still got the same message.  &lt;BR /&gt;&lt;BR /&gt;I went and type http://ip_address/cgi-bin/printenv at the browser it printout the environment var. OK.  I feel like I'm missing some steps after modifying the httpd.conf file thus enable me to execute any of my .html, .cgi and .pl scripts.&lt;BR /&gt;&lt;BR /&gt;Thi</description>
    <pubDate>Wed, 29 Aug 2001 17:57:02 GMT</pubDate>
    <dc:creator>Thi Vu</dc:creator>
    <dc:date>2001-08-29T17:57:02Z</dc:date>
    <item>
      <title>running .cgi and .pl scripts in Apache server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571596#M920335</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I just started the Apache web server on our D210 HP11.i server.  When I went to hhtp://ipaddress the default web page show up.  I think this is good; however I ran into a few problems when I tried to run my cgi and pl scripts for the site.  I did configure the httpd.conf file as follow:&lt;BR /&gt;&lt;BR /&gt;   1.  ScriptAlias /cgi-bin "/apache/cgi-bin/"&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;   Allowoverride None&lt;BR /&gt;   Options +ExecCGI&lt;BR /&gt;   Order allow,deny&lt;BR /&gt;   Allow from all&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;where /apache/cgi-bin/ is a file system that contains lots of the Html, Perl and CGI scripts for the site.&lt;BR /&gt;&lt;BR /&gt;   2.  I also modified:&lt;BR /&gt;   AddHandler cgi-script .cgi .pl&lt;BR /&gt;&lt;BR /&gt;After the above I restart the server and went to the web to check if my .html, .cgi and .pl files are run - all I see is the Apache's default page.  The permission on all the files are 755.  I'm so desperate that I even remove my "ScriptAlias" setting and links the default setting to my scripts' file system - no result.  I also try to move all of my scripts to the /opt/apache/htdocs dir - all it shows on the web page is as followed:&lt;BR /&gt;&lt;BR /&gt; Name                    Last modified       Size  Description&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt; Parent Directory        04-Apr-2001 11:24      -  &lt;BR /&gt; bw6.img                 27-Aug-2001 15:02  26.8M  &lt;BR /&gt; contact.html            27-Aug-2001 15:03     1k  &lt;BR /&gt; default.html            27-Aug-2001 15:03     1k  &lt;BR /&gt; help.html               27-Aug-2001 15:03     3k  &lt;BR /&gt; info.cgi                28-Aug-2001 15:06     1k  &lt;BR /&gt; menu.cgi                28-Aug-2001 15:06     6k  &lt;BR /&gt; temp/                   28-Aug-2001 17:24      -  &lt;BR /&gt; title.html              27-Aug-2001 15:03     1k  &lt;BR /&gt; top_menu.cgi            28-Aug-2001 15:06     3k  &lt;BR /&gt;&lt;BR /&gt;Can someone please help.  Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Thi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Aug 2001 21:05:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571596#M920335</guid>
      <dc:creator>Thi Vu</dc:creator>
      <dc:date>2001-08-28T21:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: running .cgi and .pl scripts in Apache server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571597#M920336</link>
      <description>Use the following changes to your httpd.conf file;&lt;BR /&gt;&lt;BR /&gt;ScriptAlias /cgi-bin/ "/apache/cgi-bin/" &lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORY&gt; &lt;BR /&gt;Allowoverride None &lt;BR /&gt;Options None&lt;BR /&gt;Order allow,deny &lt;BR /&gt;Allow from all &lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;To test;&lt;BR /&gt;# cp -p /opt/apache/cgi-bin/printenv /apache/cgi-bin&lt;BR /&gt;&lt;BR /&gt;# vi /apache/cgi-bin/printenv&lt;BR /&gt;-&amp;gt;make change to perl location if needed&lt;BR /&gt;&lt;BR /&gt;from browser&lt;BR /&gt;http://ip_address/cgi-bin/printenv&lt;BR /&gt;&lt;BR /&gt;I think you'll be good to go after making changes to your httpd.conf.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Wed, 29 Aug 2001 04:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571597#M920336</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2001-08-29T04:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: running .cgi and .pl scripts in Apache server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571598#M920337</link>
      <description>Hi Denver,&lt;BR /&gt;&lt;BR /&gt;I did as per your suggestion but still not working.  I still see the "Index of /" page and then the listing of what I have in my Documentroot/htdocs dir.  However, this time I went to the link of one of the file and click to open, I got the "Forbidden:  you don't have permission to access /filename on this server" message - I had the permission for both dir. and files to be 755, the owner are "root" and the group is "sys" but still got the same message.  &lt;BR /&gt;&lt;BR /&gt;I went and type http://ip_address/cgi-bin/printenv at the browser it printout the environment var. OK.  I feel like I'm missing some steps after modifying the httpd.conf file thus enable me to execute any of my .html, .cgi and .pl scripts.&lt;BR /&gt;&lt;BR /&gt;Thi</description>
      <pubDate>Wed, 29 Aug 2001 17:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571598#M920337</guid>
      <dc:creator>Thi Vu</dc:creator>
      <dc:date>2001-08-29T17:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: running .cgi and .pl scripts in Apache server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571599#M920338</link>
      <description>Looks fine to me.&lt;BR /&gt;&lt;BR /&gt;Are you using for the request&lt;BR /&gt;http://ipaddress/cgi-bin/script.whatever&lt;BR /&gt;&lt;BR /&gt;or just &lt;BR /&gt;http://ipaddress&lt;BR /&gt;&lt;BR /&gt;You only get the default page with using the last example.</description>
      <pubDate>Wed, 29 Aug 2001 19:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571599#M920338</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-08-29T19:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: running .cgi and .pl scripts in Apache server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571600#M920339</link>
      <description>I have a perl test that I put in there.&lt;BR /&gt;cat /opt/apache/lib/cgi-bin/perl-test&lt;BR /&gt;&lt;BR /&gt;#!/opt/perl5/bin/perl&lt;BR /&gt;&lt;BR /&gt;print "Content-type: text/html\n\n";&lt;BR /&gt;print "test"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;permissions on the file are 755&lt;BR /&gt;the 3 lines are needed including the blank line&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 19:43:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571600#M920339</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-08-29T19:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: running .cgi and .pl scripts in Apache server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571601#M920340</link>
      <description>Check the contents of the errorlog.  Its location&lt;BR /&gt;is specifed by the ErrorLog entry in httpd.conf.&lt;BR /&gt;&lt;BR /&gt;It should have more details on why you are being &lt;BR /&gt;denied access to files. &lt;BR /&gt;&lt;BR /&gt;Check the access entries in httpd.conf.  Restrictions&lt;BR /&gt;can be applied to Directory, File, DirectoryMatch, &lt;BR /&gt;or Location. Make sure you don't something &lt;BR /&gt;locking access to the files. &lt;BR /&gt;&lt;BR /&gt;The first directory specification in the httpd.conf should&lt;BR /&gt;point to your document root.  This usually has quite&lt;BR /&gt;generous access rights.  &lt;BR /&gt;&lt;BR /&gt;If you still have problems check the security_tips.html&lt;BR /&gt;file on your server or at &lt;BR /&gt;&lt;A href="http://httpd.apache.org/docs/misc/security_tips.html" target="_blank"&gt;http://httpd.apache.org/docs/misc/security_tips.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I usually set up an alias to apache available to the &lt;BR /&gt;local site to access the documentation pages.  Also&lt;BR /&gt;use RCS check-in check-out to mantain version control&lt;BR /&gt;on your configuration files.  It has bailed me out a &lt;BR /&gt;couple of times.</description>
      <pubDate>Wed, 29 Aug 2001 22:25:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571601#M920340</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2001-08-29T22:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: running .cgi and .pl scripts in Apache server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571602#M920341</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;Thank you all for your help.  I finally fingured out why the HP/Apache default page show up after I set up the Apache server when I typed this http://ipaddress at the browser.  The answer lies in the IndexDirective; under that directive in the httpd.conf file you can specified which file to execute first when someone go into your webpage.  The default setting from httpd.conf file is the file name call Index.html under /opt/apache/htdocs directory.  You can change to whatever file you want in the IndexDirective and it works like a charm.&lt;BR /&gt;&lt;BR /&gt;Again thank you all for all the help in the past.&lt;BR /&gt;&lt;BR /&gt;Thi&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Sep 2001 14:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-cgi-and-pl-scripts-in-apache-server/m-p/2571602#M920341</guid>
      <dc:creator>Thi Vu</dc:creator>
      <dc:date>2001-09-13T14:21:30Z</dc:date>
    </item>
  </channel>
</rss>

