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.

Setting Directory Index for reseller

Discussion in 'General Discussion' started by smartocci, Oct 12, 2004.

  1. smartocci

    smartocci Member

    Joined:
    Oct 5, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone, I'm trying to set index.php as the default page for one of the sites I host. I have already logged in as root and checked the httpd.conf file and index.php is listed as one of the document indexs, but it does not seem to work. Any suggestions?
     
  2. smartocci

    smartocci Member

    Joined:
    Oct 5, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    bump, this is kinda important. If anyone could help me out that would be great. I'm just not sure why the settings in the httpd.conf woudln't work for this user.
     
  3. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    Did you try putting:

    Code:
    DirectoryIndex index.php
    in an .htaccess file in the main dir of this site? (well same dir as index.php)


    I would think settings in the httpd.conf would work over the htaccess, and they are preferred over htacess since there's a bit of a performance hit for htaccess commands. Mebbe there was a typo or something?

    Did you restart apache after making these changes to httpd.conf?
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Make sure that there are no other index files in his public_html directory. The DirectoryIndex list goes in order, so if index.html is listed before index.php and he has an index.html and an index.php file, the index.html will load first.
     
Loading...

Share This Page