Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Brand New Apache Server Will Not Start |
|
Author |
|
RodneyRecor
Joined: 25 Jan 2025 Posts: 6 Location: Paris
|
Posted: Fri 14 Mar '25 8:36 Post subject: Brand New Apache Server Will Not Start |
|
|
Apache has worked flawlessly and with no problems for the last 50 years, but now somebody decided to f-around with it and it's broken!
I just installed a brand new webserver. It's starting at the most basic bare-bones level.
But apache WILL NOT START - Why? I would love to know.
Does anybody out there in Apacheland know how to fix this?
I am running Rockylinux 9.5
The latest apache download and installation
------------------------------------------------------------------------
I get this message that is repeated on the forums over and ober with no solutions:
"Could not reliably determine the server's fully qualified domain name using the 127.0.1.1.
Set the 'ServerName' directive globally to suppress this message.
This warning indicates that Apache cannot determine the
fully qualified domain name (FQDN) of the server."
-------------------------------------
apachectl configtest is.. OK OK OK every time I try to edit it.
Code: |
systemctl start httpd
systemctl restart httpd
|
ALWAYS configtest is OK
BUT IT WILL NOT START
... and journalctl skows no reason for it:
Code: |
"The unit httpd.service has entered the 'failed' state with result 'exit-code'.
Mar 14 06:10:54 RRnet-WebServer systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit httpd.service has failed
░░ Defined-By: systemd
░░ Support: https://wiki.rockylinux.org/rocky/support
░░ A start job for unit httpd.service has finished with a failure.
░░ The job identifier is 3017 and the job result is failed."
|
I have no idea how my conf file could be more simple/
Here it is:
My /etc/httpd/htpd.conf file:
Code: |
ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
AddDefaultCharset UTF-8
User apache
Group apache
ServerAdmin apacheChief@xxxxx.com
<Directory "/var/www/html">
AllowOverride None
Require all granted
</Directory>
<VirtualHost *:80>
ServerName xxxxx.com
ServerAlias www.xxxxx.com
DocumentRoot "/var/www/html/xxxxx"
ErrorLog "logs/xxxxx.com-error_log"
CustomLog "logs/xxxxx.com-access_log" common
</VirtualHost>
|
Mod Note: added code tags |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7399 Location: EU, Germany, Next to Hamburg
|
Posted: Fri 14 Mar '25 11:40 Post subject: |
|
|
Just add ServerName localhost to httpd.conf below Listen 80 |
|
Back to top |
|
|
|
|
|
|