Cannot start apache and no clue how to fix!

7 posts / 0 new
Last post
#1 Sun, 08/11/2019 - 05:25
orangehand

Cannot start apache and no clue how to fix!

Can anyone guide me as to how to troubleshoot this please? All I get is an inability to start apache from the play button in the Dashboard. Sorry to be so clueless! Many thanks

Sun, 08/11/2019 - 19:03
RJM Web Design
RJM Web Design's picture

What OS and version?

What does the error log say (Virtualmin / Logs and Reports / Apache Error Log)?

--Richard

Sun, 08/11/2019 - 23:18
orangehand

Webmin 1.771 on Ubuntu 16.04 2 apache error and access logs are both empty, even when pressing play on apache in the Dash

Mon, 08/12/2019 - 07:04
RJM Web Design
RJM Web Design's picture

I'm no expert on Ubuntu, so I don't know if something in the OS can be affecting Webmin, Virtualmin, and/or Apache. I might be of more help on CentOS.

If you have superuser shell access, you may find these pages helpful for diagnostics:

http://csuca.org/manual/en/programs/apachectl.html

And one specific to Ubuntu:

http://manpages.ubuntu.com/manpages/xenial/man8/apache2ctl.8.html

Hopefully someone more familiar with running Virtualmin and Apache on Ubuntu / Debian will chime in. I don't consider myself competent to give any advice regarding an OS I've only played with a few times. I wouldn't want to break things even more. My apologies.

--Richard

Mon, 08/12/2019 - 08:21
scotwnw

Apache error and access logs will only show web issues, not system start/stop issues. You'll need to look in system log for that error.

Or on the command line, try to start apache and it will show the error and the line number of the problem and the file name with the problem. Most likely config issue in apache.conf.

sudo service apache start.

Mon, 08/12/2019 - 10:48
orangehand

Does this make any sense?!

service apache2 start

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

systemctl status apache2.service

● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: failed (Result: exit-code) since Mon 2019-08-12 16:45:58 BST; 1min 10s ago Docs: man:systemd-sysv-generator(8) Process: 1680 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 12 16:45:58 webmin4.orangehand.net apache2[1680]: Output of config test was: Aug 12 16:45:58 webmin4.orangehand.net apache2[1680]: [Mon Aug 12 16:45:58.884440 2019] [so:warn] [pid 1691] AH01574: mo Aug 12 16:45:58 webmin4.orangehand.net apache2[1680]: AH00526: Syntax error on line 33 of /etc/apache2/sites-enabled/23a Aug 12 16:45:58 webmin4.orangehand.net apache2[1680]: Invalid command 'RewriteEngine', perhaps misspelled or defined by Aug 12 16:45:58 webmin4.orangehand.net apache2[1680]: Action 'configtest' failed. Aug 12 16:45:58 webmin4.orangehand.net apache2[1680]: The Apache error log may have more information. Aug 12 16:45:58 webmin4.orangehand.net systemd[1]: apache2.service: Control process exited, code=exited status=1 Aug 12 16:45:58 webmin4.orangehand.net systemd[1]: Failed to start LSB: Apache2 web server. Aug 12 16:45:58 webmin4.orangehand.net systemd[1]: apache2.service: Unit entered failed state. Aug 12 16:45:58 webmin4.orangehand.net systemd[1]: apache2.service: Failed with result 'exit-code'.

journalctl -xe

Aug 12 16:47:02 webmin4.orangehand.net postfix/smtpd[30551]: disconnect from unknown[92.118.38.34] ehlo=1 auth=0/1 rset= Aug 12 16:47:04 webmin4.orangehand.net postfix/smtpd[30384]: warning: hostname suffil.rostage.com does not resolve to ad Aug 12 16:47:04 webmin4.orangehand.net postfix/smtpd[30384]: connect from unknown[141.98.9.5] Aug 12 16:47:05 webmin4.orangehand.net saslauthd[1148]: pam_unix(smtp:auth): check pass; user unknown Aug 12 16:47:05 webmin4.orangehand.net saslauthd[1148]: pam_unix(smtp:auth): authentication failure; logname= uid=0 euid Aug 12 16:47:07 webmin4.orangehand.net saslauthd[1150]: pam_unix(smtp:auth): check pass; user unknown Aug 12 16:47:07 webmin4.orangehand.net saslauthd[1150]: pam_unix(smtp:auth): authentication failure; logname= uid=0 euid Aug 12 16:47:08 webmin4.orangehand.net saslauthd[1148]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure Aug 12 16:47:08 webmin4.orangehand.net saslauthd[1148]: do_auth : auth failure: [user=hightower@orangehand.net] Aug 12 16:47:08 webmin4.orangehand.net postfix/smtpd[316]: warning: unknown[141.98.9.67]: SASL LOGIN authentication fail Aug 12 16:47:08 webmin4.orangehand.net postfix/smtpd[316]: disconnect from unknown[141.98.9.67] ehlo=1 auth=0/1 rset=1 q Aug 12 16:47:09 webmin4.orangehand.net saslauthd[1150]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure Aug 12 16:47:09 webmin4.orangehand.net saslauthd[1150]: do_auth : auth failure: [user=adjure@orangehand.net] [se Aug 12 16:47:09 webmin4.orangehand.net postfix/smtpd[30384]: warning: unknown[141.98.9.5]: SASL LOGIN authentication fai Aug 12 16:47:09 webmin4.orangehand.net postfix/smtpd[30384]: disconnect from unknown[141.98.9.5] ehlo=1 auth=0/1 rset=1 Aug 12 16:47:28 webmin4.orangehand.net systemd[1]: dev-disk-by\x2duuid-aafe5691\x2df012\x2d41c4\x2d88ea\x2d8366953b6850. Aug 12 16:47:28 webmin4.orangehand.net systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-aafe5691\x2df012\x2d -- Subject: Unit dev-disk-by\x2duuid-aafe5691\x2df012\x2d41c4\x2d88ea\x2d8366953b6850.device has failed -- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit dev-disk-by\x2duuid-aafe5691\x2df012\x2d41c4\x2d88ea\x2d8366953b6850.device has failed.

-- The result is timeout. Aug 12 16:47:28 webmin4.orangehand.net systemd[1]: Dependency failed for /dev/disk/by-uuid/aafe5691-f012-41c4-88ea-83669 -- Subject: Unit dev-disk-by\x2duuid-aafe5691\x2df012\x2d41c4\x2d88ea\x2d8366953b6850.swap has failed -- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit dev-disk-by\x2duuid-aafe5691\x2df012\x2d41c4\x2d88ea\x2d8366953b6850.swap has failed.

-- The result is dependency. Aug 12 16:47:28 webmin4.orangehand.net systemd[1]: dev-disk-by\x2duuid-aafe5691\x2df012\x2d41c4\x2d88ea\x2d8366953b6850. Aug 12 16:47:28 webmin4.orangehand.net systemd[1]: dev-disk-by\x2duuid-aafe5691\x2df012\x2d41c4\x2d88ea\x2d8366953b6850. Aug 12 16:47:31 webmin4.orangehand.net postfix/smtpd[31250]: connect from unknown[185.234.219.103] Aug 12 16:47:31 webmin4.orangehand.net saslauthd[1139]: pam_unix(smtp:auth): check pass; user unknown Aug 12 16:47:31 webmin4.orangehand.net saslauthd[1139]: pam_unix(smtp:auth): authentication failure; logname= uid=0 euid Aug 12 16:47:32 webmin4.orangehand.net sshd[1772]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tt Aug 12 16:47:34 webmin4.orangehand.net saslauthd[1139]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure Aug 12 16:47:34 webmin4.orangehand.net saslauthd[1139]: do_auth : auth failure: [user=cramirez] [service=smtp] [ Aug 12 16:47:34 webmin4.orangehand.net postfix/smtpd[31250]: warning: unknown[185.234.219.103]: SASL LOGIN authenticatio Aug 12 16:47:34 webmin4.orangehand.net postfix/smtpd[31250]: lost connection after AUTH from unknown[185.234.219.103] Aug 12 16:47:34 webmin4.orangehand.net postfix/smtpd[31250]: disconnect from unknown[185.234.219.103] ehlo=1 auth=0/1 co Aug 12 16:47:34 webmin4.orangehand.net sshd[1772]: Failed password for root from 218.92.0.205 port 34671 ssh2 Aug 12 16:47:36 webmin4.orangehand.net sshd[1772]: Failed password for root from 218.92.0.205 port 34671 ssh2 Aug 12 16:47:39 webmin4.orangehand.net sshd[1772]: Failed password for root from 218.92.0.205 port 34671 ssh2 Aug 12 16:47:39 webmin4.orangehand.net sshd[1772]: Received disconnect from 218.92.0.205 port 34671:11: [preauth] Aug 12 16:47:39 webmin4.orangehand.net sshd[1772]: Disconnected from 218.92.0.205 port 34671 [preauth] Aug 12 16:47:39 webmin4.orangehand.net sshd[1772]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh rus Aug 12 16:47:43 webmin4.orangehand.net postfix/smtpd[30551]: warning: hostname ip-38-34.ZervDNS does not resolve to addr Aug 12 16:47:43 webmin4.orangehand.net postfix/smtpd[30551]: connect from unknown[92.118.38.34] Aug 12 16:47:48 webmin4.orangehand.net saslauthd[1151]: pam_unix(smtp:auth): check pass; user unknown Aug 12 16:47:48 webmin4.orangehand.net saslauthd[1151]: pam_unix(smtp:auth): authentication failure; logname= uid=0 euid Aug 12 16:47:50 webmin4.orangehand.net saslauthd[1151]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure Aug 12 16:47:50 webmin4.orangehand.net saslauthd[1151]: do_auth : auth failure: [user=adrian@orangehand.net] [se Aug 12 16:47:50 webmin4.orangehand.net postfix/smtpd[30551]: warning: unknown[92.118.38.34]: SASL LOGIN authentication f Aug 12 16:47:51 webmin4.orangehand.net postfix/smtpd[30551]: disconnect from unknown[92.118.38.34] ehlo=1 auth=0/1 rset= lines 1713-1769/1769 (END)

Mon, 08/12/2019 - 13:31
scotwnw

"Syntax error on line 33 of /etc/apache2/sites-enabled/23a" Thats where I'd look first. Something wrong on line 33 of the config for 23a.

Then do same again to see what errors are left.

Topic locked