The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EXEC problem after Apache upgrade

Discussion in 'EasyApache' started by appcomm, Feb 25, 2009.

  1. appcomm

    appcomm Active Member

    Joined:
    Jan 12, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    We recently upgraded a server to Apache 2. All has gone well except for a site that has been running for years that makes use of an exec command to run a script that rotates pictures randomly....it is no longer working and instead of displaying the picture we get this error instead:

    [an error occurred while processing this directive]


    The error log shows this entry:
    exec used but not allowed in /public_html/index.shtml

    The actual command in the index.shtml page is:
    #exec cgi="/cgi-bin/rand_photo.pl"

    We've tried several fixes but still having the same issue...the "exec" is not being allowed. Hope somebody has run into this before and can point us in the right direction. Thanks!
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Sounds like you have IncludesNOEXEC enabled. This can be changed by going to WHM -> Service Configuration -> Apache Configuration -> Global Configuration and scrolling down. It is highly recommended you read the related documentation from Apache at:

    http://httpd.apache.org/docs/2.0/mod/core.html#options
     
  3. appcomm

    appcomm Active Member

    Joined:
    Jan 12, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Sorry...I should have included additional information concerning what we had tried. Yes, IncludesNOEXEC is enabled. If we turn it OFF, two things occur:

    1. We no longer get the "can't process this directive" error message, BUT, the script does not execute as it did in the past, and...

    2. SSI includes used to insert the navigation on that site cease to work. The line that is used for this is: <!--#include virtual="/map.ssi" -->


    So, when we turn back on IncludesNOEXEC, the original error returns, and the navigation works again that is handled by the SSI.

    Any other thoughts...this one has us stumped!
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Feel welcome to let our technical analysts lend a helping hand: http://tickets.cPanel.net/submit
     
Loading...

Share This Page