Someone help me.
This error appeared after I installed without wanting NGINX but had the ispconfig . I want to continue to use the ispconfig . It seems that something is on the port that it is listening .
- Restarting web server apache2 AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:61
(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: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
no listening sockets available, shutting down [fail] - The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
I am new to linux. HELP ME PLEASE :'(
Best Answer
netstat -an
will show you if port 80 (http) is already in use, which the error suggests is the problem.You can try edit apaches default config file:
/etc/apache2/sites-enabled/000-default.conf
Change
<VirtualHost *:80>
to<VirtualHost *:8080>
thensudo service apache2 restart
to see if it gives an error. If it works then you need to find what's configured to listen on port 80. Use your browser (on apaches computer) to look at http://127.0.0.1 and see if anything loads. http://127.0.0.1:8080 will be apaches default page if you configured it for 8080.Another useful command ...
apachectl configtest
You may need to check what other programs you have installed recently. Usually config files are located in /etc// and
man <program name>
e.g:man apache2
to see command options etc.