LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache on Debian Virtualbox guest serving old pages after reboot (https://www.linuxquestions.org/questions/linux-newbie-8/apache-on-debian-virtualbox-guest-serving-old-pages-after-reboot-4175520475/)

austinium 09-29-2014 07:45 AM

Apache on Debian Virtualbox guest serving old pages after reboot
 
hi,

i am facing a peculiar issue, i am running Debian 6 as a Guest on Virtualbox. This VM runs apache httpd which serves static pages.

Recently after a hard reboot of the guest, Apache started serving an older version of the website. The version being served is around half an hour older than what was the latest version.

Details:
Code:

$uname -a
Linux D6Sys 2.6.32-5-686 #1 SMP Sat Jul 12 22:59:16 UTC 2014 i686 GNU/Linux

Code:

# dpkg -l|grep apache
ii  apache2                            2.2.16-6+squeeze12          Apache HTTP Server metapackage
ii  apache2-mpm-worker                2.2.16-6+squeeze12          Apache HTTP Server - high speed threaded model
ii  apache2-utils                      2.2.16-6+squeeze12          utility programs for webservers
ii  apache2.2-bin                      2.2.16-6+squeeze12          Apache HTTP Server common binary files
ii  apache2.2-common                  2.2.16-6+squeeze12          Apache HTTP Server common files

What could have gone wrong?

Hope to hear on this from the learned members here.

keefaz 09-29-2014 08:46 AM

Web sites served by apache are defined in httpd.conf file and maybe in other included confs, I would start by looking here

austinium 09-29-2014 11:49 PM

Debian uses /etc/apache2/apache2.conf in place of httpd.conf

Is there anything in particular which i should be looking for in that file? It appears unchanged to me. It is a very basic setup with just 4 html pages.

Could it be that Virtualbox delays writing changes to the disk, and the VM got rebooted (hard reset) before write to disk?[COLOR="Silver"]

Bller 10-02-2014 08:21 AM

If i get this right, you changed the index.php/html page from the www folder but apache is still showing your old one ?
In this case, or in any case for this matter, make sure do restart httpd/apache2 each time you change anything in the www folder in order for it to properly display the new content.

Hope this helps.

Cheers !

austinium 10-02-2014 11:31 AM

Host: Windows Server 2003
Guest: Debian 6
Usage: Apache httpd serving static HTML pages
Issue: Host went down abruptly due to a power issue, upon reboot the Apache which earlier was showing the latest webpage started showing older versions. Some of the recent files were also missing from /var/www/

I know this sounds strange, i am trying to figure out how and why this happened myself!

austinium 10-10-2014 05:45 AM

bump!


All times are GMT -5. The time now is 10:54 PM.