ubuntuforums-unanswered team mailing list archive
-
ubuntuforums-unanswered team
-
Mailing list archive
-
Message #04396
Re: [Question #77406]: Configuring apache2 server
Question #77406 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/77406
Status: Open => Answered
Damiano Venturin proposed the following answer:
Hi Myroslav
we have to verify one oh the 2:
1) the service doesn't start OR
2) the service starts but something is wrong and it needs to be restart to work properly
let's move on the first:
test A)
reboot your pc and just after login do in a console
sudo ps aux | grep apache
this will let us to discover if the process is running
if you can see at least two rows as output (1 is your command cause of the "grep apache") than:
test B)
we can use nmap to see if port 80 is really open
sudo apt-get install nmap
nmap 127.0.0.1
this should be the output
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http <<<<<<<<<
if you see the 80/tcp we verify that is really apache running on the 80
test C)
sudo fuser 80/tcp | tee > /tmp/A
for pid in $(cat /tmp/A); do echo $pid $(ps -p $pid -o comm=); done
you should see an output like this
13482 apache2
13498 apache2
13499 apache2
13500 apache2
13501 apache2
it means that every process running and using port 80 is apache2
test D)
if you have the graphical interface an launch firefox in local pointing it on 127.0.0.1/moodle
if it works we can try the last test, i.e. we check if it works in the network
test E)
install nmap (there is also the windows version) on another pc in the same network class of your computer and scan your pc
nmap your_server_ip
it's long I know :-) but it's longer to be written it than performed
if every test is verified we move on 2nd troubleshooting
bye!
--
enjoy
Dam
--
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.