Results 1 to 10 of 10

Thread: Apache not updating files

  1. #1
    Join Date
    Dec 2013
    Beans
    5

    Apache not updating files

    hi
    I'm using apache2 to host a website on my computer. when i first used it everything was fine, but when I came to change the pages for an update they didn't change I managed to get it too work eventually but I had to remove it and reinstall it. This doesn't seem right to me. Now I've come to update it again and its still not updating. what am I doing wrong, I'm putting all the files in the www folder and restarting apache. The web address is kvjuniors.zapto.org if the page is orange then it hasn't updated it should be grey atm. please try and keep your answers simple in a bit of a newbie.

  2. #2
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,347
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Apache not updating files

    Sometimes you have to clear the cache within the browser to get the updated page to load correctly. It can be a pain if you are making a lot of small changes. The alternative is to use 4 browsers: opera, chrome, chromium, firefox, and rotate between them for each update.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  3. #3
    Join Date
    Dec 2013
    Beans
    5

    Re: Apache not updating files

    ive tried that several times and nothing has happened its still the same if you visit this link then the colours should be grey and red but they are orange and red which is the bit ive changed you check to see if its cache because you wont have viewed the website before

  4. #4
    Join Date
    Sep 2007
    Location
    UK
    Beans
    367
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Apache not updating files

    It appears to be down completely at them moment. I'd agree on using multiple browsers in general as well as to help with your problem. I always test on IE, FF and Chrome as a minimum.

    Are you hand coding this or are you using some form of CMS. Just wondering because if your using a CMS the CMS may be caching the page rather than the browser. It does sound like your hand coding though when you said change the pages. Do you have anything that caches pages internally on the sever in your website code if not using a CMS.
    Always do things the hard way. After a while you learn how to make the hard way the easy way.

    My blog: http://foreverythingit.co.uk

  5. #5
    Join Date
    Dec 2013
    Beans
    5

    Re: Apache not updating files

    Fixed the website didn't set the dns redirect to update automatically. Im hand coding this and Im not aware of anything that caches pages unless its a default in apache I've just installed it and put the files in the folder and used it. I've tried restarting it. as far as i know there is nothing that caches the website page unless dreamweaver has added it. I've looked through the code and I have have found some things that might be it but im not sure
    Code:
    <html lang="en" class=" js flexbox canvas canvastext webgl no-touch geolocation postmessage websqldatabase 
    indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius 
    boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d 
    csstransitions fontface video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths">
    the 'local storage' , 'sessionstorage' and 'applicationcache' concern me would this be caching the page I didnt add this.

  6. #6
    Join Date
    Nov 2008
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Apache not updating files

    Quote Originally Posted by 14.rileyevans View Post
    hi
    I'm using apache2 to host a website on my computer. when i first used it everything was fine, but when I came to change the pages for an update they didn't change I managed to get it too work eventually but I had to remove it and reinstall it. This doesn't seem right to me. Now I've come to update it again and its still not updating. what am I doing wrong, I'm putting all the files in the www folder and restarting apache. The web address is kvjuniors.zapto.org if the page is orange then it hasn't updated it should be grey atm. please try and keep your answers simple in a bit of a newbie.
    Where are you placing the files - it seems Ubuntu is using the default welcome page right now
    Ubuntu Forums Moderation Staff
    So don't be ashamed to wear your crown, you're a king you're a queen inside and out

  7. #7
    Join Date
    Dec 2013
    Beans
    5

    Re: Apache not updating files

    Quote Originally Posted by sandyd View Post
    Where are you placing the files - it seems Ubuntu is using the default welcome page right now
    they are in the www folder my index.html had just got deleted by mistake should be working now

  8. #8
    Join Date
    Sep 2007
    Location
    UK
    Beans
    367
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Apache not updating files

    its grey here
    Always do things the hard way. After a while you learn how to make the hard way the easy way.

    My blog: http://foreverythingit.co.uk

  9. #9
    Join Date
    Dec 2013
    Beans
    5

    Re: Apache not updating files

    Quote Originally Posted by bigmonmulgrew View Post
    its grey here
    yeah ive reinstalled the server again to get it to work i think apache is caching files automatically with out me knowing is there any settings that i should change. it seems to be on as default and i dont know how to disable it

  10. #10
    Join Date
    Sep 2007
    Location
    UK
    Beans
    367
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Apache not updating files

    Have you tried making a change and checking it form another web browser or device?

    The default settings should be fine. I think Apache has the cache turned off by default anyway but you can check by going to /etc/apache2/mods-enables and see whats there. List whats in that directory and post the results but none of the cache stuff should be turned on by default.
    Always do things the hard way. After a while you learn how to make the hard way the easy way.

    My blog: http://foreverythingit.co.uk

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •