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.

Hacking

Discussion in 'General Discussion' started by sujai, Feb 7, 2004.

  1. sujai

    sujai Member

    Joined:
    Sep 26, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I want to change the root directory where apache runs. For that I tried creating a new directory in root and copied all needed files or apache to run. But i am not able to start apache. Here is the error.

    /trap/usr/local/apache/bin/apachectl: line 80: -DSSL: command not found

    Please help me . I want to secure my server

    --Sujai
     
  2. PaulTech

    PaulTech Member

    Joined:
    Dec 9, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    open your apachectl you will see

    if [ -e "/etc/chroothttpd" ]; then
    HTTPD=/usr/local/cpanel/bin/chroothttpd
    else
    HTTPD=/usr/local/apache/bin/httpd
    fi

    change to

    if [ -e "/etc/chroothttpd" ]; then
    HTTPD=/trap/usr/local/cpanel/bin/chroothttpd
    else
    HTTPD=/trap/usr/local/apache/bin/httpd
    fi
     
  3. sujai

    sujai Member

    Joined:
    Sep 26, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    No man no way

    Here is the error

    /etc/rc.d/init.d/httpd: line 83: -DSSL: command not found
    /etc/rc.d/init.d/httpd start: httpd could not be started


    Thank you

    --Sujai
     
  4. sujai

    sujai Member

    Joined:
    Sep 26, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    No man no way

    Here is the error

    /etc/rc.d/init.d/httpd: line 83: -DSSL: command not found
    /etc/rc.d/init.d/httpd start: httpd could not be started


    Thank you

    --Sujai
     

Share This Page