Unable to start Apache Server

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Unable to start Apache Server

Postby galajits@gmail.com » Fri Mar 23, 2018 8:23 am

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.
galajits@gmail.com
 
Posts: 54
Joined: Thu Feb 15, 2018 6:34 am

Re: Unable to start Apache Server

Postby blackbird2306 » Fri Mar 23, 2018 8:56 am

Happy hunting! Last time when I saved your job there was no time for a thanks!
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm

Re: Unable to start Apache Server

Postby blackbird2306 » Fri Mar 23, 2018 10:15 am

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!
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm

Re: Unable to start Apache Server

Postby galajits@gmail.com » Fri Mar 30, 2018 1:56 pm

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.
galajits@gmail.com
 
Posts: 54
Joined: Thu Feb 15, 2018 6:34 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 115 guests