Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Still not working' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Still not working
Authored by: Crusty on Jul 10, '01 11:47:30AM

Thanks for your suggestions. I've tried altering the individual user's config file, and now SSI works, but CGI/Perl still doesn't. I either get a permissions error or premature end of script headers error (or something like that). I've tried changing the permissions on the files in the Finder, but because the files were created in OS 9, the owner/group is "Staff", and I can't alter them, even though I'm an admin. I guess that's another problem entirely. Gotta get used to the whole permissions spiel now. How can I change the permissions and why am I getting premature end of script header errors when the exact same script works perfectly on a Unix server?



[ Reply to This | # ]
Have you read the Apache FAQ?
Authored by: Erik Toh on Jul 10, '01 09:11:22PM
It's located here.... might help.

[ Reply to This | # ]
Still not working
Authored by: mebigrock on Jul 12, '01 11:12:43AM

perl scripts need to be made executable for apache to run them. a command like the one below should work.

chmod a+rx filename.pl



[ Reply to This | # ]
Still not working
Authored by: Crusty on Jul 12, '01 09:15:03PM
I forgot to mention that I was testing a VERY basic Perl script:
#!/usr/bin/perl
print "Content-type: text/htmlrnrn";
print "Hello, World.";
There are backslashes before each "r" and "n", but they don't show up here. And I still get the errors I mentioned in my earlier post a few minutes ago. I know that's where Perl is on my computer too.

[ Reply to This | # ]
Still not working
Authored by: Crusty on Jul 12, '01 09:04:45PM
I've done everything I can think of now. I've got my Apache config file setup correctly. I've read the Apache docs, I've given permissions, etc. Now I get an internal server error with this in my error log:
[Thu Jul 12 19:47:09 2001] [error] (2)No such file or directory: exec of /Users/crusty/Sites/cgi-bin/test.pl failed
[Thu Jul 12 19:47:09 2001] [error] [client 127.0.0.1] Premature end of script headers: /Users/crusty/Sites/cgi-bin/test.pl
What am I doing wrong now? I'm getting amazingly frustrated with this now. On top of this problem, I had a new hard drive put in, and the techs who worked on it moved all my old info onto the new one. Well afterwards, I couldn't boot off of OS X, so I reinstalled it. I then noticed I had lost mySQL and PHP, and my Apache was corrupted. Soooo... I reinstalled them, but I had no config file or directory for individual users. My overall config file was different than the first time I compiled and installed it. I eventually fixed it all back, but I STILL have the CGI problem. And my Sharing will not work anymore. It'll crash the System Prefs every time. All other panels work, but not Sharing. I have to start Apache with the apachectl command. Anybody know how to help me with any of these things?

[ Reply to This | # ]