Bizarre problem running CGI script

Bizarre problem running CGI script

am 05.09.2009 23:30:26 von p0cyan402

I'm ready to tear my hair out!!!

Here is one conf file:

=============

ServerAdmin webmaster@localhost
# ServerName www.LittleRedRidingHood.info
ServerName lrrh.dlugosz.com
ServerAlias lrrh.lamp4
DocumentRoot /var/www/lrrh/docroot
ErrorLog /var/www/lrrh/logs/error_log
CustomLog /var/www/lrrh/logs/access_log combined


AllowOverride None
Order allow,deny
allow from all
AddHandler cgi-script .pl
Options +ExecCGI




Deny from all



SetHandler perl-script
PerlHandler Apache2::Status



==============

Here is another conf file:

==============

ServerAdmin webmaster@localhost
ServerName wiki.dlugosz.com
ServerAlias wiki.lamp4
DocumentRoot /var/www/wiki/docroot
ErrorLog /var/www/wiki/logs/error_log
CustomLog /var/www/wiki/logs/access_log combined



AllowOverride None
Order allow,deny
allow from all
AddHandler cgi-script .pl
Options +ExecCGI



Deny from all



SetHandler perl-script
PerlHandler Apache2::Status





=============

This is Apache 2.2.3 running on Debian Etch 64-bit.
The permissions and owner/group on the respective docroot directories
are the same.
A minmal file "first.pl" copied right from the Apache manual, given
execute permission, is placed in the docroot directory. It is copied to
the other.

One works, one doesn't.

Why?

I'm running this on a LAN clone of the server, so my test is using the
ServerAlias name for both. The one that doesn't work will download the
file in the browser, rather than running it.

There is nothing in the global file (apache2.conf) that mentions either
of these, so the settings that are right for one should be right for the
other, right?


The log shows "200" when the file is downloaded (not run), and there is
nothing in the error log.
Is there any way to tell what Apache is thinking when it decides how to
handle a request?

TIA,
--John




------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Bizarre problem running CGI script

am 06.09.2009 00:03:18 von Frank Gingras

You should post your question again, perhaps someone will answer it this
time!

Frank.

John M. Dlugosz wrote:
> I'm ready to tear my hair out!!!
>
> Here is one conf file:
>
> =============
>
> ServerAdmin webmaster@localhost
> # ServerName www.LittleRedRidingHood.info
> ServerName lrrh.dlugosz.com
> ServerAlias lrrh.lamp4
> DocumentRoot /var/www/lrrh/docroot
> ErrorLog /var/www/lrrh/logs/error_log
> CustomLog /var/www/lrrh/logs/access_log combined
>
>
> AllowOverride None
> Order allow,deny
> allow from all
> AddHandler cgi-script .pl
> Options +ExecCGI
>

>
>
>
> Deny from all
>

>
>
> SetHandler perl-script
> PerlHandler Apache2::Status
>

>

>
> ==============
>
> Here is another conf file:
>
> ==============
>
> ServerAdmin webmaster@localhost
> ServerName wiki.dlugosz.com
> ServerAlias wiki.lamp4
> DocumentRoot /var/www/wiki/docroot
> ErrorLog /var/www/wiki/logs/error_log
> CustomLog /var/www/wiki/logs/access_log combined
>
>
>
> AllowOverride None
> Order allow,deny
> allow from all
> AddHandler cgi-script .pl
> Options +ExecCGI
>

>
>
> Deny from all
>

>
>
> SetHandler perl-script
> PerlHandler Apache2::Status
>

>
>
>

>
> =============
>
> This is Apache 2.2.3 running on Debian Etch 64-bit.
> The permissions and owner/group on the respective docroot directories
> are the same.
> A minmal file "first.pl" copied right from the Apache manual, given
> execute permission, is placed in the docroot directory. It is copied to
> the other.
>
> One works, one doesn't.
>
> Why?
>
> I'm running this on a LAN clone of the server, so my test is using the
> ServerAlias name for both. The one that doesn't work will download the
> file in the browser, rather than running it.
>
> There is nothing in the global file (apache2.conf) that mentions either
> of these, so the settings that are right for one should be right for the
> other, right?
>
>
> The log shows "200" when the file is downloaded (not run), and there is
> nothing in the error log.
> Is there any way to tell what Apache is thinking when it decides how to
> handle a request?
>
> TIA,
> --John
>
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Bizarre problem running CGI script

am 06.09.2009 00:07:09 von p0cyan402

Frank Gingras francois.gingras-at-gmail.com |Apache mailing list| wrote:
> You should post your question again, perhaps someone will answer it
> this time!
>

Why?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Bizarre problem running CGI script

am 06.09.2009 04:44:41 von Doug McNutt

At 17:07 -0500 9/5/09, John M. Dlugosz wrote:
>Frank Gingras francois.gingras-at-gmail.com |Apache mailing list| wrote:
>> You should post your question again, perhaps someone will answer it this time!
>>
>
>Why?

He's trying to be funny. I got two copies of your last. 2 hours and 27 minutes apart.

The headers indicate it happened at your end and not the list.
--
--> So are we going to celebrate the start of a new decade at the end of this year? Or do the tens start at in January 2011? <--

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Bizarre problem running CGI script

am 06.09.2009 04:51:26 von p0cyan402

Doug McNutt douglist-at-macnauchtan.com |Apache mailing list| wrote:
> He's trying to be funny. I got two copies of your last. 2 hours and 27 minutes apart.
>
> The headers indicate it happened at your end and not the list.
>

Sorry about that. I subscribed and then went to bed. I found two
"confirm" messages the next day, and Reply'ed to the first. A few
minutes later I sent the message. Later, with no traffic, not even a
welcome message, I figured something was wrong. I noticed that the two
confirm messages had different keys, so I did the latest. After getting
the Welcome message, I sent my message (again), since I thought that the
list did not take posts from unsubscribed users. I guess it hung onto
it, even though I didn't "see" it once I started getting list traffic.

--John

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Bizarre problem running CGI script

am 06.09.2009 17:40:42 von Jonesy

On Sat, 05 Sep 2009 17:07:09 -0500, John M. Dlugosz wrote:
> Frank Gingras francois.gingras-at-gmail.com |Apache mailing list| wrote:
>> You should post your question again, perhaps someone will answer it
>> this time!
>
> Why?

WHMTS: "You should post your question a third time, ...."

Clever and cute don't always come through clearly in a digital world.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org