[SOLVED] Debian fans, I need your help.... web server is killing my inner child.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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..............
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>
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>
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
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.
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>
_________________________________________________________________
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.
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.
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>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.