● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabl
ed)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: failed (Result: exit-code) since Sat 2021-05-01 19:20:28 UTC; 25min ago
Docs: man:httpd.service(8)
Process: 5777 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/F
AILURE)
Main PID: 5777 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: Starting The ...
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal httpd[5777]: AH00526: Syn...
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal httpd[5777]: Invalid comm...
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: httpd.service...
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: Failed to sta...
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: Unit httpd.se...
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: httpd.service...
Hint: Some lines were ellipsized, use -l to show in full.
I ran this command: journalctl -xe
I produced this output:
May 01 19:46:12 ip-172-31-33-253.us-east-2.compute.internal ec2-instance-connect[6020]:
May 01 19:46:12 ip-172-31-33-253.us-east-2.compute.internal ec2-instance-connect[6188]:
May 01 19:46:12 ip-172-31-33-253.us-east-2.compute.internal ec2-instance-connect[6220]:
May 01 19:46:12 ip-172-31-33-253.us-east-2.compute.internal sshd[5828]: Accepted publick
May 01 19:46:12 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: Started Session
-- Subject: Unit session-1302.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-1302.scope has finished starting up.
--
-- The start-up result is done.
May 01 19:46:12 ip-172-31-33-253.us-east-2.compute.internal systemd-logind[2472]: New se
-- Subject: A new session 1302 has been created for user ec2-user
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A new session with the ID 1302 has been created for the user ec2-user.
--
-- The leading process of the session is 5828.
May 01 19:46:12 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: Starting Session
-- Subject: Unit session-1302.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-1302.scope has begun starting up.
May 01 19:46:12 ip-172-31-33-253.us-east-2.compute.internal sshd[5828]: pam_unix(sshd:se
May 01 19:47:04 ip-172-31-33-253.us-east-2.compute.internal dhclient[2799]: XMT: Solicit
May 01 19:47:22 ip-172-31-33-253.us-east-2.compute.internal dhclient[2702]: DHCPREQUEST
May 01 19:47:22 ip-172-31-33-253.us-east-2.compute.internal dhclient[2702]: DHCPACK from
May 01 19:47:22 ip-172-31-33-253.us-east-2.compute.internal dhclient[2702]: bound to 172
May 01 19:47:22 ip-172-31-33-253.us-east-2.compute.internal ec2net[6285]: [get_meta] Que
May 01 19:47:22 ip-172-31-33-253.us-east-2.compute.internal ec2net[6286]: [get_meta] Get
May 01 19:47:22 ip-172-31-33-253.us-east-2.compute.internal ec2net[6289]: [get_meta] Try
May 01 19:47:22 ip-172-31-33-253.us-east-2.compute.internal ec2net[6292]: [remove_aliase
May 01 19:48:38 ip-172-31-33-253.us-east-2.compute.internal sshd[6296]: Did not receive
ay 01 19:48:39 ip-172-31-33-253.us-east-2.compute.internal sshd[6297]: reverse mapping
May 01 19:48:39 ip-172-31-33-253.us-east-2.compute.internal sshd[6297]: Invalid user sup
May 01 19:48:39 ip-172-31-33-253.us-east-2.compute.internal sshd[6297]: input_userauth_r
May 01 19:48:39 ip-172-31-33-253.us-east-2.compute.internal sshd[6297]: Connection close
May 01 19:49:06 ip-172-31-33-253.us-east-2.compute.internal dhclient[2799]: XMT: Solicit
lines 2531-2572/2572 (END)
But some of the most important information in this output is cut off at the end of lines....
One more time please with:
systemctl status httpd.service -l
This will tell us specifically what the complaint is.
apache2ctl configtest
It parses the configuration files and either reports Syntax Ok or information about the particular syntax error. (Not always perfect but worth looking at)
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: failed (Result: exit-code) since Sat 2021-05-01 19:20:28 UTC; 55min ago
Docs: man:httpd.service(8)
Process: 5777 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 5777 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: Starting The Apache HTTP Server...
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal httpd[5777]: AH00526: Syntax error on line 60 of /etc/httpd/conf/httpd.conf:
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal httpd[5777]: Invalid command 'DocumentRoot:', perhaps misspelled or defined by a module not
included in the server configuration
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: Failed to start The Apache HTTP Server.
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: Unit httpd.service entered failed state.
May 01 19:20:28 ip-172-31-33-253.us-east-2.compute.internal systemd[1]: httpd.service failed.
I have removed colon and quotes, I still had an error. I removed the colons after ServerName and ServerAlias and know I can see my website! Without images but at least I can see it! There are still issues but it's a huge progress thanks to you. Thx!
I ran this command:
apachectl -S
It produced this output:
AH00526: Syntax error on line 24 of /etc/httpd/conf/httpd-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/onearth.studio/fullchain.pem' does not exist or is empty
OK this is cool, just got back. Let me and @griffin ponder the issues and we'll pick um up tomorrow.
It would be cool if we knew what time zone you are in...
I think @OnEarth obscured the certificate contents. This is unnecessary since the certificates are public knowledge anyhow via certificate transparency logs.
AH00526: Syntax error on line 24 of /etc/httpd/conf/httpd-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/onearth.studio/fullchain.pem'
does not exist or is empty