LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-12-2015, 08:19 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
Question How to tell if lampp was ever running a particular site


Having a debate over here and not sure how to prove or disprove it. They have an old version of lampp setup on a server, and supposedly it used to run a mirrored copy of a website from another server, and they used it as their dev site before making changes on the real one.
The folder containing all the data on the lampp server is not in /opt/lampp/htdocs, and htdocs isn't a link to the folder on there. So I really think that this folder was just a copy of the live server's files and never actually running to where they could see the site in action.
My question is, what would be the proper way to figure out who is correct? Beyond doing what I already did, I'm not sure how, and not real confident that's a concrete investigation.
Thanks!
 
Old 01-12-2015, 04:28 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rjo98 View Post
The folder containing all the data on the lampp server is not in /opt/lampp/htdocs, and htdocs isn't a link to the folder on there.
I think the search order should be: any startup scripts and configuration files, any log file contents. If you want to investigate further: shell scripts, cron spools, shell history and any backups.
 
1 members found this post helpful.
Old 01-12-2015, 04:35 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
I can't find anything that would auto start lampp or anything cron'd either. Nothing in history for any accounts still on there. Nothing in the logs either.
 
Old 01-12-2015, 04:46 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
You left out configuration files - do they exist and are they configured for that machine?

Also a big clue - is a database in use by the site, and if so, does it exist on that machine, and if so, are there any host and timestamp fields that would indicate access on that machine?
 
1 members found this post helpful.
Old 01-12-2015, 04:48 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Guess that's my problem for config files, i'm not sure what config files to look at for this particular issue.

No databases, it's just a real basic html thing that looks like it should have been left in the early 2000s :-)
 
Old 01-12-2015, 08:09 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
stat /opt/lampp/htdocs
?
 
1 members found this post helpful.
Old 01-13-2015, 08:38 AM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Access: 2015-01-12 09:15:03.000000000 -0500
Modify: 2008-11-06 17:04:09.000000000 -0500
Change: 2012-09-22 17:22:55.000000000 -0400
 
Old 01-13-2015, 09:37 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Well, I don't know from that, Sorry. Should be a clue to base some comparative analysis against...?

How about digging through either /var/log/apt/history.log* (Ubu) or /var/log/yum.log* (CentOS)?

This assumes it wasn't installed from source.
I love a good mystery, but this one has me stumped.
 
1 members found this post helpful.
Old 01-13-2015, 10:02 AM   #9
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Can't find any smoking guns looking in /var/log either. I'm stumped myself too at this point.
 
Old 01-13-2015, 10:49 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
surely there'd be some http log(s) under /var/log/...?

Last edited by Habitual; 01-13-2015 at 11:23 AM.
 
1 members found this post helpful.
Old 01-13-2015, 12:48 PM   #11
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
If there was, it must have been long rotated out by now or something. or it never existed like I figured :-)
 
Old 01-13-2015, 12:53 PM   #12
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Does it run now? That is, if you start the server and hit the "site" and hit the vhost url (or even localhost), does it give you the page via http?
 
1 members found this post helpful.
Old 01-13-2015, 12:55 PM   #13
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Nothing runs now. I don't even see a process with lampp in the name running on the server. If I hit the IP of the server in a browser from another computer I don't get anything. Only web stuff running on there is webmin which does work at port 10000.
 
1 members found this post helpful.
Old 01-13-2015, 01:42 PM   #14
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
A key aspect of this question, and one you alone can know, is the importance of determining whether it ever worked vs the importance of making it work. If you are doing forensics of some sort, then that requires one mindset, whereas if you are trying to work with the site it requires another.

My sense is that maybe you have been handed the task of working with this site mirror with the assumption that it was already working, so should be easy to "just use it"! The question of whether it has ever worked would have emerged from the attempt to do so.

If that perspective is in the ballpark (and of course, it may not be!), then it is probably less important to prove whether it ever worked than to have everyone recognize the current state of the lamp server/site and proceed from that basis.

Based on what we know here, I would conclude that there is no clear evidence that it ever worked on that machine, and unless someone can demonstrate that it did and does now work, there is little point in debating it further with your co-workers. So whoever says it did or does work should put up or shut up, in the nicest way of course, by demonstrating that fact. If not...

Then the question/task becomes one of setting up the/a lamp server as a development mirror for that site. That will shift the burden of work from "use it" to "set this up so that you can use it", which is a separate task that throws off any real or imaginary historical baggage and allows you to progress...
 
1 members found this post helpful.
Old 01-13-2015, 01:47 PM   #15
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Yeah, you are in the ballpark there, pretty close to the situation here. My guess is even if it did work at some point almost a decade ago, and they've lived without it this long, I'm sure they can continue to live without it. Just wish there was a way that I could say, "oh yes there was a site with a name like this one configured long ago but it's broke" or "there's nothing I can find that proves it was ever set up" (which I feel is the case).
 
  


Reply



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
how to check if the lampp is up and running? sayhello_to_the_world Linux - Newbie 3 04-25-2014 06:59 AM
[SOLVED] Lampp won't start Apache..."another web server daemon running". Ubuntu 9.10 rgannon Linux - Newbie 3 02-18-2013 04:15 AM
[SOLVED] How to install LAMPP so it shows up in /opt/lampp anon091 Linux - Newbie 3 09-24-2009 05:13 PM
how to check what site is running on binary_0011 Linux - Newbie 1 05-21-2008 10:54 PM
What's That Site Running? Raggit General 7 07-01-2005 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:40 AM.

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
Open Source Consulting | Domain Registration