./apachectl start
AH00548: NameVirtualHost has no effect and will be removed in the next release /u sr/local/apache/conf/httpd.conf:524
Here - line number 524 :-
*NameVirtualHost :80
line : 54 -> Listen 80
###############
Anounmusly this error get when i start the service
(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 AH00015:
try with alternate also
getting error when i start the service –
NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/httpd.conf:541 ( *NameVirtualHost :80 this line in 541)
(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
It seems some process is running on port 80, before starting apache run lsof -i :80 and check which process is running on port 80, kill that n run apache.
If nothing is running and still you are facing this issue, then make sure that you have mention
Listen directive only once for per unique ip/port.
/usr/local/apache/bin/apachectl stop
AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/httpd.conf:541
[root@nisha ~]# lsof -i :80
/usr/local/apache/bin/apachectl start
AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/httpd.conf:541
[root@nisha ~]# lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 12692 root 4u IPv6 52379 0t0 TCP *:http (LISTEN)
httpd 12693 daemon 4u IPv6 52379 0t0 TCP *:http (LISTEN)
httpd 12694 daemon 4u IPv6 52379 0t0 TCP *:http (LISTEN)
httpd 12695 daemon 4u IPv6 52379 0t0 TCP *:http (LISTEN)