Page 1 of 1

Unable to start Apache Server

PostPosted: Fri Mar 23, 2018 8:23 am
by galajits@gmail.com
Server was throwing error of system delay to all caller for which I deleted the logs under /var/log and restarted the system, post which, Apache Server is not getting started. Below are the details of my server.

VERSION: 2.6-375a
BUILD: 120831-1523
© 2012 ViciDial Group
ASterisk - 1.4.44-vici
Version: 2.6b0.5
DB Schema Version: 1326
DB Schema Update Date: 2018-03-11 16:38:57
mysql server version - 5.5.28


Below is the log of systemctl
vicibox8:/var/log # systemctl status apache2.service
● apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-03-23 18:32:58 IST; 8min ago
Process: 1463 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
Process: 1053 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 1053 (code=exited, status=1/FAILURE)

Mar 23 18:32:58 vicibox8 start_apache2[1463]: AH00557: httpd-prefork: apr_sockaddr_info_get() failed for vicibox8
Mar 23 18:32:58 vicibox8 start_apache2[1463]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set t...his message
Mar 23 18:32:58 vicibox8 start_apache2[1463]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
Mar 23 18:32:58 vicibox8 start_apache2[1463]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at ...sts.conf:38
Mar 23 18:32:58 vicibox8 start_apache2[1463]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost defined at ...osts.conf:1
Mar 23 18:32:58 vicibox8 start_apache2[1463]: AH00014: Configuration check failed
Mar 23 18:32:58 vicibox8 systemd[1]: apache2.service: Control process exited, code=exited status=1
Mar 23 18:32:58 vicibox8 systemd[1]: Failed to start The Apache Webserver.
Mar 23 18:32:58 vicibox8 systemd[1]: apache2.service: Unit entered failed state.
Mar 23 18:32:58 vicibox8 systemd[1]: apache2.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.

Please help, I am unable to access http://serverip/vicidial/welcome.php

Thanks in Advance.

Re: Unable to start Apache Server

PostPosted: Fri Mar 23, 2018 8:56 am
by blackbird2306
Happy hunting! Last time when I saved your job there was no time for a thanks!

Re: Unable to start Apache Server

PostPosted: Fri Mar 23, 2018 10:15 am
by blackbird2306
You must not delete any log files without knowing what happens it is always better to empty them sometimes! And I think you have deleted the whole var/log/apache2 directory? I hope it was only apache2 and not whole /var/log with all subdirectories, because then it's more complicated? Try this:
Code: Select all
mkdir /var/log/apache2
chmod 750 /var/log/apache2
systemctl stop apache2.service
systemctl start apache2.service

This should work if only /var/log/apache2 directory was deleted!

Re: Unable to start Apache Server

PostPosted: Fri Mar 30, 2018 1:56 pm
by galajits@gmail.com
Sorry for that BlackBird that I actually forgot to thank you and entire team. Sorry Once again.

For This issue, i created this folder and i got this fixed.

Thanks once again.