I wanted to restart my server so I did :
sudo service apache2 restart
It instead showed me the message below :
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
I then did systemctl -l status apache2.service
and it came out with these results:
apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Drop-In: /lib/systemd/system/apache2.service.d
└─forking.conf
Active: failed (Result: exit-code) since Thu 2016-12-15 07:44:48 CST; 43min ago
Process: 31239 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Dec 15 07:44:48 s87890 apache2[31239]: Starting web server: apache2 failed!
Dec 15 07:44:48 s87890 apache2[31239]: The apache2 configtest failed. ... (warning).
Dec 15 07:44:48 s87890 apache2[31239]: Output of config test was:
Dec 15 07:44:48 s87890 apache2[31239]: apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/softaculous.conf: No such file or directory
Dec 15 07:44:48 s87890 apache2[31239]: Action 'configtest' failed.
Dec 15 07:44:48 s87890 apache2[31239]: The Apache error log may have more information.
Dec 15 07:44:48 s87890 systemd[1]: apache2.service: control process exited, code=exited status=1
Dec 15 07:44:48 s87890 systemd[1]: Failed to start LSB: Apache2 web server.
Dec 15 07:44:48 s87890 systemd[1]: Unit apache2.service entered failed state.
I looked at line 216 of /etc/apache2/apache2.conf and this is what I saw:
IncludeOptional conf-enabled/*.conf
I did journalctl -xn
and it showed me :
- Logs begin at Tue 2016-12-13 16:17:11 CST, end at Thu 2016-12-15 08:11:24 CST. --
Dec 15 08:11:05 s87890 sshd[32074]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.48 user=root
Dec 15 08:11:07 s87890 sshd[32074]: Failed password for root from 116.31.116.48 port 61622 ssh2
Dec 15 08:11:10 s87890 sshd[32074]: Failed password for root from 116.31.116.48 port 61622 ssh2
Dec 15 08:11:12 s87890 sshd[32074]: Failed password for root from 116.31.116.48 port 61622 ssh2
Dec 15 08:11:12 s87890 sshd[32074]: Received disconnect from 116.31.116.48: 11: [preauth]
Dec 15 08:11:12 s87890 sshd[32074]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.48 user=root
Dec 15 08:11:22 s87890 postfix/smtpd[32032]: warning: hostname dedic858.hidehost.net does not resolve to address 91.200.13.20: Name or service not kn
Dec 15 08:11:22 s87890 postfix/smtpd[32032]: connect from unknown[91.200.13.20]
Dec 15 08:11:24 s87890 sudo[32065]: ejandra : TTY=pts/0 ; PWD=/home/ejandra ; USER=root ; COMMAND=/bin/journalctl -xn
Dec 15 08:11:24 s87890 sudo[32065]: pam_unix(sudo:session): session opened for user root by ejandra(uid=0)
I already did an apache uninstall and then installed it again but still the same error persists. What could be wrong here?