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.

Suexec and httpd.conf problem apache wont start

Discussion in 'EasyApache' started by pr-design, Apr 22, 2003.

  1. pr-design

    pr-design Member

    Joined:
    Feb 1, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    If I turn suexec on, most cgi scripts dont run and certain errors are generated because some ownership permissions conflict with it. Occasionally httpd will have to stop itself because of something being installed or updated, or modified in the conf file. If I have suexec off and restart httpd, I get a string of errors saying:
    User directive in <VirtualHost> requires the suexec wrapper
    Group directive in <VirtualHost> requires the suexec wrapper
    for every entry.

    So a conf entry looks like
    <VirtualHost 66.111.37.20>
    ServerAlias www.drew-phillips.com drew-phillips.com
    ServerAdmin webmaster@drew-phillips.com
    DocumentRoot /home/drew010/public_html
    BytesLog domlogs/drew-phillips.com-bytes_log
    User drew010 # here is the problem <--
    Group drew010 # here is the problem <--
    ServerName www.drew-phillips.com
    CustomLog domlogs/drew-phillips.com combined
    ScriptAlias /cgi-bin/ /home/drew010/public_html/cgi-bin/
    </VirtualHost>

    The problem is with suexec off, if i comment these out they are added upon creation of a new account and/or they are automatically put back in after the ones are commented. Is there a simple way to either uninstall suexec or modify how touchy it is about executing scripts?
    Thanks much.
     
  2. Curious Too

    Curious Too Well-Known Member

    Joined:
    Aug 31, 2001
    Messages:
    427
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    There is an option to Enable/Disable SuExec in the Server Setup menu in WHM.
     
  3. pr-design

    pr-design Member

    Joined:
    Feb 1, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    I know about that, but what im saying is when i disable it there, when i try to restart httpd it says user directive in <VirtualHost> requires suexec wrapper, and then apache fails to start up.
     
Loading...

Share This Page