Problem connecting port 80 Apache

0

I'm trying to use BitNami Stack MAPP 5.5.30-0 (For Apache Web Server, PostgreSQL)

When I try to configure Apache Web Server I get this error: "Can not bind to port 80. It is probably taken by another application or you do not have enough privileges. privileges.

I do not want to change and use another port. I really want to use port 80.

I do not know the application is using port 80.

I'm using a MAC OS X Yosemite.

I tried this command:

sudo lsof -i ' : 80'

But nothing is running on this port.

I opened httpd.conf and I tried to change the listening port to 80. But it still is not working.

Can anyone help me? Thank you

    
asked by anonymous 05.10.2015 / 02:15

2 answers

0

The correct syntax to check if a service is listening on a particular port is:

sudo lsof -i: 80

    
19.10.2015 / 15:03
0

The application that is using port 80 is probably an Apache from an AMP (Apache MySQL PHP) that has already been pre-installed or preconfigured on the Mac since the OSX 10.10 Yosemite version.

By correctly using the command in the terminal of your Mac (as the colleague listed above):

    sudo lsof -i :80

Some httpd processes that are using port 80 will probably be listed. To end them just enter the command:

    sudo apachectl stop

Then try again to list the processes that are using port 80 and you will not be listed, again using the command:

    sudo lsof -i :80

If it does not work, you can still try to start Apache from the Mac with the command:

    sudo apachectl start

and then end it with the command:

    sudo apachectl stop

READY! SORTED OUT! You can now use the Apache Web Server service of your choice. I hope I have been able to help.

Be able to resolve this problem after reading this tutorial.

Follows for more information: link

    
22.11.2017 / 15:57