Apache running but no response from server?iptables configuration?Apache will not come back up - httpd dead but subsys lockedJust started up a fresh Amazon RHEL instance running httpd, why is it not accessible by public DNS?ssl_error_rx_record_too_long (FF/Django/StartSSL/Windows)How to get a core dump from apache when segfaultingconfiguring httpd with valid/invalid IPsApache httpd does not implement updates to a 301 redirect configurationWebServer is inaccessibleVirtualBox setup, httpd won't installSSL Errors on Apache running on CentOSApache won't start with systemd
Does this website provide consistent translation into Wookiee?
Displaying an Estimated Execution Plan generates CXPACKET, PAGELATCH_SH, and LATCH_EX [ACCESS_METHODS_DATASET_PARENT] waits
How to get file name from inside a latex file?
Drug Testing and Prescribed Medications
An adjective or a noun to describe a very small apartment / house etc
Splitting polygons and dividing attribute value proportionally using ArcGIS Pro?
Would a legitimized Baratheon have the best claim for the Iron Throne?
A♭ major 9th chord in Bach is unexpectedly dissonant/jazzy
Learning how to read schematics, questions about fractional voltage in schematic
What detail can Hubble see on Mars?
Employee is self-centered and affects the team negatively
How to increase speed on my hybrid bike with flat handlebars and 700X35C tyres?
Why always 4...dxc6 and not 4...bxc6 in the Ruy Lopez Exchange?
The unknown and unexplained in science fiction
why it is 2>&1 and not 2>>&1 to append to a log file
Select list elements based on other list
What's weird about Proto-Indo-European Stops?
Did any early RISC OS precursor run on the BBC Micro?
In a series of books, what happens after the coming of age?
A problem with Hebrew and English underlined text
Does restarting the SQL Services (on the machine) clear the server cache (for things like query plans and statistics)?
What is the meaning of "matter" in physics?
Texture vs. Material vs. Shader
And now you see it
Apache running but no response from server?
iptables configuration?Apache will not come back up - httpd dead but subsys lockedJust started up a fresh Amazon RHEL instance running httpd, why is it not accessible by public DNS?ssl_error_rx_record_too_long (FF/Django/StartSSL/Windows)How to get a core dump from apache when segfaultingconfiguring httpd with valid/invalid IPsApache httpd does not implement updates to a 301 redirect configurationWebServer is inaccessibleVirtualBox setup, httpd won't installSSL Errors on Apache running on CentOSApache won't start with systemd
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I've got a fresh Fedora 15 installation on my server that's been giving me trouble.
My first problem was that httpd wouldn't start. I kept getting an error that there was a segfault and the sysadmin eventually traced it back to a problem with mod_perl, so he removed it and httpd started fine.
I've had another very vexing problem recently, though: I get no response from Apache.
- I can SSH into my server
- I've got the right IP address
- It pings
- The httpd service is up and running
- I've got an index.html file in the webroot
- If I wget XX.XXX.XXX.XXX (the server's IP address) when SSH'd into the server itself, I get a response
But whenever I make a request to the server from any computer, regardless of ISP, I get no response - Chrome says it can't even connect. I'm absolutely stumped about how to fix it, and I've bugged the sysadmin quite a bit already. My robotics team gets this server space free from a company and I like to bug the sysadmin as little as possible about this kind of thing, but I suppose I'll have to if this question doesn't turn up any solutions.
Thanks for any help.
httpd
add a comment |
I've got a fresh Fedora 15 installation on my server that's been giving me trouble.
My first problem was that httpd wouldn't start. I kept getting an error that there was a segfault and the sysadmin eventually traced it back to a problem with mod_perl, so he removed it and httpd started fine.
I've had another very vexing problem recently, though: I get no response from Apache.
- I can SSH into my server
- I've got the right IP address
- It pings
- The httpd service is up and running
- I've got an index.html file in the webroot
- If I wget XX.XXX.XXX.XXX (the server's IP address) when SSH'd into the server itself, I get a response
But whenever I make a request to the server from any computer, regardless of ISP, I get no response - Chrome says it can't even connect. I'm absolutely stumped about how to fix it, and I've bugged the sysadmin quite a bit already. My robotics team gets this server space free from a company and I like to bug the sysadmin as little as possible about this kind of thing, but I suppose I'll have to if this question doesn't turn up any solutions.
Thanks for any help.
httpd
2
Have you checked to see if the firewall is running on the server? It is possible that it is an blocking external port 80/433 requests
– enterzero
Oct 7 '11 at 4:38
Same here, but Opera connects just fine. Same thing happens to vsftpd. Chrome chokes but Opera does it just fine.
– SDsolar
Jan 19 '17 at 0:49
add a comment |
I've got a fresh Fedora 15 installation on my server that's been giving me trouble.
My first problem was that httpd wouldn't start. I kept getting an error that there was a segfault and the sysadmin eventually traced it back to a problem with mod_perl, so he removed it and httpd started fine.
I've had another very vexing problem recently, though: I get no response from Apache.
- I can SSH into my server
- I've got the right IP address
- It pings
- The httpd service is up and running
- I've got an index.html file in the webroot
- If I wget XX.XXX.XXX.XXX (the server's IP address) when SSH'd into the server itself, I get a response
But whenever I make a request to the server from any computer, regardless of ISP, I get no response - Chrome says it can't even connect. I'm absolutely stumped about how to fix it, and I've bugged the sysadmin quite a bit already. My robotics team gets this server space free from a company and I like to bug the sysadmin as little as possible about this kind of thing, but I suppose I'll have to if this question doesn't turn up any solutions.
Thanks for any help.
httpd
I've got a fresh Fedora 15 installation on my server that's been giving me trouble.
My first problem was that httpd wouldn't start. I kept getting an error that there was a segfault and the sysadmin eventually traced it back to a problem with mod_perl, so he removed it and httpd started fine.
I've had another very vexing problem recently, though: I get no response from Apache.
- I can SSH into my server
- I've got the right IP address
- It pings
- The httpd service is up and running
- I've got an index.html file in the webroot
- If I wget XX.XXX.XXX.XXX (the server's IP address) when SSH'd into the server itself, I get a response
But whenever I make a request to the server from any computer, regardless of ISP, I get no response - Chrome says it can't even connect. I'm absolutely stumped about how to fix it, and I've bugged the sysadmin quite a bit already. My robotics team gets this server space free from a company and I like to bug the sysadmin as little as possible about this kind of thing, but I suppose I'll have to if this question doesn't turn up any solutions.
Thanks for any help.
httpd
httpd
asked Oct 7 '11 at 4:25
TreyKTreyK
14014
14014
2
Have you checked to see if the firewall is running on the server? It is possible that it is an blocking external port 80/433 requests
– enterzero
Oct 7 '11 at 4:38
Same here, but Opera connects just fine. Same thing happens to vsftpd. Chrome chokes but Opera does it just fine.
– SDsolar
Jan 19 '17 at 0:49
add a comment |
2
Have you checked to see if the firewall is running on the server? It is possible that it is an blocking external port 80/433 requests
– enterzero
Oct 7 '11 at 4:38
Same here, but Opera connects just fine. Same thing happens to vsftpd. Chrome chokes but Opera does it just fine.
– SDsolar
Jan 19 '17 at 0:49
2
2
Have you checked to see if the firewall is running on the server? It is possible that it is an blocking external port 80/433 requests
– enterzero
Oct 7 '11 at 4:38
Have you checked to see if the firewall is running on the server? It is possible that it is an blocking external port 80/433 requests
– enterzero
Oct 7 '11 at 4:38
Same here, but Opera connects just fine. Same thing happens to vsftpd. Chrome chokes but Opera does it just fine.
– SDsolar
Jan 19 '17 at 0:49
Same here, but Opera connects just fine. Same thing happens to vsftpd. Chrome chokes but Opera does it just fine.
– SDsolar
Jan 19 '17 at 0:49
add a comment |
2 Answers
2
active
oldest
votes
Sounds like a firewall issue if wget works from the command line.
Temporarily disable the firewall using:
service iptables stop
If it works then you know you need to add a rule to your firewall to allow port 80 and or 443.
Awesome! Thanks, that solved it! How would I go about adding exceptions for a general purpose webserver doing FTP, HTTP, and the like?
– TreyK
Oct 7 '11 at 5:31
1
This will tell you how - cyberciti.biz/tips/…
– enterzero
Oct 7 '11 at 5:33
Depends on if you have a GUI installed or not. Being you are using Fedora rather than CentOS I figure there may be a chance you do. If you have the tool available and are running on a graphical dekstop using system-config-firewall may be easier. Do not go back and forth between command line and system-config-firewall though because one will overwrite the other.
– digitaladdictions
Oct 7 '11 at 5:54
I don't have a GUI, no. Really not too much need for one, although I could see how it could come in handy to simplify things.
– TreyK
Oct 7 '11 at 21:20
add a comment |
On CentOS 7 or similar, check if you're running firewalld:
systemctl status firewalld
If you see the service running, you can open port 80 by adding the http
service as explained by root users:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --reload
Incidentally, I once installed CentOS 7 minimal on a machine and the firewall was not installed by default. But using another ISO on another machine, it was installed on its own. And I kept checking on the wrong one, which told me that there was no firewall!
A useful command that will tell you that it's definitely the firewall is nmap:
sudo nmap -sS -O -p80 ip-address
Starting Nmap 7.01 ( https://nmap.org ) at 2017-08-11 15:56 IST
Nmap scan report for ip-address
Host is up (0.0011s latency).
PORT STATE SERVICE
80/tcp open http
If you see filtered instead of open, there's no doubt a firewall. Double check you're in the right machine if you have several terminals open!
Another quick way to check from the terminal is to use curl. On the server:
curl localhost
That should return the homepage. On another machine on the network:
curl ip-address
That should also return the homepage. If you have to press CTRL+C because it sits waiting, or if you get an error like Failed to connect to 1.2.3.4 port 80: No route to host
but got a response when you did it locally, it's a clear sign that something, most likely a firewall, is blocking access.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f319318%2fapache-running-but-no-response-from-server%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sounds like a firewall issue if wget works from the command line.
Temporarily disable the firewall using:
service iptables stop
If it works then you know you need to add a rule to your firewall to allow port 80 and or 443.
Awesome! Thanks, that solved it! How would I go about adding exceptions for a general purpose webserver doing FTP, HTTP, and the like?
– TreyK
Oct 7 '11 at 5:31
1
This will tell you how - cyberciti.biz/tips/…
– enterzero
Oct 7 '11 at 5:33
Depends on if you have a GUI installed or not. Being you are using Fedora rather than CentOS I figure there may be a chance you do. If you have the tool available and are running on a graphical dekstop using system-config-firewall may be easier. Do not go back and forth between command line and system-config-firewall though because one will overwrite the other.
– digitaladdictions
Oct 7 '11 at 5:54
I don't have a GUI, no. Really not too much need for one, although I could see how it could come in handy to simplify things.
– TreyK
Oct 7 '11 at 21:20
add a comment |
Sounds like a firewall issue if wget works from the command line.
Temporarily disable the firewall using:
service iptables stop
If it works then you know you need to add a rule to your firewall to allow port 80 and or 443.
Awesome! Thanks, that solved it! How would I go about adding exceptions for a general purpose webserver doing FTP, HTTP, and the like?
– TreyK
Oct 7 '11 at 5:31
1
This will tell you how - cyberciti.biz/tips/…
– enterzero
Oct 7 '11 at 5:33
Depends on if you have a GUI installed or not. Being you are using Fedora rather than CentOS I figure there may be a chance you do. If you have the tool available and are running on a graphical dekstop using system-config-firewall may be easier. Do not go back and forth between command line and system-config-firewall though because one will overwrite the other.
– digitaladdictions
Oct 7 '11 at 5:54
I don't have a GUI, no. Really not too much need for one, although I could see how it could come in handy to simplify things.
– TreyK
Oct 7 '11 at 21:20
add a comment |
Sounds like a firewall issue if wget works from the command line.
Temporarily disable the firewall using:
service iptables stop
If it works then you know you need to add a rule to your firewall to allow port 80 and or 443.
Sounds like a firewall issue if wget works from the command line.
Temporarily disable the firewall using:
service iptables stop
If it works then you know you need to add a rule to your firewall to allow port 80 and or 443.
answered Oct 7 '11 at 4:43
digitaladdictionsdigitaladdictions
1,1781925
1,1781925
Awesome! Thanks, that solved it! How would I go about adding exceptions for a general purpose webserver doing FTP, HTTP, and the like?
– TreyK
Oct 7 '11 at 5:31
1
This will tell you how - cyberciti.biz/tips/…
– enterzero
Oct 7 '11 at 5:33
Depends on if you have a GUI installed or not. Being you are using Fedora rather than CentOS I figure there may be a chance you do. If you have the tool available and are running on a graphical dekstop using system-config-firewall may be easier. Do not go back and forth between command line and system-config-firewall though because one will overwrite the other.
– digitaladdictions
Oct 7 '11 at 5:54
I don't have a GUI, no. Really not too much need for one, although I could see how it could come in handy to simplify things.
– TreyK
Oct 7 '11 at 21:20
add a comment |
Awesome! Thanks, that solved it! How would I go about adding exceptions for a general purpose webserver doing FTP, HTTP, and the like?
– TreyK
Oct 7 '11 at 5:31
1
This will tell you how - cyberciti.biz/tips/…
– enterzero
Oct 7 '11 at 5:33
Depends on if you have a GUI installed or not. Being you are using Fedora rather than CentOS I figure there may be a chance you do. If you have the tool available and are running on a graphical dekstop using system-config-firewall may be easier. Do not go back and forth between command line and system-config-firewall though because one will overwrite the other.
– digitaladdictions
Oct 7 '11 at 5:54
I don't have a GUI, no. Really not too much need for one, although I could see how it could come in handy to simplify things.
– TreyK
Oct 7 '11 at 21:20
Awesome! Thanks, that solved it! How would I go about adding exceptions for a general purpose webserver doing FTP, HTTP, and the like?
– TreyK
Oct 7 '11 at 5:31
Awesome! Thanks, that solved it! How would I go about adding exceptions for a general purpose webserver doing FTP, HTTP, and the like?
– TreyK
Oct 7 '11 at 5:31
1
1
This will tell you how - cyberciti.biz/tips/…
– enterzero
Oct 7 '11 at 5:33
This will tell you how - cyberciti.biz/tips/…
– enterzero
Oct 7 '11 at 5:33
Depends on if you have a GUI installed or not. Being you are using Fedora rather than CentOS I figure there may be a chance you do. If you have the tool available and are running on a graphical dekstop using system-config-firewall may be easier. Do not go back and forth between command line and system-config-firewall though because one will overwrite the other.
– digitaladdictions
Oct 7 '11 at 5:54
Depends on if you have a GUI installed or not. Being you are using Fedora rather than CentOS I figure there may be a chance you do. If you have the tool available and are running on a graphical dekstop using system-config-firewall may be easier. Do not go back and forth between command line and system-config-firewall though because one will overwrite the other.
– digitaladdictions
Oct 7 '11 at 5:54
I don't have a GUI, no. Really not too much need for one, although I could see how it could come in handy to simplify things.
– TreyK
Oct 7 '11 at 21:20
I don't have a GUI, no. Really not too much need for one, although I could see how it could come in handy to simplify things.
– TreyK
Oct 7 '11 at 21:20
add a comment |
On CentOS 7 or similar, check if you're running firewalld:
systemctl status firewalld
If you see the service running, you can open port 80 by adding the http
service as explained by root users:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --reload
Incidentally, I once installed CentOS 7 minimal on a machine and the firewall was not installed by default. But using another ISO on another machine, it was installed on its own. And I kept checking on the wrong one, which told me that there was no firewall!
A useful command that will tell you that it's definitely the firewall is nmap:
sudo nmap -sS -O -p80 ip-address
Starting Nmap 7.01 ( https://nmap.org ) at 2017-08-11 15:56 IST
Nmap scan report for ip-address
Host is up (0.0011s latency).
PORT STATE SERVICE
80/tcp open http
If you see filtered instead of open, there's no doubt a firewall. Double check you're in the right machine if you have several terminals open!
Another quick way to check from the terminal is to use curl. On the server:
curl localhost
That should return the homepage. On another machine on the network:
curl ip-address
That should also return the homepage. If you have to press CTRL+C because it sits waiting, or if you get an error like Failed to connect to 1.2.3.4 port 80: No route to host
but got a response when you did it locally, it's a clear sign that something, most likely a firewall, is blocking access.
add a comment |
On CentOS 7 or similar, check if you're running firewalld:
systemctl status firewalld
If you see the service running, you can open port 80 by adding the http
service as explained by root users:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --reload
Incidentally, I once installed CentOS 7 minimal on a machine and the firewall was not installed by default. But using another ISO on another machine, it was installed on its own. And I kept checking on the wrong one, which told me that there was no firewall!
A useful command that will tell you that it's definitely the firewall is nmap:
sudo nmap -sS -O -p80 ip-address
Starting Nmap 7.01 ( https://nmap.org ) at 2017-08-11 15:56 IST
Nmap scan report for ip-address
Host is up (0.0011s latency).
PORT STATE SERVICE
80/tcp open http
If you see filtered instead of open, there's no doubt a firewall. Double check you're in the right machine if you have several terminals open!
Another quick way to check from the terminal is to use curl. On the server:
curl localhost
That should return the homepage. On another machine on the network:
curl ip-address
That should also return the homepage. If you have to press CTRL+C because it sits waiting, or if you get an error like Failed to connect to 1.2.3.4 port 80: No route to host
but got a response when you did it locally, it's a clear sign that something, most likely a firewall, is blocking access.
add a comment |
On CentOS 7 or similar, check if you're running firewalld:
systemctl status firewalld
If you see the service running, you can open port 80 by adding the http
service as explained by root users:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --reload
Incidentally, I once installed CentOS 7 minimal on a machine and the firewall was not installed by default. But using another ISO on another machine, it was installed on its own. And I kept checking on the wrong one, which told me that there was no firewall!
A useful command that will tell you that it's definitely the firewall is nmap:
sudo nmap -sS -O -p80 ip-address
Starting Nmap 7.01 ( https://nmap.org ) at 2017-08-11 15:56 IST
Nmap scan report for ip-address
Host is up (0.0011s latency).
PORT STATE SERVICE
80/tcp open http
If you see filtered instead of open, there's no doubt a firewall. Double check you're in the right machine if you have several terminals open!
Another quick way to check from the terminal is to use curl. On the server:
curl localhost
That should return the homepage. On another machine on the network:
curl ip-address
That should also return the homepage. If you have to press CTRL+C because it sits waiting, or if you get an error like Failed to connect to 1.2.3.4 port 80: No route to host
but got a response when you did it locally, it's a clear sign that something, most likely a firewall, is blocking access.
On CentOS 7 or similar, check if you're running firewalld:
systemctl status firewalld
If you see the service running, you can open port 80 by adding the http
service as explained by root users:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --reload
Incidentally, I once installed CentOS 7 minimal on a machine and the firewall was not installed by default. But using another ISO on another machine, it was installed on its own. And I kept checking on the wrong one, which told me that there was no firewall!
A useful command that will tell you that it's definitely the firewall is nmap:
sudo nmap -sS -O -p80 ip-address
Starting Nmap 7.01 ( https://nmap.org ) at 2017-08-11 15:56 IST
Nmap scan report for ip-address
Host is up (0.0011s latency).
PORT STATE SERVICE
80/tcp open http
If you see filtered instead of open, there's no doubt a firewall. Double check you're in the right machine if you have several terminals open!
Another quick way to check from the terminal is to use curl. On the server:
curl localhost
That should return the homepage. On another machine on the network:
curl ip-address
That should also return the homepage. If you have to press CTRL+C because it sits waiting, or if you get an error like Failed to connect to 1.2.3.4 port 80: No route to host
but got a response when you did it locally, it's a clear sign that something, most likely a firewall, is blocking access.
edited Apr 28 at 20:17
answered Aug 11 '17 at 15:00
NagevNagev
28327
28327
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f319318%2fapache-running-but-no-response-from-server%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Have you checked to see if the firewall is running on the server? It is possible that it is an blocking external port 80/433 requests
– enterzero
Oct 7 '11 at 4:38
Same here, but Opera connects just fine. Same thing happens to vsftpd. Chrome chokes but Opera does it just fine.
– SDsolar
Jan 19 '17 at 0:49