P
petermichaux
Hi,
I am trying to learn about perl and cgi. I have apache and php running
on my OS X (10.3) localhost. I followed the instructions on the
following site to configure apache for perl my modifying the file
"/etc/httpd/httpd.conf" on my computer.
http://www.cgi101.com/book/connect/mac.html
The only difference from that webpage is my configure file will parse
".shtml" files instead of ".html" files.
I have written a file called "first.cgi" and saved it in my sites
folder.
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "Hello, World!\n";
At the terminal command line I can successfully run the command "perl
first.cgi".
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.
Apache/1.3.33 Server at peter-michauxs-computer.local Port 80
I tried using the terminal command "chmod 755 first.cgi". It looks like
the permissions are set correctly
-rwxr-xr-x 1 peter peter 108 9 May 23:14 first.cgi*
The forbidden message did not go away. What's going wrong? Is apache
not configured correctly? Do i need any extra files in my sites folder?
Any help greatly appreciated!!!!!
Thanks,
Peter
I am trying to learn about perl and cgi. I have apache and php running
on my OS X (10.3) localhost. I followed the instructions on the
following site to configure apache for perl my modifying the file
"/etc/httpd/httpd.conf" on my computer.
http://www.cgi101.com/book/connect/mac.html
The only difference from that webpage is my configure file will parse
".shtml" files instead of ".html" files.
I have written a file called "first.cgi" and saved it in my sites
folder.
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "Hello, World!\n";
At the terminal command line I can successfully run the command "perl
first.cgi".
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.
Apache/1.3.33 Server at peter-michauxs-computer.local Port 80
I tried using the terminal command "chmod 755 first.cgi". It looks like
the permissions are set correctly
-rwxr-xr-x 1 peter peter 108 9 May 23:14 first.cgi*
The forbidden message did not go away. What's going wrong? Is apache
not configured correctly? Do i need any extra files in my sites folder?
Any help greatly appreciated!!!!!
Thanks,
Peter