LinuxQuestions.org
Visit Jeremy's Blog.
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-15-2009, 09:35 AM   #16
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167

Quote:
Originally Posted by mtlhd View Post
well, the only thing that worked was telnet to itself at 127.0.0.1 80 no other machine could connect to it.

Not even my windows computer on the same network.
Sounds like you might have an issue with a firewall, what does:

Code:
iptables -L
Show?
 
Old 01-15-2009, 01:43 PM   #17
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by madman_lxl View Post
if your having issues and this server is a from scratch build try this guide http://www.howtoforge.com/perfect_setup_debian_etch just ignore the ISP config (i dis-like ISP config's feature set but u can try it) and anything else you doing want. and install webmin for ease of maintenance through a webpage.

just a thought to make life easier.
Thanks man, I will start over and follow this tutorial step by step and report back to here.

Repo, I am pretty sure my router is configured for all of the computers within to communicate unhindered, but I will check that also and report back. I Know i configured it to allow port 80 traffic to my Linux box's inside IP.

Thanks for your help guys, thats what the Linux community is all about.

-mtlhd
 
Old 01-19-2009, 07:52 AM   #18
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
Well, I did that entire walk through and this is the end result.

---------------------------------------------------------------------------------------------
Not Found

The requested URL /apache2-default/ was not found on this server.
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at devium.kicks-ass.net Port 80
---------------------------------------------------------------------------------------------

Sorry rweaver, I didn't catch your post and have not yet tried the ip tables, I will do that tonite when I return home, and post the results.
 
Old 02-08-2009, 07:16 PM   #19
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by mtlhd View Post
Well, I did that entire walk through and this is the end result.

---------------------------------------------------------------------------------------------
Not Found

The requested URL /apache2-default/ was not found on this server.
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at devium.kicks-ass.net Port 80
---------------------------------------------------------------------------------------------

Sorry rweaver, I didn't catch your post and have not yet tried the ip tables, I will do that tonite when I return home, and post the results.
I dont see how it could be networking problem... The server signature appears at the bottom meaning the request gets to the server itself, I just get nothing content wise. I have hunted on google for hours with no answers, is there anywhere i can go for a really good apache2 site config guide? THis apache 2 is not any good for me so far.
 
Old 02-08-2009, 10:19 PM   #20
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
You are right; the report that apache is getting the request and replying at all does indicate that the firewall is not getting in your way, at least for this request.

On re-reading the thread, I notice two problem areas that could be getting in your way:
1. Do you have SELinux enabled? I am not sure if Debian distributes their stuff with this turned on by default or not. If you do, the fact that you are pointing your site at /home/me/www/... could be a problem. In my distributions, at least, the files under /home are, by default, not marked to allow apache to access them. You can check if SELinux is a potential problem by giving the command
Code:
#sestatus
This will report if SELinux is enabled, and whether it is in enforcing or permissive mode. Only if it is enabled and in enforcing mode could it be giving you this trouble.

2. The report that your server is trying to find something called apache2-default might be a clue that there is a problem with your virtual server configuration. The way apache deals with a request if it thinks that virtual servers are present is to match up the URL that comes in with the request against the ServerName declared for each <Virtual Host> block. The first one that matches is used for the request. If none matches, then the first Virtual Host in the list is used. That you see a reference to apache2-default might mean that the URL requested does not match any ServerName that is actually defined in your apache configuration. To find out what the server actually thinks of your configuration, run the command [
Code:
#httpd -t -D DUMP_VHOSTS
This will report not only the names of all the Virtual Hosts that the server would recognize, but also where the configuration info is found for all of them plus the default server.

If you run into more problems, please post the results of either 1 or 2, or examine the logfile(s) for the httpd server. The location for these can be found by searching through apache2.conf for the term ErrorLog.
 
Old 02-09-2009, 07:53 AM   #21
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by mtlhd View Post
I dont see how it could be networking problem... The server signature appears at the bottom meaning the request gets to the server itself, I just get nothing content wise. I have hunted on google for hours with no answers, is there anywhere i can go for a really good apache2 site config guide? THis apache 2 is not any good for me so far.
I suggest you read the entire thread rather than the last couple posts.
 
Old 05-10-2009, 02:26 PM   #22
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
may have found where problem resides, what do I do?

Hey all, I'm fighting my Apache2 server, I am still getting the classic NOT FOUND error saying / doesnt exist and stuff.

well after doing much work, now knowing all networking is done and even have samba running and sharing my web root folder with my windows web dev machine, I still cant get apache2 to show content to the www.

Upon checking there error log this is what i see..............

*****************************************************************

[Sun May 10 15:20:07 2009] [error] [client 24.210.220.83] File does not exist: /htdocs, referer: http://www.deviumrocks.com/

*****************************************************************

why is is looking for htdocs?
my web root is /home/my user account/www/webroot

is there somewhere in configurations I can fix this?
Thanks all!

-mtlhd
 
Old 05-10-2009, 02:30 PM   #23
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
my sites enabled config file - where have I gone wrong?

Here is my sites enabled config file - what is wrong?

*****************************************************

NameVirtualHost www.deviumrocks.com
<VirtualHost www.deviumrocks.com>
ServerAdmin webmaster@localhost

DocumentRoot "/home/chad/www/deviumrocks"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/home/chad/www/deviumrocks">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>
 
Old 05-10-2009, 03:44 PM   #24
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
Well, I started out to answer this question, found that my initial take on the problem was completely wrong, and looked at your site. Your server is (correctly) delivering a page that results in the NOT FOUND error message, but that is a problem with the web page, not the server itself. When the NOT FOUND message appeared, I clicked on View Source, and found this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
  <title>deviumrocks.com </title>
  
</head>
<frameset rows="100%,*" border="0">
  <frame src="http://devium.kicks-ass.net" frameborder="0" />
  <frame frameborder="0" noresize />
</frameset>

<!-- pageok -->
<!-- 06 -->
<!-- 7.9-->
</html>
It appears to me that you have an index page that consists of just a single frame; that frame refers to a (presumably non-existent virtual host devium.kicks-ass.net. Since the server knows nothing about this, it falls back to its default virtual host configuration (the first one defined in the virtual host sequence), and goes off into the weeds.

For further testing, I recommend that you put up an index page that is simpler (makes no references to other sites or files), to avoid confusion. Once you are sure that the basics work, then you can return to this page-design problem.

Good luck.
 
Old 05-10-2009, 05:28 PM   #25
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
I don't understand, because this is how I coded the page.

_________________________________________________________________
<html>
<head>
<title>TESTING DEVIUMROCKS.COM</title>
<body>
<h1>THIS IS A TEST PAGE</h1>
<br />
<br />
<br />
<?
echo "***********if you see this text, PHP is working************" ;
?>
</body>
</html>
_________________________________________________________________

What is happening?
 
Old 05-10-2009, 09:24 PM   #26
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
Clearly, the server is not using the page you created (and posted) when my browser requested the default by following the link in your post about two back in this list. There are several possibilities, but the most likely is that the server is not getting its configuration file from where you think it is getting it. To find out more, first issue the command
Code:
# ps aux |grep httpd
This will give you a list of the server processes along with the invocation string for each. If there is an option -f on any of the lines, the following string specifies the location of the configuration file the server is actually using.

Otherwise (or maybe anyway), use the command (note capital S)
Code:
#httpd -S
If you discovered an explicit configuration file from the test above, include it in the server query like this
Code:
# httpd -S -f /{configfile}
This will list information about each virtual server that the daemon is actually supporting, along with the location in the configuration file where that virtual server is defined.

If this report does not make sense to you, post the result here, and we may be able to interpret it for you.
 
Old 05-10-2009, 09:58 PM   #27
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
Thanks for your help dkm999, I wont have access to this server again until tomorrow night, so I will try everything tomorrow when i get back to it. Appreciate your time. Will post results tomorrow evening.

-mtlhd
 
Old 05-11-2009, 06:31 PM   #28
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
dkm999,

here is the result to the first command

Code:
root      3766  0.0  0.0   2852   704 pts/0    R+   19:30   0:00 grep httpd
the commands following were not found.

thanks again for your help.
 
Old 05-11-2009, 07:16 PM   #29
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
WELL ALAS!
IT WORKS!

The problem ended up being a bogus site-enabled conf page.

I edited the default page to its syntax and it wouldnt run!

since i fixed it I dont have the old to show you, but I know it had everything out of whack, 'NameVirtualHost' was ont he first line and <virtualhost blah> was underneath it and everything. I followed how the one at work was set up even though it was apache1 and BAM...im in business.

so guys, for my final and last question to this problem, is there anything else I need to do to this conf file to make the site more secure?

Code:
<VirtualHost *>
  ServerName www.deviumrocks.com
  ServerAlias deviumrocks.com
  ServerAdmin deviumrocks@yahoo.com
  DocumentRoot /home/myusername/www/deviumrocks

  <IfModule mod_fcgid.c>
    SuexecUserGroup web1 web1
    PHP_Fix_Pathinfo_Enable 1
    <Directory /home/chad/www/deviumrocks>
      Options +ExecCGI
      AllowOverride All
      AddHandler fcgid-script .php
      FCGIWrapper /var/www/php-fcgi-scripts/web1/php-fcgi-starter .php
      Order allow,deny
      Allow from all
    </Directory>
  </IfModule>

  # ErrorLog /var/log/apache2/error.log
  # CustomLog /var/log/apache2/access.log combined
  ServerSignature On

</VirtualHost>
THANK YOU ALL FOR ALL YOU HELP!
 
  


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
memory leak: Parent killing child process wkhoo Programming 12 06-04-2008 05:39 PM
does killing child processesreduce CPU load average?? expeliarmus Linux - Newbie 1 08-02-2007 12:52 AM
does killing child processes reduce CPU load average?? expeliarmus Linux - General 2 08-02-2007 12:43 AM
Killing a child process from another child marri Programming 6 10-01-2004 07:08 PM
Killing child process coolfrog Programming 3 09-28-2004 02:58 PM

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

All times are GMT -5. The time now is 08:16 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