1
A few days ago when I changed the version of PHP from the server and went to restart the apache, then showed me the error:
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
To settle, I did the following:
turn on the command: netstat -tlpn | grep 80
He showed me the following:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1355/nginx
tcp6 0 0 :::80 :::* LISTEN 1355/nginx
Then I finished the process with the command: kill 1355
, restarted the apache and then just went around tcp6.
But today I went to access the website and I saw that you were showing: BAD GATEWAY 502 ERROR . I went to restart the apache to see if it would solve and showed me the same error I mentioned before. I performed the same process and worked.
I wanted to know why this kind of mistake is happening and if there is any way to solve it definitively.