appcast.cgi not loading under 10.6

Asked by Christian

Greetings,

I moved my old Sparkle server from a machine which was running Mac OS X 10.4.11 to an Intel-based Mac now running Mac OS X 10.6.3. I confirmed that Web Sharing is enabled in System Preferences on the new Intel Mac and that everything else loads properly from my web browser. However, calling into the appcast.cgi file the contents of the file are display in the web browser instead of loading the referenced xml file with release notes html. The same appcast.cgi configuration worked as expected in Mac OS X 10.4.11 but doesn't under Mac OS X 10.6.3. I confirmed permission are the same from both machines. Is there something that I am forgetting to load on the new machine? Perhaps this is a known issue? Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Solved by:
Christian
Solved:
Last query:
Last reply:
Revision history for this message
Christian (christian-micromat) said :
#1

Still running into issue with the appcast.cgi file on the Mac OS 10.6.x machine. When I put in the URL:

http://betaadmin.micromat.com/~betaadmin/mmpro5/appcast.cgi

I still get this in the web browser:

#!/usr/bin/perl
$|++;

use CGI qw/:all/;

#my $appcastUrl = "http://micromat.com/updates/pro5/appcast.cgi";
my $appcastUrl = "http://betaadmin.micromat.com/~betaadmin/mmpro5/beta_appcast.xml";
my $q = CGI->new();

open (T, "+>>/Users/betaadmin/Shared/mmpro5_systeminfo.txt")
 or print STDERR "ERROR: $!\n\n";
print T "timestamp:\t" . scalar(localtime()) . "\n";

foreach my $k ($q->param)
{
    print T "$k:\t" . $q->param($k) . "\n";
}

print T "----------\n";
close(T);

print "Location: $appcastUrl\n\n";

All the files and directories are in the correct locations. However, when I use the old machine running Mac OS X 10.4.x:

http://pinfo.micromat.com/~betaadmin/mmpro5/appcast.cgi

It loads the information correctly and Sparkle works with dialog. It would appear that there is something minor oversight that I am not aware of to make it work on Mac OS X 10.6.x. Any help would be greatly appreciated. Thank you.

Revision history for this message
Andy Matuschak (andymatuschak) said :
#2

This looks like a webserver configuration problem. Make sure you have +ExecCGI on in your Apache config.

Revision history for this message
Christian (christian-micromat) said :
#3

Went to /private/etc/apache2 and updated httpd.conf with what you suggested:

# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
    Options ExecCGI FollowSymLinks +ExecCGI
    AllowHandler cgi-script cgi
    AllowOverride All
    Order deny,allow
    Allow from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.

Still no luck. :(

Revision history for this message
Christian (christian-micromat) said :
#4

AllowHandler cgi-script cgi

fixed:

AddHandler cgi-script cgi

However, still no go. :(

Revision history for this message
Christian (christian-micromat) said :
#5

Hi Andy,

Here is my httpd.conf file from this machine. The appcast.cgi file resides
in:

/Users/betaadmin/Sites/mmpro5

Where am I going wrong?

Thanks for your help.

Christian

On 5/5/10 12:01 PM, "Andy Matuschak" <email address hidden>
wrote:

> Your question #109659 on Sparkle changed:
> https://answers.edge.launchpad.net/sparkle/+question/109659
>
> Status: Open => Answered
>
> Andy Matuschak proposed the following answer:
> This looks like a webserver configuration problem. Make sure you have
> +ExecCGI on in your Apache config.

Revision history for this message
Christian (christian-micromat) said :
#6

Figured it out. Apache 2 requires the "." after the cgi and pl in AddHandler. In Apache 1, this wasn't used or referenced.