Re: Help getting Perl/CGI running on OS X localhost with apache
- From: Tad McClellan <tadmc@xxxxxxxxxxxxxx>
- Date: Tue, 10 May 2005 20:28:31 -0500
petermichaux@xxxxxxxxx <petermichaux@xxxxxxxxx> wrote:
> I am trying to learn about perl and cgi.
Have you checked the Perl FAQs that mention the CGI?
perldoc -q CGI
Where can I learn about CGI or Web programming in Perl?
What is the correct form of response from a CGI script?
My CGI script runs from the command line but not the browser. (500
Server Error)
How can I get better error messages from a CGI program?
How do I make sure users can't enter values into a form that cause my
CGI script to do bad things?
How do I decode a CGI form?
> The only difference from that webpage is my configure file will parse
> ".shtml" files instead of ".html" files.
Get it to work with .html first.
Once that is working, then move on to getting it to work with secure HTML.
> print "Content-type: text/html\n\n";
> print "Hello, World!\n";
You shouldn't say that you will be giving HTML unless you actually
give HTML.
Your output looks a lot more line text/plain than text/html.
> At the terminal command line I can successfully run the command "perl
> first.cgi".
Then you do not have a Perl problem, your problem is somewhere else.
> When i point my browser to "http://localhost/~peter/first.cgi" I get
> the following message
>
> Forbidden
> You don't have permission to access /~peter/first.cgi on this server.
> Is apache
> not configured correctly?
Yes, your web server appears to be not configured correctly.
> Do i need any extra files in my sites folder?
I dunno, we help with Perl here.
Folks that can help with server setup hang out somewhere else.
> Any help greatly appreciated!!!!!
Ask Perl questions in a Perl newsgroup.
Ask server setup questions in a server newsgroup, such as:
comp.infosystems.www.servers.mac
--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas
.
- References:
- Help getting Perl/CGI running on OS X localhost with apache
- From: petermichaux
- Help getting Perl/CGI running on OS X localhost with apache
- Prev by Date: Re: XS compiler for Perl
- Next by Date: Re: LWP in perl 5.8.0 in solaris 9
- Previous by thread: Re: Help getting Perl/CGI running on OS X localhost with apache
- Next by thread: auto directorie ?
- Index(es):
Relevant Pages
|
|