LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] ScriptAlias for a vhost

[ILUG] ScriptAlias for a vhost

Philip Reynolds phil at redbrick.dcu.ie
Fri May 5 19:25:43 IST 2000


adam beecher's [adam at iewebs.com] 53 lines of dribble included:
<:Ordinarily I'd say it's an Apache permissions problem, but the fact that
<:you're getting a "Premature end of script headers" error implies that the
<:script is *trying* to run, but there's an error in there somewhere - a
<:missing semicolon or summat similar. But the fact that it runs in your
<:UserDir and dunt in the VirtualHost knocks that on the head. So I still
<:reckon it may be permissions. Did you set up the UserDir Directory with the
<:~ tilde?:
<:
<:<Directory /home/users/~*/public_html>
<:
<:That'll probably screw it up anyway. If not though, the best thing is
<:probably to post your httpd.conf and the script saved with a .txt extenstion
<:on the web somewhere so we can have a look at it.

OK. Well basically the problem  originates from myself. 
A simple perl script that just outputs text works. But basically I have a line
at the top
require "cgi-lib.pl"
It should be looking for that in the current directory and it's not. I've
tried using absolute paths to it. 
Error in logs/error_log is

Can't locate cgi-lib.pl in @INC (@INC contains: /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at
/home/committe/phil/public_html/cgi-bin/outings.pl line 2.

The last place that looks is the current directory which is the current
cgi-bin directory, so I don't see the problem. 
Any ideas?
Phil.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell