You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Somsak RAKTHAI <rs...@mor-or.pn.psu.ac.th> on 2001/09/08 16:06:45 UTC

Can not run asp.

Dear member,
  I used Apache-ASP-2.21, mod_perl-1.26, apache_1.3.20, openssl-0.9.6
mod_ssl-2.8.4-1.3.20 running on Red-Hat-7.1 Linux.
  I used script "build_httpds.sh" in "Apache-ASP-2.21/make_httpd"
to install that can install success.
  I config httpd.conf below.

<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>

AllowOverride All

  And I copy all file in ./site/eg include ".htaccess" from
"Apache-ASP-2.21" to "/usr/local/apache/htdocs".
  But I can not run any ASP file in "/usr/local/apache/htdocs/site/eg".
  It has error message "Internal Server Error" on my browser.
  In error_log have message below.

[Sat Sep  8 20:55:50 2001] [error] Undefined subroutine &Apache::ASP::handler

  Please let me know how to solve this problem.
Please let me now more detail because it is the first time for me
to install Apache-ASP.
	       thank you very much.
	           regards,
	           Somsak.


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


Re: Can not run asp.

Posted by Joshua Chamas <jo...@chamas.com>.
> Dear sir,
>   I follow you but still problem. I follow below.
> 
> (1) perl Makefile.PL APACHE_SRC=../apache_1.3.20/src \
>     NO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
> (2) make
> (3) make test
> (4) make install
> 
> When use choice (1), it has messages show in "perl-make.txt".
> When use "make test" (choice (3)), messages show in "make-test.txt".
> 
> And then I follow below.
> 
> cd ../apache_1.3.20
> ./configure \
>     --prefix=/usr/local/apache \
>     --activate-module=src/modules/perl/libperl.a
> 
>   And config "PerlModule Apache::ASP" in httpd.conf. (line 979)
> 
>   When use command "/usr/local/apache/bin/apachectl start",
> it has messages below.
> 
> Syntax error on line 979 of /usr/local/apache/conf/httpd.conf:
> Can't locate Apache/ASP.pm in @INC (@INC contains:

The above perl Makefile.PL commands need to be done
for the Apache::ASP module in particular too, so while 
you are in Apache-ASP-2.21 directory run:

  perl Makefile.PL
  make test
  make install

The above commands looks like what you would do to 
build mod_perl, so I make the distinction.

If this works, then you should be able to run

 perl -MApache::ASP -e ''

with no error.  This is just to test if Apache::ASP
will load in your perl installation.  Hopefully then
you can start your apache without errors.

--Josh

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


Re: Can not run asp.

Posted by Somsak RAKTHAI <rs...@mor-or.pn.psu.ac.th>.

On Sat, 8 Sep 2001, Joshua Chamas wrote:

> Somsak RAKTHAI wrote:
> >
> > Dear member,
> >   I used Apache-ASP-2.21, mod_perl-1.26, apache_1.3.20, openssl-0.9.6
> > mod_ssl-2.8.4-1.3.20 running on Red-Hat-7.1 Linux.
> >   I used script "build_httpds.sh" in "Apache-ASP-2.21/make_httpd"
> > to install that can install success.
> >   I config httpd.conf below.
> >
> > <Directory />
> >     Options FollowSymLinks
> >     AllowOverride All
> > </Directory>
> >
> > AllowOverride All
> >
> >   And I copy all file in ./site/eg include ".htaccess" from
> > "Apache-ASP-2.21" to "/usr/local/apache/htdocs".
> >   But I can not run any ASP file in "/usr/local/apache/htdocs/site/eg".
> >   It has error message "Internal Server Error" on my browser.
> >   In error_log have message below.
> >
> > [Sat Sep  8 20:55:50 2001] [error] Undefined subroutine &Apache::ASP::handler
> >
>
> Make sure you also install Apache::ASP as a perl module,
> with perl Makefile.PL; make test; make install
>
> Then also make sure to stop/start apache, which is important
> to do whenever you do a major perl module installation.
>
> Later on, when performance tuning, make sure to add
> PerlModule Apache::ASP to your httpd.conf.
>
> --Josh
>

Dear sir,
  I follow you but still problem. I follow below.

(1) perl Makefile.PL APACHE_SRC=../apache_1.3.20/src \
    NO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
(2) make
(3) make test
(4) make install

When use choice (1), it has messages show in "perl-make.txt".
When use "make test" (choice (3)), messages show in "make-test.txt".

And then I follow below.

cd ../apache_1.3.20
./configure \
    --prefix=/usr/local/apache \
    --activate-module=src/modules/perl/libperl.a

  And config "PerlModule Apache::ASP" in httpd.conf. (line 979)

  When use command "/usr/local/apache/bin/apachectl start",
it has messages below.

Syntax error on line 979 of /usr/local/apache/conf/httpd.conf:
Can't locate Apache/ASP.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-li
nux /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .
/usr/local/apache/ /usr/local/apache/lib/perl) at (eval 3) line 3.

  Please let me know how to solve this problem.
	    thank you very much.
	         regards,
	         Somsak.

Re: Can not run asp.

Posted by Joshua Chamas <jo...@chamas.com>.
Somsak RAKTHAI wrote:
> 
> Dear member,
>   I used Apache-ASP-2.21, mod_perl-1.26, apache_1.3.20, openssl-0.9.6
> mod_ssl-2.8.4-1.3.20 running on Red-Hat-7.1 Linux.
>   I used script "build_httpds.sh" in "Apache-ASP-2.21/make_httpd"
> to install that can install success.
>   I config httpd.conf below.
> 
> <Directory />
>     Options FollowSymLinks
>     AllowOverride All
> </Directory>
> 
> AllowOverride All
> 
>   And I copy all file in ./site/eg include ".htaccess" from
> "Apache-ASP-2.21" to "/usr/local/apache/htdocs".
>   But I can not run any ASP file in "/usr/local/apache/htdocs/site/eg".
>   It has error message "Internal Server Error" on my browser.
>   In error_log have message below.
> 
> [Sat Sep  8 20:55:50 2001] [error] Undefined subroutine &Apache::ASP::handler
> 

Make sure you also install Apache::ASP as a perl module,
with perl Makefile.PL; make test; make install

Then also make sure to stop/start apache, which is important
to do whenever you do a major perl module installation.

Later on, when performance tuning, make sure to add
PerlModule Apache::ASP to your httpd.conf.

--Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

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