-
podcast cgi – advice if you can
Where should I find or create the #{CGI_CONF_FILE} mentioned below ? …when Podcast producer fails my http error log reports:
Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:36:in `read_config': CGI Configuration file does not exist (CGIException)
Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:30:in `initialize'
Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:275:in `new'
Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 tfrom /usr/share/podcastproducer/cgi-bin/pcastupload.cgi:275
Fri Jun 26 19:27:31 2009 error https://client 10.23.1.172 Premature end of script headers: pcastupload.cgi
If I look at the file /usr/share/podcastproducer/cgi-bin/pcastupload.cg then line 30 reads as follows :
class UploadCGI
def initialize
@config = read_config
enddef read_config
if (!File.exist?(CGI_CONF_FILE))
ASLLogger.error "#{CGI_CONF_FILE} does not exist"
raise CGIException.new, "CGI Configuration file does not exist"
endif (!File.readable?(CGI_CONF_FILE))
ASLLogger.error "#{CGI_CONF_FILE} is not readable"
raise CGIException.new, "CGI Configuration file is not readable"
end# We need to read from our special config file for the location of the shared filesystem
@config = {}File.open(CGI_CONF_FILE, "r") do |file|
# Read all the key=value pairs out of the CGI config file into @config
lines = file.readlines
lines.each do |line|
key, value = line.chomp.split("=")
if (key && value)
@configkey = value
end
end
end
Sorry, there were no replies found.