LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2014, 08:45 AM   #1
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Rep: Reputation: 27
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.
 
Old 09-29-2014, 09:46 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Web sites served by apache are defined in httpd.conf file and maybe in other included confs, I would start by looking here
 
Old 09-30-2014, 12:49 AM   #3
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Original Poster
Rep: Reputation: 27
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"]
 
Old 10-02-2014, 09:21 AM   #4
Bller
Member
 
Registered: Aug 2009
Location: Bucharest, Romania
Distribution: Slackware 14.1
Posts: 226

Rep: Reputation: 17
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 !
 
Old 10-02-2014, 12:31 PM   #5
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Original Poster
Rep: Reputation: 27
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!
 
Old 10-10-2014, 06:45 AM   #6
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Original Poster
Rep: Reputation: 27
bump!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Debian as VirtualBox guest ursusca Linux - Virtualization and Cloud 3 01-20-2010 07:42 AM
Apache serving blank pages??? Any ideas helptonewbie Linux - Server 15 08-22-2008 06:37 AM
Apache not serving PHP5 pages rfw62 Linux - Newbie 3 03-06-2008 08:55 PM
Apache not serving pages bcf2 Linux - Software 1 11-22-2005 04:46 AM
Redhat 9, apache + frontpage not serving pages except admin page JRinOKC Linux - Newbie 5 01-12-2004 03:58 AM


All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration