last day (15 days later) » 

20:34
0
Q: How can I ask Mountain Lion to have apache2 recognize .cgi and execute it as a CGI script?

JonathanHaywardI've upgraded from Lion to Mountain Lion, and have noticed as a result of the upgrade, besides my screen saver saying it won't work on this version of OSX, Apache is displaying the private web dashboard I run off of it, but instead of executing CGI scripts (no special directory, but a .cgi extens...

Is there a LoadModule cgi_module modules/mod_cgi.so in your httpd.conf?
Yes; it was there to begin with after the upgrade.
You can check with this guide: httpd.apache.org/docs/2.2/howto/cgi.html. Might be something there that can help.
Thank you; I read through it and tried copying the AddHandler line inside the VirtualHost. Would it be helpful if I copied my httpd.conf inside a pastebin?
(Just added my httpd.conf file in at the bottom.)
P.S. When I copy the httpd.conf on the computer that I migrated this computer from, "apachectl restart" runs without reported error but the server is refusing connections.
You should change <Directory "/Users/jonathan"> to <Directory "/Users/jonathan/mirror"> as that is the DocumentRoot. You can connect to the server now?
20:37
I know the most common setup is to have the Directory and DocumentRoot be the same directory, but Apache is just as happy if some parent Directory to the DocumentRoot sets permissions. The usual way to accomplish this is by making them the same directory, but if you set permissions in a parent Directory setting (without an intervening Directory changing things on the DocumentRoot's path), those settings are applied to the DocumentRoot.
Didn't know that.
I'm doing some tests on my computer atm.
Ok. I got it working for myself now
by the look of it, the ScriptAlias is a bit off as standard
It is pointing to "/Library/WebServer/CGI-Executables/$1" by default
Actually, that shouldnt matter
Mine is working without any problem.
Do you have a .htaccess file in the root ?

last day (15 days later) »