Followed Linode guide 'til the end - but ran into this problem

Ah man… so close.

I finished setting up Apache via this guide:
https://www.linode.com/docs/websites/hosting-a-website-ubuntu-18-04/

But on the very last step, I get this error:
apache2.service is not active, cannot reload.

Any ideas for a fix?

5 Replies

Could you give us the output of the below command?
sudo systemctl -l status apache2

This will help us to better see what is going on.

Thanks!

Sure thing:

● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-07-28 20:19:15 EDT; 11h ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 15664 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Jul 28 20:19:15 CarLeaseDiscounts systemd[1]: Starting The Apache HTTP Server…
Jul 28 20:19:15 CarLeaseDiscounts apachectl[15664]: AH00526: Syntax error on line 230 of /etc/apache2/apache
Jul 28 20:19:15 CarLeaseDiscounts apachectl[15664]: Invalid command '…', perhaps misspelled or defined by
Jul 28 20:19:15 CarLeaseDiscounts apachectl[15664]: Action 'start' failed.
Jul 28 20:19:15 CarLeaseDiscounts apachectl[15664]: The Apache error log may have more information.
Jul 28 20:19:15 CarLeaseDiscounts systemd[1]: apache2.service: Control process exited, code=exited, status=1
Jul 28 20:19:15 CarLeaseDiscounts systemd[1]: apache2.service: Failed with result 'exit-code'.
Jul 28 20:19:15 CarLeaseDiscounts systemd[1]: Failed to start The Apache HTTP Server.
~

What does line 230 of /etc/apache2/apache2.conf say?

(The filename is probably truncated in the output you gave.)

What does line 230 of /etc/apache2/apache2.conf say?

<ifmodule mpm_prefork_module=""> StartServers 4 MinSpareServers 20 MaxSpareServers 40 MaxClients 200 MaxRequestsPerChild 4500 </ifmodule>

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct