Bug 460898
Summary: | CUPS uses /usr/bin/php to run php pages instead of /usr/bin/php-cgi | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Opher Shachar <ophers> | ||||
Component: | cups | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED ERRATA | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.2 | CC: | jpopelka, pknirsch, ykopkova | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-03-30 08:14:53 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Reverted due to incorrect handling of CGI output that is not line-based (STR #3194). This has now had a fix checked in upstream (untested here). An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0210.html |
Created attachment 315554 [details] A patch to have CUPS compiled with /usr/bin/php-cgi Description of problem: CUPS uses /usr/bin/php to run php pages as this excerpt from error_log shows: I [02/Sep/2008:17:10:11 +0300] commptr="/usr/share/doc/cups-1.2.12/whoami.php" I [02/Sep/2008:17:10:11 +0300] Started "/usr/bin/php" (pid=21289) Under RHEL4 this was fine because it was the cgi flavor: # /usr/bin/php -v PHP 4.3.9 (cgi) (built: Jun 26 2006 09:46:58) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Under RHEL5 this is wrong because it is the cli flavor: # /usr/bin/php -v PHP 5.1.6 (cli) (built: Sep 12 2007 11:11:52) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies instead /usr/bin/php-cgi is the correct executable to run: # /usr/bin/php-cgi -v PHP 5.1.6 (cgi-fcgi) (built: Sep 12 2007 11:09:50) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies Version-Release number of selected component (if applicable): cups-1.2.4 How reproducible: Always. Additional info: A patch to have CUPS compiled with /usr/bin/php-cgi is attached.