osx - Cannot connect to apache server locally -


I am trying to access the Apache server on my local machine, but it can not be found to work. I was working on it last week, but then it stopped working randomly I edited httpd.conf file to update the port to 9876. I also added ExecCGI instructions htdocs directory

< P> I usually see the index.html page created by going to the local host. 9876, but now I am seeing a wrong page when I just run localhost: 80, I see this page works! When I changed something clearly on port 80, how else is it visible? I read more about this and found out that it has to do with sharing settings on OSX. These settings were never started at all. Why do I see a page on port 80, and why is the specified port which I am not showing any content?

Whatever I have done:

  1. I have tried to stop. And (with sudo) server restart several times
  2. I use web browser or netcat to connect to Apache, but I do not get any answer

I lsof ran - i4TCP: 9876 and receive the following output:

  Aipivi 6 0xee69429dde6f1b6f 0t0 TCP localhost 25u launchd 1 root: IPP (listen) launchd 1 root 26u Aipivi 4 0xee69429dde6f2b77 0t0 TCP localhost: IPP (listen) LogMeIn 82 route 5U Aipivi 4 0xee69429dde6f238f 0t0 TCP *: Globe (listen) vpnagentd 83 root 6u Aipivi 4 0xee69429de115bb77 0t0 TCP location Host: 29,754 (listen) GitHub 201 kamranpirwani 6u IPv4 0xee69429de35f4b77 0t0 Local Host: 25,035 (listen) GitHub 201 kamranpirwani 7U IPv 6 0xee69429dde6f0eaf 0t0 TCP Local Host: 25,035 (LISTEN) mysqld 412 _mysql 14u IPv 6 0xee69429dde6efdaf 0t0 TCP *: LISTEN Coda \ x202 726 KamarPrabhani5 U IPv4xx6699 DB 25fb77 0t0 TCP *: 6942 (LISTEN) Coda \ x202 726 Kamarvirvani 7u IPv6 0xee69429dde6f12ef 0t0 TCP *: 6942 (LISTEN) Coda \ x202 726 Kamarvirvani 10u IPv4xx869429 DB 47438 FTTTCP *: 50490 (LISTEN) Coda \ x202 726 Kamarpravani 11 U IPv 6 0xee69429dde6f062f 0t0 TCP *: 50490 (Listen) Koda \ x202 726 KamarParvaan 12 U IPV 4 0xee69429dea898b77 0t0 TCP *: 50491 (LISTEN) Coda \ x202 726 Cameramarvani 13 U IPv 6 0xee69429dde6ef96f 0t0 TCP *: 50491 (LISTEN) httpd 1879 Route 5u IPv 6 0x469429dde6f172f 0t0 TCP *: http (LISTEN) httpd 1880 _www 5u IPv6 0xee69429dde6f172f 0t0 TCP *: http (LISTEN) httpd 1920 _www 5u IPv6 0xee69429dde6f172f 0t0 TCP *: http (LISTEN))  

From this I believe that my Apache web server has LIS request for this port on Tanning Browser or Net Cat it Why can not you connect?

Edit:

The log file (removed with personal email)

I am trying to reach an Apache server on my local machine . , but it can not get to work.

But then you say (again, emphasis mine):

When I just localhost , I think it is The page works!

So the problem is unclear. When you say that you edit .conf Could default control Apache virtual hosts, it is possible that you are running two virtual hosts with different document root on your machine: Reacting to a port 80 & amp; Other 9876 on the port can you change the exact description of the content of the file?

Edit: The original poster indicates that they are editing httpd.conf at this location:

  ~ / Apache / conf / httpd.conf  

system config in the address:

  /etc/apache2/httpd.conf  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -