Mailing List Archive

Error while testing Examples files
Hi Folks
I am having RedHat9 & Apache2
I have installed Apache::ASP for mod_Perl I can view the website
index
and config pages but when I go to the Examples subdirectory I can
view
the pages with extensions .htm
but when requesting a (.asp) page I only get Error 500 (Internal
server rror) although I have added the paragraph
<Directory “var/www/html/asp/eg” >
Options FollowSymLinks
AllowOverride All
</Directory>
at the end of httpd.conf
I need a consultation also where in the httpd.conf file can I add
the paragraph
PerlModule Apache::ASP
<Files ~ (\.asp)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global .
PerlSetVar StateDir /tmp/asp
</Files>
I have placed it between <virtual host> </virtual host> and still
getting the same result

the error log file

[Tue May 11 13:55:18 2004] [error] [asp] [14921] [debug] RUN ASP (v2.
57) for /var/www/html/asp/eg/application.asp
[Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] call srand()
post fork
[Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] GlobalASA
package Apache::ASP::Demo
[Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
was not cached for __ASP__var_www_html_asp_eg__xxApache::ASP::Demo
[Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] compiling
global.asa Apache::ASP::Demo __ASP__var_www_html_asp_eg__xxApache::
ASP::Demo exists 1 - asp: Apache::ASP=HASH(0x84fa0bc); compiled:
HASH(0x85d06b4); exists: 1; package: Apache::ASP::Demo; - --- -
exists: 0; mtime: 0;
[Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
routines - Application_OnEnd: 1; Application_OnStart: 1;
Script_OnEnd:
1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1;
Session_OnStart: 1;
[Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined
subroutine &Apache::ASP::InitState called at
/usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 418.!!Apache::ASP::
new('Apache::ASP','Apache::RequestRec=SCALAR(0x84f9f6c)',
'/var/www/html/asp/eg/application.asp') called at
/usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 181!!Apache::ASP::
handler('Apache::RequestRec=SCALAR(0x84f9f6c)') called at -e line 0!!
eval {...} called at -e line 0!, referer: http://ehab/asp/eg/index.
html
[Tue May 11 13:55:21 2004] [error] [asp] [14921] [debug] destroying
ASP object Apache::ASP=HASH(0x84fa0bc)


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Error while testing Examples files [ In reply to ]
Hi E.,

just a rough guess: is your state directory "/tmp/asp" writable and
readable by apache?
(or has mode 0777 for a try)


Helmut

--On Tuesday, May 11, 2004 11:12:19 +0000 e_elmaraghy
<e_elmaraghy@yahoo.com> wrote:

> Hi Folks
> I am having RedHat9 & Apache2
> I have installed Apache::ASP for mod_Perl I can view the website
> index
> and config pages but when I go to the Examples subdirectory I can
> view
> the pages with extensions .htm
> but when requesting a (.asp) page I only get Error 500 (Internal
> server rror) although I have added the paragraph
> <Directory “var/www/html/asp/eg” >
> Options FollowSymLinks
> AllowOverride All
> </Directory>
> at the end of httpd.conf
> I need a consultation also where in the httpd.conf file can I add
> the paragraph
> PerlModule Apache::ASP
> <Files ~ (\.asp)>
> SetHandler perl-script
> PerlHandler Apache::ASP
> PerlSetVar Global .
> PerlSetVar StateDir /tmp/asp
> </Files>
> I have placed it between <virtual host> </virtual host> and still
> getting the same result
>
> the error log file
>
> [Tue May 11 13:55:18 2004] [error] [asp] [14921] [debug] RUN ASP (v2.
> 57) for /var/www/html/asp/eg/application.asp
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] call srand()
> post fork
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] GlobalASA
> package Apache::ASP::Demo
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
> was not cached for __ASP__var_www_html_asp_eg__xxApache::ASP::Demo
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] compiling
> global.asa Apache::ASP::Demo __ASP__var_www_html_asp_eg__xxApache::
> ASP::Demo exists 1 - asp: Apache::ASP=HASH(0x84fa0bc); compiled:
> HASH(0x85d06b4); exists: 1; package: Apache::ASP::Demo; - --- -
> exists: 0; mtime: 0;
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
> routines - Application_OnEnd: 1; Application_OnStart: 1;
> Script_OnEnd:
> 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1;
> Session_OnStart: 1;
> [Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined
> subroutine &Apache::ASP::InitState called at
> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 418.!!Apache::ASP::
> new('Apache::ASP','Apache::RequestRec=SCALAR(0x84f9f6c)',
> '/var/www/html/asp/eg/application.asp') called at
> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 181!!Apache::ASP::
> handler('Apache::RequestRec=SCALAR(0x84f9f6c)') called at -e line 0!!
> eval {...} called at -e line 0!, referer: http://ehab/asp/eg/index.
> html
> [Tue May 11 13:55:21 2004] [error] [asp] [14921] [debug] destroying
> ASP object Apache::ASP=HASH(0x84fa0bc)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Error while testing Examples files [ In reply to ]
e_elmaraghy wrote:
>
> [Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined
> subroutine &Apache::ASP::InitState called at
> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 418.!!Apache::ASP::
> new('Apache::ASP','Apache::RequestRec=SCALAR(0x84f9f6c)',
> '/var/www/html/asp/eg/application.asp') called at
> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 181!!Apache::ASP::
> handler('Apache::RequestRec=SCALAR(0x84f9f6c)') called at -e line 0!!
> eval {...} called at -e line 0!, referer: http://ehab/asp/eg/index.
> html
> [Tue May 11 13:55:21 2004] [error] [asp] [14921] [debug] destroying
> ASP object Apache::ASP=HASH(0x84fa0bc)
>

From this error, it looks like Apache::ASP was not installed completely.

What was the output when you installed Apache::ASP with the "make test"
portion of it? In particular, I do not think the file Apache::ASP::StateManager
got loaded correctly. Also, what happened when you did "make install" ?
I would try reinstalling all over again the Apache::ASP stuff.

Regards,

Josh

________________________________________________________________________
Josh Chamas, Founder | NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com | Apache::ASP - http://www.apache-asp.org



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Error while testing Examples files [ In reply to ]
Hi,

i guessed, that is has to do with the state management because of

..
>> [Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined
>> subroutine &Apache::ASP::InitState called at
..

Does it work if you disable session and application state at all by

PerlSetVar NoState 1

(if you allready didn't) ?

Helmut

--On Wednesday, May 12, 2004 09:54:17 +0200 Ehab El Maraghy
<e_elmaraghy@yahoo.com> wrote:

> Helmut
> Guten Morgen
> First of all I want to thank you for prompt response.
> I have checked /tmp/asp permissions, they were 755 I have changed it to
> 777 and tested
> same result (Error 500 Internal Server Error)
> Any other suggestions??
>
>
>
>
>
>
>
>
>
>
> ----- Original Message -----
> From: "Helmut Zeilinger" <hz@hzlabs.de>
> To: "e_elmaraghy" <e_elmaraghy@yahoo.com>; <asp@perl.apache.org>
> Sent: Wednesday, May 12, 2004 7:46 AM
> Subject: Re: Error while testing Examples files
>
>
> Hi E.,
>
> just a rough guess: is your state directory "/tmp/asp" writable and
> readable by apache?
> (or has mode 0777 for a try)
>
>
> Helmut
>
> --On Tuesday, May 11, 2004 11:12:19 +0000 e_elmaraghy
> <e_elmaraghy@yahoo.com> wrote:
>
>> Hi Folks
>> I am having RedHat9 & Apache2
>> I have installed Apache::ASP for mod_Perl I can view the website
>> index
>> and config pages but when I go to the Examples subdirectory I can
>> view
>> the pages with extensions .htm
>> but when requesting a (.asp) page I only get Error 500 (Internal
>> server rror) although I have added the paragraph
>> <Directory â?ovar/www/html/asp/egâ? >
>> Options FollowSymLinks
>> AllowOverride All
>> </Directory>
>> at the end of httpd.conf
>> I need a consultation also where in the httpd.conf file can I add
>> the paragraph
>> PerlModule Apache::ASP
>> <Files ~ (\.asp)>
>> SetHandler perl-script
>> PerlHandler Apache::ASP
>> PerlSetVar Global .
>> PerlSetVar StateDir /tmp/asp
>> </Files>
>> I have placed it between <virtual host> </virtual host> and still
>> getting the same result
>>
>> the error log file
>>
>> [Tue May 11 13:55:18 2004] [error] [asp] [14921] [debug] RUN ASP (v2.
>> 57) for /var/www/html/asp/eg/application.asp
>> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] call srand()
>> post fork
>> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] GlobalASA
>> package Apache::ASP::Demo
>> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
>> was not cached for __ASP__var_www_html_asp_eg__xxApache::ASP::Demo
>> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] compiling
>> global.asa Apache::ASP::Demo __ASP__var_www_html_asp_eg__xxApache::
>> ASP::Demo exists 1 - asp: Apache::ASP=HASH(0x84fa0bc); compiled:
>> HASH(0x85d06b4); exists: 1; package: Apache::ASP::Demo; - --- -
>> exists: 0; mtime: 0;
>> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
>> routines - Application_OnEnd: 1; Application_OnStart: 1;
>> Script_OnEnd:
>> 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1;
>> Session_OnStart: 1;
>> [Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined
>> subroutine &Apache::ASP::InitState called at
>> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 418.!!Apache::ASP::
>> new('Apache::ASP','Apache::RequestRec=SCALAR(0x84f9f6c)',
>> '/var/www/html/asp/eg/application.asp') called at
>> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 181!!Apache::ASP::
>> handler('Apache::RequestRec=SCALAR(0x84f9f6c)') called at -e line 0!!
>> eval {...} called at -e line 0!, referer: http://ehab/asp/eg/index.
>> html
>> [Tue May 11 13:55:21 2004] [error] [asp] [14921] [debug] destroying
>> ASP object Apache::ASP=HASH(0x84fa0bc)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
>> For additional commands, e-mail: asp-help@perl.apache.org
>>
>>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: Error while testing Examples files [ In reply to ]
Helmut
Guten Morgen
First of all I want to thank you for prompt response.
I have checked /tmp/asp permissions, they were 755 I have changed it to 777
and tested
same result (Error 500 Internal Server Error)
Any other suggestions??










----- Original Message -----
From: "Helmut Zeilinger" <hz@hzlabs.de>
To: "e_elmaraghy" <e_elmaraghy@yahoo.com>; <asp@perl.apache.org>
Sent: Wednesday, May 12, 2004 7:46 AM
Subject: Re: Error while testing Examples files


Hi E.,

just a rough guess: is your state directory "/tmp/asp" writable and
readable by apache?
(or has mode 0777 for a try)


Helmut

--On Tuesday, May 11, 2004 11:12:19 +0000 e_elmaraghy
<e_elmaraghy@yahoo.com> wrote:

> Hi Folks
> I am having RedHat9 & Apache2
> I have installed Apache::ASP for mod_Perl I can view the website
> index
> and config pages but when I go to the Examples subdirectory I can
> view
> the pages with extensions .htm
> but when requesting a (.asp) page I only get Error 500 (Internal
> server rror) although I have added the paragraph
> <Directory â?ovar/www/html/asp/egâ? >
> Options FollowSymLinks
> AllowOverride All
> </Directory>
> at the end of httpd.conf
> I need a consultation also where in the httpd.conf file can I add
> the paragraph
> PerlModule Apache::ASP
> <Files ~ (\.asp)>
> SetHandler perl-script
> PerlHandler Apache::ASP
> PerlSetVar Global .
> PerlSetVar StateDir /tmp/asp
> </Files>
> I have placed it between <virtual host> </virtual host> and still
> getting the same result
>
> the error log file
>
> [Tue May 11 13:55:18 2004] [error] [asp] [14921] [debug] RUN ASP (v2.
> 57) for /var/www/html/asp/eg/application.asp
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] call srand()
> post fork
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] GlobalASA
> package Apache::ASP::Demo
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
> was not cached for __ASP__var_www_html_asp_eg__xxApache::ASP::Demo
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] compiling
> global.asa Apache::ASP::Demo __ASP__var_www_html_asp_eg__xxApache::
> ASP::Demo exists 1 - asp: Apache::ASP=HASH(0x84fa0bc); compiled:
> HASH(0x85d06b4); exists: 1; package: Apache::ASP::Demo; - --- -
> exists: 0; mtime: 0;
> [Tue May 11 13:55:19 2004] [error] [asp] [14921] [debug] global.asa
> routines - Application_OnEnd: 1; Application_OnStart: 1;
> Script_OnEnd:
> 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1;
> Session_OnStart: 1;
> [Tue May 11 13:55:19 2004] [error] [client 127.0.0.1] Undefined
> subroutine &Apache::ASP::InitState called at
> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 418.!!Apache::ASP::
> new('Apache::ASP','Apache::RequestRec=SCALAR(0x84f9f6c)',
> '/var/www/html/asp/eg/application.asp') called at
> /usr/lib/perl5/site_perl/5.8.0/Apache/ASP.pm line 181!!Apache::ASP::
> handler('Apache::RequestRec=SCALAR(0x84f9f6c)') called at -e line 0!!
> eval {...} called at -e line 0!, referer: http://ehab/asp/eg/index.
> html
> [Tue May 11 13:55:21 2004] [error] [asp] [14921] [debug] destroying
> ASP object Apache::ASP=HASH(0x84fa0bc)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org