Need Help on my Server.. it's not reading my index.php

Discussion in 'Site & Server Administration' started by GameSlim, Apr 27, 2010.

  1. #1
    I'm a new server admin w/ very little experience in administration. I recently got a dedicated server and now i'm trying to set it up. Support is out of reach, so I'm asking for help here.

    First there was Apache Test Page, I deleted the welcome.conf, and placed index.php on my /var/www/html/ folder. Now when I go to my website IP address, it's showing:

    Index of /
    index.php

    Isn't it suppose to display what's on my index.php?

    Am i missing something here? THanks!

    EDIT: IP address is: http://91.215.157.109
     
    GameSlim, Apr 27, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    Modify DirectoryIndex in your config to something like

    DirectoryIndex index.html index.php
     
    tolra, Apr 27, 2010 IP
  3. GameSlim

    GameSlim Peon

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey tolra, thanks for the tip.. that did it. Now i can start uploading my script.. Thanks!
     
    GameSlim, Apr 27, 2010 IP
  4. GameSlim

    GameSlim Peon

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Here's another problem.. my server is not processing the php files. It just displays the content of the file, how do i resolve this?

    IP address: http://91.215.157.109/
     
    GameSlim, Apr 27, 2010 IP
  5. fierceservers

    fierceservers Peon

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Check the Apache config for something similar to this, if it's not there try adding it and restart Apache. Another way to do it is just placing this line in an .htaccess file in the root web directory for your site so /var/www/html:
     
    Last edited: Apr 27, 2010
    fierceservers, Apr 27, 2010 IP
  6. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #6
    If the above doesn't work then you have got PHP installed on the server?
     
    tolra, Apr 27, 2010 IP
  7. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #7
    Check out this thread from a while back, a user was having some of the same issues, and it turned out to be permissions. It can also be that PHP is turned off for that particular folder, since it is the default installation. Check your web servers configuration for that directory.
     
    RHS-Chris, Apr 27, 2010 IP
  8. sysadmin

    sysadmin Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hello,

    The best way for managing your domain is use a server control panel , try cpanel.net , it is a most popular hosting control panel
     
    sysadmin, May 1, 2010 IP
  9. crashus

    crashus Active Member

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #9
    You need to install php and add it according to its handle, dso or cgi, you can google much of manuals and needed info
     
    crashus, May 4, 2010 IP
  10. ryan1918

    ryan1918 Active Member

    Messages:
    668
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #10
    Do you still need help with this?
     
    ryan1918, May 5, 2010 IP