LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-21-2023, 05:37 PM   #1
m_mek
LQ Newbie
 
Registered: Jun 2023
Posts: 1

Rep: Reputation: 0
Unhappy Help with apache install. Not sure what's going on, im a NOOB!!!


Hello, installing apache server on a raspberry pi and not sure what is going on. Im new to Linux and i have no clue how to troubleshoot this. This is what pops up when im trying to install apache server on my Raspberry. I did try to uninstall it and install it again and it just repeats. Please help!!
Thank you.

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "restart" failed.
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-06-21 18:19:51 EDT; 24ms ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 3269 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Jun 21 18:19:51 deephole apachectl[3269]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Jun 21 18:19:51 deephole apachectl[3269]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Jun 21 18:19:51 deephole apachectl[3269]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Jun 21 18:19:51 deephole apachectl[3269]: no listening sockets available, shutting down
Jun 21 18:19:51 deephole apachectl[3269]: AH00015: Unable to open logs
Jun 21 18:19:51 deephole apachectl[3269]: Action 'start' failed.
Jun 21 18:19:51 deephole apachectl[3269]: The Apache error log may have more information.
Jun 21 18:19:51 deephole systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jun 21 18:19:51 deephole systemd[1]: apache2.service: Failed with result 'exit-code'.
Jun 21 18:19:51 deephole systemd[1]: Failed to start The Apache HTTP Server.
 
Old 06-22-2023, 01:15 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,164
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
Quote:
Jun 21 18:19:51 deephole apachectl[3269]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Jun 21 18:19:51 deephole apachectl[3269]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Jun 21 18:19:51 deephole apachectl[3269]: no listening sockets available, shutting down
There is already a webserver running and listening on port 80, so apache cannot uses it.

You can run the following command to see what process uses port 80 and its PID, so you can kill it and try to start apache:
Code:
netstat -tanpl|grep :80
Regards
 
Old 06-22-2023, 08:44 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
installing Apache shouldn't be an issue it is setting it up that requires reading the documentation, and as far as the other post about port 80 if it is being used by someone else then you have to resign it if you want Apache using port 80 or you're always going to run into issues with the other always wanting to use it too. so give Apache a different port if need be or visa versa.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Not really sure what is going on, possibly compromised? teeps Linux - Security 7 08-03-2018 05:39 AM
I'm not sure how this happened but I'm sure there is a lesson in there somewhere mreff555 Linux - Newbie 6 09-24-2012 02:09 AM
Not sure what is going on here or how to start fixing in 10.04 Hart02 Ubuntu 7 05-15-2010 05:02 AM
Xfree86 Help (Not Quite Sure What is going on) sammykrupa Linux - Hardware 1 06-22-2005 02:55 PM
arr not sure whats going on chens_83 Linux - General 7 02-12-2002 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration