[wellylug] Including perl calls in html pages
John Durham
johndurh at spunge.org
Wed Dec 20 17:55:02 NZDT 2006
Daniel Pittman wrote:
> 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?
>
Run directly, they work.
> 2. What do the error logs say?
>
>
Logs reveal some bugs, which I will fix. Here is a test link that should
display your browser data, if it goes.
http://modecideas.com/faq84.html
> 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"?
>
Yes!
> 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?
>
>
All correct here.
> 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
>
Useful comments, thanks.
--
John Durham
Site http://modecideas.com
More information about the wellylug
mailing list