Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ASP

Can not run asp.

 

 

ModPerl asp RSS feed   Index | Next | Previous | View Threaded


rsomsak at mor-or

Sep 8, 2001, 7:06 AM

Post #1 of 4 (1967 views)
Permalink
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 [at] perl
For additional commands, e-mail: asp-help [at] perl


joshua at chamas

Sep 8, 2001, 1:11 PM

Post #2 of 4 (1927 views)
Permalink
Re: Can not run asp. [In reply to]

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 [at] perl
For additional commands, e-mail: asp-help [at] perl


rsomsak at mor-or

Sep 9, 2001, 8:20 AM

Post #3 of 4 (1921 views)
Permalink
Re: Can not run asp. [In reply to]

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.
Attachments: perl-make.txt (1.18 KB)
  make-test.txt (0.89 KB)


joshua at chamas

Sep 10, 2001, 12:02 AM

Post #4 of 4 (1936 views)
Permalink
Re: Can not run asp. [In reply to]

> 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 [at] perl
For additional commands, e-mail: asp-help [at] perl

ModPerl asp RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.