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.

View httpd.conf through web browser

Discussion in 'General Discussion' started by mazhar_shaikh, Jun 5, 2006.

  1. mazhar_shaikh

    mazhar_shaikh Registered

    Joined:
    Apr 22, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    How can we see httpd.conf through web browser. I am using this script. I am using mozilla firefox and Internet Explorer.

    ========================================

    <?php
    $handle = fopen("/usr/local/apache/conf/httpd.conf", "r");
    echo $handle;
    ?>

    ========================================

    Any idea?
     
  2. thomasking

    thomasking Registered

    Joined:
    May 29, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    This file is owned by the system's root user and by default it does not have the proper permissions for a php script to open for reading. If you want to see the file and are on a shared web server, ask your web host provider for a copy - they may or may not do so, though.
     
    #2 thomasking, Jun 5, 2006
    Last edited: Jun 5, 2006
  3. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator

    There are a couple of WHM file managers out there, we use the one from http://configserver.com/ You can then edit all the files via a web browser.
     
  4. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    the httpd.conf is 0600 root:root permissions so unless you have root access your not going to be able to view,edit or do anything else with the httpd.conf
     
Loading...

Share This Page