CGI Perl scripts may not run under CUPS in RHEL 6.3 - 6.5

Solution Verified - Updated -

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.pl and run "chmod a+x /usr/share/cups/www/modify-page-range.pl". Then I modify jobs.tmpl to add a call to my perl script through a form. In the CUPS error_log (with "LogLevel debug2") I can see that /usr/bin/perl is called without any argument (I should have at last /usr/share/cups/www/modify-page-range.pl as an argument).

  • Adding a simple Perl script to /usr/share/cups/www doesn'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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content