PDA

View Full Version : Perl won't work on OSX Server


sandpilot
04-29-2002, 12:28 PM
Hello All-

I am having a heck of a time trying to get perl scripts to run in OSX.1.4. I think I have done all of the right steps to get things up and running. Here is a list of what I have done so far. 1. I have modified the httpd.conf file to be able to use SSI's. 2. Changed the location of the web folder from /Library/WebServer/Documents/ to /Intranet/. 3. inside of the /Intranet/ folder I have a cgi-bin folder that I copied the Apple default files 'test-cgi' and 'printenv'. The 'test-cgi' file will work just fine and return the info that it is susposed to, but if, from my browser, I input the path to 'printenv' I get the message 'Forbidden - You don't have permission to access /cgi-bin/printenv on this server.' or another perl script called 'iBtest.cgi' I get Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request. I have also gone in done a chmod 0777 to all of the files in the cgi-bin folder. I'm just not sure where to go from here. Is this enough info for the problem or do you need more info. Let me know. Thanks for any help.

Oh- one last thing - the path in the perl scripts is-
#!/usr/bin/perl


John
john.nicholson@avpress.com

pleeman
04-29-2002, 04:38 PM
I am running DYNIP so my dynamic ip DSL is always resolved to my domain name. The unix program would not run till I installed this.
Best of luck!

gowrann
05-02-2002, 07:10 AM
http://www.oreillynet.com/pub/a/mac/2001/12/14/apache_two.html