View Single Post

  #3 (permalink)  
Old 11-10-2003
Materialised
 
Posts: n/a
Default Re: Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4

Brian Wakem wrote:
> "Materialised" <materialised@privacy.net> wrote in message
> news:bont9t$1fv8ts$1@ID-204621.news.uni-berlin.de...
>
>>Hi Everyone,
>>
>>I am having trouble running perl scripts from my user directories.
>>Here is my userdir setup in my httpd.conf file
>>
>>UserDir public_html
>>
>><Directory /home/*/public_html>
>> AllowOverride FileInfo AuthConfig Limit Indexes
>> Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
>> <Limit GET POST OPTIONS PROPFIND>
>> Order allow,deny
>> Allow from all
>> </Limit>
>> <LimitExcept GET POST OPTIONS PROPFIND>
>> Order deny,allow
>> Deny from all
>> </LimitExcept>
>></Directory>
>>
>>I have ExecCGI in there, but for some reason I can even run a simple
>>perl script such as the following
>>
>>#!/usr/bin/perl
>>
>>
>>print <<"DOC";
>>content-type: text/html\n\n
>>print <html>\n
>>print <h1>Hello World</h1>\n
>>print </html>\n
>>
>>
>>DOC

>
>
>
> Why are you putting print and \n in a here doc? That should be;
>
> print <<DOC;
> Content-type: text/html
>
>
> <html>
> <h1>Hello World</h1>
> </html>
> DOC
>
> A newline in a heredoc is a literal newline, you don't need to add \n, and
> the "print"'s are certainly not necessary.
>
> You may be able to run that script now, I don't know, you didn't tell us
> what kind of error you were getting.
>

The error im getting is

Internal Server Error

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

Please contact the server administrator, root@purehacker.com and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.48 (Unix) mod_perl/1.99_10 Perl/v5.6.1 PHP/4.3.4 Server

All permissions are setup correctly though.