hi i am new to koha and have gone through the "Using Koha as a Content Management System" steps so as to be able to add custom pages. My problem is when I finished adding a custom page and try testing it i get the error 500. On checking the logs, it says; [error][client 127.0.0.1] Can't open perl script "usr/share/koha/opac/cgi-bin/opac/pages.pl": Permission denied, referer: http://127.0.1.1/cgi-bin/koha/pages.pl?p=test Any advice on how I can solve this? Thanks
At 04:34 PM 11/3/2013 +0000, Arnold wrote:
hi
i am new to koha and have gone through the "Using Koha as a Content Management System" steps so as to be able to add custom pages. My problem is when I finished adding a custom page and try testing it i get the error 500.
On checking the logs, it says;
[error][client 127.0.0.1] Can't open perl script "usr/share/koha/opac/cgi-bin/opac/pages.pl": Permission denied, referer: http://127.0.1.1/cgi-bin/koha/pages.pl?p=test
Does your new pages.pl have the same permissions as the /usr/share/koha/opac/cgi-bin/opac/opac-main.pl that you copied from? P.
Does your new pages.pl have the same permissions as the /usr/share/koha/opac/cgi-bin/opac/opac-main.pl that you copied from?
P.
Hi, Thanks for the help, the permissions were not the same for both files. Though now when i try to display a page, it displays the following error: Global symbol "$cgi" requires explicit package name at /usr/share/koha/opac/cgi-bin/opac/pages.pl line 63 syntax error at /usr/share/koha/opac/cgi-bin/opac/pages.pl line 68, near "){" Execution of /usr/share/koha/opac/cgi-bin/opac/pages.pl aborted due to compilation errors where line 63 is; my $page = "page_" . $cgi->param('p');
participants (2)
-
Arnold -
Paul A