Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    35

    Default EXEC problem after Apache upgrade

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by appcomm View Post
    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!
    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. #3
    Member
    Join Date
    Jan 2004
    Posts
    35

    Default

    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. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by appcomm View Post
    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!
    Feel welcome to let our technical analysts lend a helping hand: http://tickets.cPanel.net/submit

Similar Threads & Tags
Similar threads

  1. apache + php upgrade problem
    By glowndark in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-08-2007, 05:04 PM
  2. open base dir, PHP exec and shell exec
    By tris in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-25-2006, 03:07 PM
  3. Problem with exec()
    By Phree in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 01-18-2006, 05:36 PM
  4. Problem with Apache/mod_ssl upgrade
    By Escaflowne in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-11-2005, 02:37 AM
  5. FDF problem : Today I have problem when upgrade Apache
    By xmllist in forum cPanel Developers
    Replies: 0
    Last Post: 06-18-2004, 11:26 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube