[wellylug] Including perl calls in html pages
Daniel Pittman
daniel at rimspace.net
Wed Dec 20 16:10:58 NZDT 2006
John Durham <johndurh at spunge.org> writes:
> One of my web pages contains this line:
> <!--#exec cgi="/cgi-bin/Hello.pl"-->
> On a windows server, it runs the script perfectly. How can I make it do
> the same under Ubuntu Linux please?
Andre has pointed to documentation on SSI, but a few other things that
might help you move in the right direction:
1. What happens when you run the CGI directly?
2. What do the error logs say?
Seriously, these usually have the information you need to track down and
resolve the problem.
If they say nothing then please let us know up front -- so that we don't
harass you to tell us what they did say. ;)
3. Is your CGI script marked as "executable"?
You can check by looking for the 'x' bits when you do ls -l on it:
-rwxr-xr-x 1 daniel daniel 160 2006-12-19 14:43 make-css
The 'x' parts in the first word show that is executable; make sure that
you have all three 'x' bits set on your script.
4. Does your CGI point to the correct Perl?
The first line should read like this, though possible with some more
arguments following the perl part:
#!/usr/bin/perl
If it doesn't then try altering it to read that way, then running your
script again.
Regards,
Daniel
--
Digital Infrastructure Solutions -- making IT simple, stable and secure
Phone: 0401 155 707 email: contact at digital-infrastructure.com.au
http://digital-infrastructure.com.au/
More information about the wellylug
mailing list