
DrZed
User
Jun 19, 2000, 12:04 PM
Post #6 of 8
(19226 views)
|
Re: Apache+ActivePerl on my computer doesn't like the leading slash in #!/usr/bin/perl.
[In reply to]
|
Can't Post
|
|
Again, more clarification: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">quote:</font><HR>#!/whatever/ is the path to the perl.exe so I have no IDEA what your path is on your computer If you want #!/usr/bin/perl then install it like that<HR></BLOCKQUOTE> The actual path is irrelivant. The problem is that it WON'T accept #!/whatever/. It WILL accept #!whatever/, but that isn't acceptable to the on-line server I use. <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">quote:</font><HR>And on windows you dont change permissions->its not like unix<HR></BLOCKQUOTE> I'm well aware of that. I wasn't talking about that type of permission. I'm talking about allowing Apache run perl CGI's to write to my computer. It is not able to. I can only assume that I need to 'enable' something in the Apache configs. <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">quote:</font><HR>In the case of IIS/PWS (so YMMV for Apache) the path in the #! line is ignored. Instead, in the case of PWS the application associated with .cgi is used. (IIS does something similar, but saves the association in its MetaBase).<HR></BLOCKQUOTE> My milage is definatly varying, since it does require a specific #! line. <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">quote:</font><HR>Can you run the cgi from the command-line by typing only its name?<HR></BLOCKQUOTE> That depends on what you mean. I can't use only the name (e.g. dzforum.cgi). However, I assume that you mean 'perl dzforum.cgi. I can run it from the command line regardless of the #! line (since the perl program is being found via dos and not through a server). However, since it's a CGI, a command line run is of little use. If no one knows why #!/whatever doesn't work, but #!whatever does, that's fine. I understand this isn't an Apache forum. The whole Apache thing is a bit frustrating. I really wish their site linked to a forum.
|