SlackwareThis Forum is for the discussion of Slackware Linux.
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.
on my slackware 12.2 box I can't access local server.
I was able to in the past and I haven't modified the config
files lately (http.conf, ...).
The exit code of
Code:
/etc/rc.d/rc.httpd start
is 0.
The file
Code:
/var/log/httpd/error_log
doesn't report any errors.
And yet when I try to go to any of these addresses
on my slackware 12.2 box I can't access local server.
I was able to in the past and I haven't modified the config
files lately (http.conf, ...).
The exit code of
Code:
/etc/rc.d/rc.httpd start
is 0.
The file
Code:
/var/log/httpd/error_log
doesn't report any errors.
And yet when I try to go to any of these addresses
Take a look at /var/www/htdocs and make sure you still have an index.html file. Sometimes, it gets replaced during upgrades.
no, it's still there.
besides if it were missing I'd get the contents of the directory
but no error message
Before that I tried some php pages that I wrote and I know
that php is working because
I already ran that command. There are no syntax errors in the config.
Quote:
Code:
netstat -ltp| fgrep http
Will show you if you have a http server listening on a port.
I'll try that later. Right now httpd is not running.
Quote:
Did you specify a "Listen" directive in your httpd.conf?
The Default is "Listen 80"
If you bind the httpd server to a specific ip address then it won't listen on localhost unless told to do so.
I didn't change the original settings and in my browser
even
Code:
http://127.0.0.1:80/
didn't work
And, by the way, I don't have that issue with slax
(with xampp).
# iptables -nvL
FATAL: Module ip_tables not found.
iptables v1.4.2: can't initialize iptables table `filter': iptables who
? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Quote:
Also, on your httpd.conf file, look for this section (ServerName www.example.com:80) to see what it says.
The iptables command needs to be done as root. I doubt this is the problem though. Go ahead and comment out the ServerName section. I don't think it is necessary to manually put in 127.0.0.1 in there. Once you make the change, go ahead and restart the service:
Thanks for the suggestion about /etc/httpd/httpd.conf
I commented out the ServerName line and restarted apache
and that did the trick
However every time the daemon would start I'd get this message
Code:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
So I thought I would put this line instead
Code:
ServerName localhost
It worked and this time I didn't get the annoying message.
Again, thanks a lot to everybody who tried to help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.