Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

CGI Problem upgrading Apache to 2.4

by emilbarton (Scribe)
on Aug 22, 2015 at 13:41 UTC ( #1139514=perlquestion: print w/replies, xml ) Need Help??
emilbarton has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I had a cgi script that went fine under apache 2.2 but that can't open a pipe anymore now that I upgraded to 2.4: broken pipe. Is there some specific 2.4 config to enable cgi scripts to run external programs?

Replies are listed 'Best First'.
Re: CGI Problem upgrading Apache to 2.4
by afoken (Abbot) on Aug 22, 2015 at 14:06 UTC
    broken pipe. Is there some specific 2.4 config to enable cgi scripts to run external programs?

    No. Show the relevant part of your code and the actual error message.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: CGI Problem upgrading Apache to 2.4
by 1nickt (Monsignor) on Aug 22, 2015 at 14:06 UTC

    Please see How do I post a question effectively. In particular:

    If you want to get good answers: Paste actual code that reproduces the + problem between <code> and </code> tags . State exactly what the pro +blem is. Be precise about the correct behavior / desired output.
    The way forward always starts with a minimal test.
Re: CGI Problem upgrading Apache to 2.4
by emilbarton (Scribe) on Aug 24, 2015 at 15:24 UTC
    Finally it all came from SELinux. Now erverything's fine thanks.
Re: CGI Problem upgrading Apache to 2.4
by sundialsvc4 (Abbot) on Aug 23, 2015 at 15:07 UTC

    “Broken pipe” indicates that Apache is, at some point, trying to write to a pipe that has been closed.   There is no “categorical statement” that can be made as to why such an error might occur, and a Google search of apache "broken pipe" is inconclusive.   Look at the Apache log messages surrounding that message, and please post a short snippet of it here (in code tags).   Also, carefully compare your 2.2 Apache configuration file to the 2.4 version.   Also, details of exactly what sort of CGI-app this is, and exactly how Apache is running it.   (Vanilla? ... PSGI ... mod_perl ??)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1139514]
Approved by Corion
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-12-17 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (466 votes). Check out past polls.

    Notices?