CGI Perl scripts may not run under CUPS in RHEL 6.3 - 6.5
Issue
-
I'm trying to add cgi perl code to cups but It doesn't work. I add a file "
/etc/cups/cgi.types" with "application/x-httpd-perl pl". Then I create a CGI Perl script/usr/share/cups/www/modify-page-range.pland run "chmod a+x /usr/share/cups/www/modify-page-range.pl". Then I modifyjobs.tmplto add a call to my perl script through a form. In the CUPSerror_log(with "LogLevel debug2") I can see that/usr/bin/perlis called without any argument (I should have at last/usr/share/cups/www/modify-page-range.plas an argument). -
Adding a simple Perl script to
/usr/share/cups/wwwdoesn't work. Actual results are "500 Internal Server Error", but the script should execute.
Environment
- Red Hat Enterprise Linux 6.3, 6.4, and 6.5
- Common Unix Printing System (CUPS) Web interface
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
