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.

Directory index problem with WordPress

Discussion in 'General Discussion' started by chencho, Jan 12, 2011.

  1. chencho

    chencho Member

    Joined:
    Oct 5, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi all.

    I have same issue.

    I install a wordpress, but instead see http://mydomain.com/index.php i see http://mydomain.com/cgi-sys/defaultwebpage.cgi

    I need to write index.php to see my wordpress.

    Doing:
    Code:
    echo 'DirectoryIndex index.html index.htm index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml default.htm default.html home.htm' >> /usr/local/apache/conf/includes/pre_main_global.conf
    /usr/local/cpanel/bin/build_apache_conf
    service httpd restart
    
    I have no changes :(

    Any tip to do it global and not need to write a .httaccess to each domain?
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Re: Upgrade to R18404 changes directoryindex

    I moved this post to its own, new thread. It was originally posted as a reply to the following thread, which is almost two (2) years old:

    http://forums.cpanel.net/f5/upgrade-r18404-changes-directoryindex-73951-p2.html

    It is unlikely that an update to the R18404 build caused this issue, so I moved this post to its own thread to get better exposure for it.

    Instead of the shell command you mentioned, you can edit the directory index priority in the WebHost Manager by clicking Main >> Service Configuration >> Apache Configuration >> DirectoryIndex Priority. This is preferable to shell commands, because the changes will be preserved if Apache is updated. Is index.php listed in the DirectoryIndex Priority page? It should be, by default.
     
  3. chencho

    chencho Member

    Joined:
    Oct 5, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Re: Upgrade to R18404 changes directoryindex

    Thanks.

    First, index.php it's showed into DirectoryIndex Priority, but i move up.

    Now i can delete my .htaccess and domain works fine.

    I will try it with news domains soon to check it.
     
Loading...

Share This Page