LinuxQuestions.org
Review your favorite Linux distribution.
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 05-10-2015, 03:07 AM   #1
ochocobull
LQ Newbie
 
Registered: Jul 2011
Location: Central Oregon
Distribution: Debian lenny
Posts: 25

Rep: Reputation: Disabled
Help with Apache2 configuration.


Hello everyone,

I need a little bit of help. I am attempting to install a couple of web based applications, (loganalyzer and rancid). I am running Debian Wheezy and I am creating two separate directories (/var/www/loganalyzer and /var/www/rancid). My overall goal is to be able to connect to these different applications on the same server by typing in the following urls (http://IP_address/loganalyzer and http://IP_address/rancid) respectively.

I am beating my head against the wall configuring the Apache web service. I cannot get these applications to pull up. All I get is a blank screen with both instances.

Can anyone point me in the right direction to help me get this task completed? I truly appreciate the help and if there is any other information you need from me please let me know.
 
Old 05-10-2015, 04:49 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,380

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
What do your apache logs say?
 
Old 05-10-2015, 05:17 AM   #3
ochocobull
LQ Newbie
 
Registered: Jul 2011
Location: Central Oregon
Distribution: Debian lenny
Posts: 25

Original Poster
Rep: Reputation: Disabled
Nothing in the access log or other_vhosts_access.log

the only entry in the error log is "Fri May 08 14:50:45 2015] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations"

All configuration files are loaded into the above mentioned directories and the Apache2 service stops and starts with no errors. Thanks for the quick response.
 
Old 05-10-2015, 05:51 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,380

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
That suggests your client is not even connecting to Apache.
Maybe you don't have it listening on that IP address, or you have some firewall or such.
 
Old 05-10-2015, 05:56 AM   #5
ochocobull
LQ Newbie
 
Registered: Jul 2011
Location: Central Oregon
Distribution: Debian lenny
Posts: 25

Original Poster
Rep: Reputation: Disabled
When I connect to the default web page I get the generic:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

This entry now shows up in the access.log file:

192.168.1.100 - - [10/May/2015:02:52:26 -0700] "GET / HTTP/1.1" 304 210 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"
192.168.1.100 - - [10/May/2015:02:52:26 -0700] "GET /favicon.ico HTTP/1.1" 404 499 "http://10.20.20.154/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"

I am fairly certain this is a simple configuration issue with virtual hosts or a derivative thereof but I really don't know enough about Apache2 to make an educated guess.
 
Old 05-10-2015, 06:00 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,380

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Nothing in the error logs?
Apache has 'read' rights to the dir's and their contents?
 
Old 05-10-2015, 06:02 AM   #7
ochocobull
LQ Newbie
 
Registered: Jul 2011
Location: Central Oregon
Distribution: Debian lenny
Posts: 25

Original Poster
Rep: Reputation: Disabled
I did get another log entry in the error.log file

[Sun May 10 02:52:26 2015] [error] [client 192.168.1.100] File does not exist: /var/www/favicon.ico, referer: http://1x.x.x4/
 
Old 05-10-2015, 06:04 AM   #8
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,380

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Please use CODE tags like this:
Code:
paste code here
Quote:
I am fairly certain this is a simple configuration issue with virtual hosts or a derivative thereof but I really don't know enough about Apache2 to make an educated guess.
You're not using virtual hosts though, simply subdir's of the default host.
 
Old 05-10-2015, 06:07 AM   #9
ochocobull
LQ Newbie
 
Registered: Jul 2011
Location: Central Oregon
Distribution: Debian lenny
Posts: 25

Original Poster
Rep: Reputation: Disabled
That was my assumption. I am going to try to install the loganalyzer application once again. If need be I will remove the entire application and try again. I really do thank you for your time. Have a great night.
 
Old 05-10-2015, 09:06 PM   #10
jobart08
Member
 
Registered: Sep 2014
Posts: 68

Rep: Reputation: Disabled
Try this link. This vid helped me in my virtual hosts configuration.

www.youtube.com/watch?v=Ei-ah2ruEkM
 
Old 05-11-2015, 01:00 AM   #11
ochocobull
LQ Newbie
 
Registered: Jul 2011
Location: Central Oregon
Distribution: Debian lenny
Posts: 25

Original Poster
Rep: Reputation: Disabled
Thank you jobart08 I appreciate the link.
 
Old 05-11-2015, 03:24 AM   #12
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Please provide the output of apache2ctl -S. This will list all host configurations apache sees and have affect. This is to rule out that you don't use a virtual host configuration.

Normaly apache uses index.html files in a directory if you only use the directory as the URL. Make sure you have those inside the rancid and loganalyzer directories. Maybe create a simple file just to make sure apache is happy.

Maybe open up a second terminal on the web server and tail -f /var/log/apache/error.log or tail -f /var/log/apache/access.log to see what apache logs while you open up the webpages.
 
  


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] Apache2 - Configuration Issues Steve R. Linux - Software 0 06-22-2014 06:45 PM
Apache2 Configuration or Wordpress Configuration: Wordpress index.php not loading khun Linux - Newbie 5 05-18-2012 09:26 AM
apache2 perl configuration rblampain Linux - Software 2 01-15-2012 02:41 PM
Need help: Apache2 Configuration tombelcher7 Linux - Server 2 02-29-2008 09:32 AM
apache2 configuration e1000 Linux - Networking 1 01-28-2004 12:23 AM


All times are GMT -5. The time now is 02:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration