index.html won't change

Discussion in 'Installation/Configuration' started by letrstotheprez, Feb 13, 2011.

  1. letrstotheprez

    letrstotheprez New Member

    I've changed the contents of the original index.html file of my new site and even tried deleting it and making a new one but whenever i visit my site it just shows the original file even though it doesn't exist anymore
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Clear your browser cache.
     
  3. letrstotheprez

    letrstotheprez New Member

    I've tried that and it still doesn't work, even on multiple computers and an ipod
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Are you really sure that you changed index.html? Please double check that you did not upload e.g. a index.htm file (without the l). index.html has priority over index.htm.
     
  5. kendel

    kendel New Member

    Heres some things to consider:
    1) you purchased a domain and forwared it to your IP
    2) your changing the index.html in the folder of your website but what about the default index.html in the apache (there is a defaulted index.html that points point from your IP address)

    3) you visited the website in my comment recently....(this has nothing to do with the first 2)

    4) (also nothing to do wit the first 2) ;)
     
  6. letrstotheprez

    letrstotheprez New Member

    I'm positive that it's index.html not .htm as I originally just changed the contents of the file without touching the name an it still didn't work. The index.html file in the /var/www/ folder is also not the one showing up
     
  7. yucktoufoo

    yucktoufoo Member

    Have you tried restarting the web server.

    I know that Cherokee would continue to server up cached pages for quite some time but a restart sorted it out.

    Failing that, if you're using Firefox, install a plugin called Firebug which will allow you to examine whats happening between the browser and the server.
     
  8. mike_p

    mike_p Member

    What page do you see? Is it the default Apache page or does it say
    "This is the default index page of your website." ?
     
  9. letrstotheprez

    letrstotheprez New Member

    It's the ispconfig 3 Default index.html page that says something to the effect of "your new webpage is ready for content to be added. You can remove this index.html page and replace it with your own"
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Can you go to your web site's document root and post the output of
    Code:
    ls -la
    ?
     
  11. letrstotheprez

    letrstotheprez New Member

    total 28
    drwx--x--- 4 web1 client0 4096 2011-02-15 17:08 .
    drwxr-x--x 6 web1 client0 4096 2011-02-12 15:43 ..
    drwxr-xr-x 2 web1 client0 4096 2011-02-12 15:43 error
    -rwxr-xr-- 1 web1 client0 1406 2011-02-12 15:43 favicon.ico
    -rwxr-xr-- 1 web1 client0 0 2011-02-12 15:43 .htaccess
    -rw-r--r-- 1 root root 78 2011-02-13 21:44 index.html
    -rwxr-xr-- 1 web1 client0 34 2011-02-12 15:43 robots.txt
    drwxr-xr-x 2 web1 client0 4096 2011-02-12 15:43 stats
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Can you delete index.html and upload your own index file?
     
  13. letrstotheprez

    letrstotheprez New Member

    i've tried that multiple times
     
  14. mike_p

    mike_p Member

    I suspect you've set up more than one website on the server and you're seeing the first site. Try editing the index.html for the first site and seeing if that shows in your browser.

    If that happens then we can guide you through making sure the correct site shows.
     
  15. letrstotheprez

    letrstotheprez New Member

    The only other website on there is in the default apache directory (/var/www) and that's also not the page that's showing up
     
  16. falko

    falko Super Moderator ISPConfig Developer

    How did you try to delete the file? Through FTP, or on the shell? Since index.html is owned by root, you must log in as root on the shell and delete the file:
    Code:
    rm -f index.html
     
  17. letrstotheprez

    letrstotheprez New Member

    i did just that and it didn't work
     
  18. mike_p

    mike_p Member

    If it didn't work, what error message did it give?
     
  19. falko

    falko Super Moderator ISPConfig Developer

    You couldn't delete the file as root on the shell? :confused:
     
  20. letrstotheprez

    letrstotheprez New Member

    No I did delete the file and then I uploaded the new one but from a webbrowser it still displays the old one
     

Share This Page