RE: ASP Win32 problems

2001-04-02 Thread George A. Fitch III


It works fine. I had assigned setting in the
httpd.conf file, but I failed to notice the 
.htaccess file in the eg/ directory. So no
matter what I set in httpd.conf, the .htaccess
file overrid everything.

I figured this out when I did a file containing
text search for
   PerlSetVar StateDir  /tmp/asp_demo
in the entire apache directory upon your 
suggestion.

Thanks for the help,

Gaf

> -Original Message-
> From: Joshua Chamas [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 02, 2001 4:51 PM
> To: George A. Fitch III
> Cc: [EMAIL PROTECTED]
> Subject: Re: ASP Win32 problems
> 
> 
> You probably solved the particular problem below by changing:
> 
>   PerlSetVar StateDir  /tmp/asp_demo
> 
> to a real directory on your system.  On win32 platforms
> /temp/asp_demo should work pretty well too.
> 
> Now that you changed that setting what does your error log
> give you?
> 
> --Josh
> 
> "George A. Fitch III" wrote:
> > 
> > Hi,
> > 
> > I installed mod_perl and Apache::ASP on WinNT, and the sample .htm
> > files work fine. I can't seem to get the sample .asp files 
> to work, though.
> > I checked the error log and saw these errors:
> > 
> > [Mon Apr 02 15:52:04 2001] [error] [asp] [174] [error] 
> can't create group
> > dir /tmp/asp_demo: No such file or directory,
> > G:/nusphere/perl/site/lib/Apache/ASP.pm line 4585
> > [Mon Apr 02 15:52:04 2001] [error] [asp] [174] [error] 
> can't create group
> > dir /tmp/asp_demo/server: No such file or directory,
> > G:/nusphere/perl/site/lib/Apache/ASP.pm line 4585
> > [Mon Apr 02 15:52:04 2001] [error] [asp] [174] [error] 
> Can't tie to file
> > /tmp/asp_demo/server/internal, 258, No such file or 
> directory !!  <--> Make
> > sure you have the permissions on the  <--> directory set 
> correctly, and that
> > your  <--> version of Data::Dumper is up to date.  <--> 
> Also, make sure you
> > have set Global to  <--> to a good directory in the config file.,
> > G:/nusphere/perl/site/lib/Apache/ASP.pm line 4669
> > [Mon Apr 02 15:52:04 2001] [error] Can't bless 
> non-reference value at
> > G:/nusphere/perl/site/lib/Apache/ASP.pm line 4887.
> > Apache::ASP::State::TIEHASH('Apache::ASP::State',
> > 'Apache::ASP=HASH(0x41962ac)', 'internal', 'server', 258) called at
> > G:/nusphere/perl/site/lib/Apache/ASP.pm line 664
> > Apache::ASP::new('Apache=SCALAR(0xb1a9f4)') called at
> > G:/nusphere/perl/site/lib/Apache/ASP.pm line 152
> > Apache::ASP::handler('Apache=SCALAR(0xb1a9f4)') 
> called at nul line 0
> > eval {...} called at nul line 0
> > 
> > So, it seems some directory is set to /tmp or /tmp/asp. Does
> > anyone know where this property is set. I went through the .htaccess
> > file and set al temp directories to G:/Temp, but it still 
> doesn't work.
> > 
> > Any help would be greatly appreciated,
> > 
> > Gaf
> 




ASP Win32 problems

2001-04-02 Thread George A. Fitch III


Hi,

I installed mod_perl and Apache::ASP on WinNT, and the sample .htm
files work fine. I can't seem to get the sample .asp files to work, though.
I checked the error log and saw these errors:

[Mon Apr 02 15:52:04 2001] [error] [asp] [174] [error] can't create group
dir /tmp/asp_demo: No such file or directory,
G:/nusphere/perl/site/lib/Apache/ASP.pm line 4585
[Mon Apr 02 15:52:04 2001] [error] [asp] [174] [error] can't create group
dir /tmp/asp_demo/server: No such file or directory,
G:/nusphere/perl/site/lib/Apache/ASP.pm line 4585
[Mon Apr 02 15:52:04 2001] [error] [asp] [174] [error] Can't tie to file
/tmp/asp_demo/server/internal, 258, No such file or directory !!  <--> Make
sure you have the permissions on the  <--> directory set correctly, and that
your  <--> version of Data::Dumper is up to date.  <--> Also, make sure you
have set Global to  <--> to a good directory in the config file.,
G:/nusphere/perl/site/lib/Apache/ASP.pm line 4669
[Mon Apr 02 15:52:04 2001] [error] Can't bless non-reference value at
G:/nusphere/perl/site/lib/Apache/ASP.pm line 4887.
Apache::ASP::State::TIEHASH('Apache::ASP::State',
'Apache::ASP=HASH(0x41962ac)', 'internal', 'server', 258) called at
G:/nusphere/perl/site/lib/Apache/ASP.pm line 664
Apache::ASP::new('Apache=SCALAR(0xb1a9f4)') called at
G:/nusphere/perl/site/lib/Apache/ASP.pm line 152
Apache::ASP::handler('Apache=SCALAR(0xb1a9f4)') called at nul line 0
eval {...} called at nul line 0

So, it seems some directory is set to /tmp or /tmp/asp. Does
anyone know where this property is set. I went through the .htaccess
file and set al temp directories to G:/Temp, but it still doesn't work.

Any help would be greatly appreciated,

Gaf




RE: conflicts between mod_perl and php4

2000-11-08 Thread George A. Fitch III


Hmmm, maybe they're fighting over the named pipe. Maybe
you can get around it with your DBI $dsn. Try specifying
the mysql server with the network path (as opposed to
nothing or 'localhost') so it uses a tcp connection
instead of the named pipe.  It'll be slower if it works,
but that's better than nothing.

Gaf

-Original Message-
From: Andreas Gietl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 4:05 PM
To: [EMAIL PROTECTED]
Subject: conflicts between mod_perl and php4


Hi,

i also posted this on the mysql-list and on the phpdb-list!

i've got the following configuration:
apache_1.3.12 with php and mod_perl statically linked. Php has
compiled-in mysql-support and mod_perl of course uses DBI.

When i use a mod_perl-script that uses the DBI-Interface i get a
segfault, because php somehow blocks the connection.

I also tried to compile php with with-mysql=/path/to/mysql and that did
not solve my problem.
The only thing that helped me was compiling php w/o mysql, but that is
an incomplete configuration for me.

Do you have any suggestions?

thx

andreas
--
andreas gietl
gietl internet services
fon +49 9402 2551
fax +49 9402 2604
mobile +49 171 60 70 008
[EMAIL PROTECTED]


# Das Handbuch sagt, das Programm benötige #
#  Windows 95 oder besser. Also habe ich   #
#  Linux installiert!  #





Extreme Newbie Question

2000-11-01 Thread George A. Fitch III


Nevermind, after searching on altavista for a couple hours I found a page
that explained I had to use the #! notation (its not just for Unix anymore!)
The test script works fine now.

Gaf




Extreme Newbie Question

2000-11-01 Thread George A. Fitch III


Let me apologize in advance if this is covered on a FAQ somewhere,
or if this is the wrong place for this question.  I've looked on
the Apache web sites and in "Administering Apache" by Arnold,
Almeida, and Miller but no luck.

I'm just trying to get started with Apache and Perl on WinNT. I've
been using IIS (with Perl), and would like to switch to Apache.  I'm
having trouble with getting Perl CGIs to run.  I was able to get a basic
"Hello world" (compiled C) CGI working, but not a simple "Hello world"
Perl script.

When I try the script's URL I get:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.

In the error log I get:

(2)No such file or directory: couldn't spawn child process: g:/apache
group/apache/cgi-bin/test.pl

The file's there, and since a missing file generates a "Not found" message,
something else is going on. I suspect that Apache is trying to execute
test.pl as an executable, and doesn't know it should send test.pl to
Perl.exe.  So is there some sort of "Set Interpretter" function in
httpd.cnf I need to use? The only changes I made to httpd.cnf was to
set the admin email to my email. I decommented #AddModule mod_perl.c
but that caused Apache to refuse to start.

Any help would be greatly appreciated,

Gaf