Hi there,
Three weeks have passed and we can't get this BS (I mean CS) running.
An ERROR occurred while trying to continue:
Config file [/afs/unity.ncsu.edu/project/www/ncsu/forest_resources/wps/cgi-bin/calendarscript/config.txt] could not be opened for writing!
ERROR:
CGISession: Session file [/afs/unity.ncsu.edu/project/www/ncsu/forest_resources/wps/cgi-bin/calendarscript/session/1569063419.txt] could not be opened for writing!
ALL INSTALLATION STEPS HAVE BEEN FOLLOWED.
(1) FTPed in ASCII mode
(2) CHMOD 777 for calendarscript folder and its subfolders/files
(3) CHMOD 755 for calendar.pl and calendar_admin.pl
(4) Changed #!/usr/bin/perl to #!/usr/local/bin/perl as advised by our help desk staff
Here's our web administrator's help response:
> Hi,
>
> I need your help very badly. Kindly verify if the following CHMOD value is
> allowed on the following directory:
>
> /wps/cgi-bin/calendarscript/.......777
Audimar,
As the server is configured, the cgi scripts can be read, but can not write back to that directory. Is that what you are trying to do? If so, the writable datra directory should not be the same as the cgi directory as a malicious script could rewrite your code on the fly.
>
>
>
> I'm still getting this error:
>
> "The server encountered an internal error or misconfiguration and was unable
> to complete your request.
> The error was: Premature end of script headers:
> /afs/unity.ncsu.edu/project/www/ncsu/forest_resources/wps/cgi-bin/calendar_admin.pl"
This usually means that either the script is not outputting proper HTML
OR
the path to the perl binary is the script is incorrect.
Line 1 in the script is listed as :
#!/usr/bin/perl
and it should be :
#!/usr/local/bin/perl
There is no perl binary at /usr/bin/perl
Hope that helps.
Regards,
Tom
Tom Karches
NCSU Information Technology -- Web Services
twk@ncsu.edu