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

    Default Setting Directory Index for reseller

    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. #2
    Member
    Join Date
    Oct 2004
    Posts
    13

    Default

    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. #3
    Member
    Join Date
    Sep 2004
    Posts
    529

    Default

    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. #4
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    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.
    Regards,
    David
    Forum Moderator

Similar Threads & Tags
Similar threads

  1. How to set System Default Setting for Index Manager?
    By athought in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-22-2006, 09:42 AM
  2. directory index
    By petter.pan in forum New User Questions
    Replies: 3
    Last Post: 03-19-2005, 07:12 AM
  3. Directory Index
    By bsamson in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-19-2004, 06:34 AM
  4. setting the default index page
    By advisor in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-05-2004, 03:19 PM
  5. Enabling Directory index
    By kcdworks in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-19-2002, 11:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube