“ apache2.service is not active, cannot reload ”Apache can't start on UbuntuMySQL not working after upgrade from 14.04 to 16.04Apache2.service failed to startsmbd (samba daemon) does not listen on ports 139/445Second ssh instance won't start after upgrade to Xenial Xerus - Permission deniedMonit Apache2 restart and Apache statusFailed to load apache server?services failing to start - control process exited with error codesite inaccesible when i run a vhostUbuntu 18.04 Error with apache2
What is the word for reserving something for yourself before others do?
Has there ever been an airliner design involving reducing generator load by installing solar panels?
How to take photos in burst mode, without vibration?
What killed these X2 caps?
Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?
What is the most common color to indicate the input-field is disabled?
How to draw the figure with four pentagons?
Can one be a co-translator of a book, if he does not know the language that the book is translated into?
Is it legal for company to use my work email to pretend I still work there?
What's the difference between 'rename' and 'mv'?
How can I fix/modify my tub/shower combo so the water comes out of the showerhead?
90's TV series where a boy goes to another dimension through portal near power lines
Infinite Abelian subgroup of infinite non Abelian group example
How is it possible to have an ability score that is less than 3?
How much of data wrangling is a data scientist's job?
What to put in ESTA if staying in US for a few days before going on to Canada
Alternative to sending password over mail?
Stopping power of mountain vs road bike
A reference to a well-known characterization of scattered compact spaces
How could indestructible materials be used in power generation?
Memorizing the Keyboard
Is the Joker left-handed?
Could gravitational lensing be used to protect a spaceship from a laser?
Why can't we play rap on piano?
“ apache2.service is not active, cannot reload ”
Apache can't start on UbuntuMySQL not working after upgrade from 14.04 to 16.04Apache2.service failed to startsmbd (samba daemon) does not listen on ports 139/445Second ssh instance won't start after upgrade to Xenial Xerus - Permission deniedMonit Apache2 restart and Apache statusFailed to load apache server?services failing to start - control process exited with error codesite inaccesible when i run a vhostUbuntu 18.04 Error with apache2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
When running sudo service apache2 reload
, I get the error:
apache2.service is not active, cannot reload
Output of sudo service apache2 status
root@gamma:~# sudo service apache2 status
● 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: inactive (dead) since Sat 2016-10-15 08:23:11 UTC; 2h 28min ago
Docs: man:systemd-sysv-generator(8)
Process: 2203 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 2185 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Oct 15 08:23:10 gamma systemd[1]: Starting LSB: Apache2 web server...
Oct 15 08:23:10 gamma apache2[2185]: * Starting Apache httpd web server apache2
Oct 15 08:23:11 gamma apache2[2185]: Action 'start' failed.
Oct 15 08:23:11 gamma apache2[2185]: The Apache error log may have more information.
Oct 15 08:23:11 gamma apache2[2185]: *
Oct 15 08:23:11 gamma apache2[2203]: * Stopping Apache httpd web server apache2
Oct 15 08:23:11 gamma apache2[2203]: *
Oct 15 08:23:11 gamma systemd[1]: Started LSB: Apache2 web server.
root@gamma:~# sudo service apache2 reload
apache2.service is not active, cannot reload.
root@gamma:~#
Output of error.log
root@gamma:/# sudo service apache2 force-reload
apache2.service is not active, cannot reload.
root@gamma:/# grep '15 08:23:' /var/log/apache2/error.log
root@gamma:/# zgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
[Sat Oct 15 08:23:11.012917 2016] [ssl:emerg] [pid 2202] AH02562: Failed to configure certificate bot.testingsite.cf:443:0 (with chain), check /etc/apache2/ssl/bot.testingsite.cf.crt
[Sat Oct 15 08:23:11.013037 2016] [ssl:emerg] [pid 2202] SSL Library Error: error:0906D06C:PEM rou tines:PEM_read_bio:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Sat Oct 15 08:23:11.013056 2016] [ssl:emerg] [pid 2202] SSL Library Error: error:140DC009:SSL rou tines:SSL_CTX_use_certificate_chain_file:PEM lib
root@gamma:/#
I tried to enable ssl certificate. Namecheap provided me a file & I used it on ..cf.crt file.
After seeing this error I tried to validate via DCV method. But Still I get this error. sudo service apache2 restart
does not give any output.
server 16.04
|
show 2 more comments
When running sudo service apache2 reload
, I get the error:
apache2.service is not active, cannot reload
Output of sudo service apache2 status
root@gamma:~# sudo service apache2 status
● 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: inactive (dead) since Sat 2016-10-15 08:23:11 UTC; 2h 28min ago
Docs: man:systemd-sysv-generator(8)
Process: 2203 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 2185 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Oct 15 08:23:10 gamma systemd[1]: Starting LSB: Apache2 web server...
Oct 15 08:23:10 gamma apache2[2185]: * Starting Apache httpd web server apache2
Oct 15 08:23:11 gamma apache2[2185]: Action 'start' failed.
Oct 15 08:23:11 gamma apache2[2185]: The Apache error log may have more information.
Oct 15 08:23:11 gamma apache2[2185]: *
Oct 15 08:23:11 gamma apache2[2203]: * Stopping Apache httpd web server apache2
Oct 15 08:23:11 gamma apache2[2203]: *
Oct 15 08:23:11 gamma systemd[1]: Started LSB: Apache2 web server.
root@gamma:~# sudo service apache2 reload
apache2.service is not active, cannot reload.
root@gamma:~#
Output of error.log
root@gamma:/# sudo service apache2 force-reload
apache2.service is not active, cannot reload.
root@gamma:/# grep '15 08:23:' /var/log/apache2/error.log
root@gamma:/# zgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
[Sat Oct 15 08:23:11.012917 2016] [ssl:emerg] [pid 2202] AH02562: Failed to configure certificate bot.testingsite.cf:443:0 (with chain), check /etc/apache2/ssl/bot.testingsite.cf.crt
[Sat Oct 15 08:23:11.013037 2016] [ssl:emerg] [pid 2202] SSL Library Error: error:0906D06C:PEM rou tines:PEM_read_bio:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Sat Oct 15 08:23:11.013056 2016] [ssl:emerg] [pid 2202] SSL Library Error: error:140DC009:SSL rou tines:SSL_CTX_use_certificate_chain_file:PEM lib
root@gamma:/#
I tried to enable ssl certificate. Namecheap provided me a file & I used it on ..cf.crt file.
After seeing this error I tried to validate via DCV method. But Still I get this error. sudo service apache2 restart
does not give any output.
server 16.04
Can we see the output of sudo service apache2 status?
– Manuel Alvarez
Oct 15 '16 at 9:04
@ManuelAlvarez Post edited
– user9677832
Oct 15 '16 at 11:01
1
Can you also add the output ofgrep '15 08:23:' /var/log/apache2/error.log
– Martin Thornton
Oct 15 '16 at 11:56
If there is no output, runzgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
instead.
– Martin Thornton
Oct 15 '16 at 20:32
I also tried to reboot entire OS , but it did not help.
– user9677832
Oct 16 '16 at 10:19
|
show 2 more comments
When running sudo service apache2 reload
, I get the error:
apache2.service is not active, cannot reload
Output of sudo service apache2 status
root@gamma:~# sudo service apache2 status
● 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: inactive (dead) since Sat 2016-10-15 08:23:11 UTC; 2h 28min ago
Docs: man:systemd-sysv-generator(8)
Process: 2203 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 2185 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Oct 15 08:23:10 gamma systemd[1]: Starting LSB: Apache2 web server...
Oct 15 08:23:10 gamma apache2[2185]: * Starting Apache httpd web server apache2
Oct 15 08:23:11 gamma apache2[2185]: Action 'start' failed.
Oct 15 08:23:11 gamma apache2[2185]: The Apache error log may have more information.
Oct 15 08:23:11 gamma apache2[2185]: *
Oct 15 08:23:11 gamma apache2[2203]: * Stopping Apache httpd web server apache2
Oct 15 08:23:11 gamma apache2[2203]: *
Oct 15 08:23:11 gamma systemd[1]: Started LSB: Apache2 web server.
root@gamma:~# sudo service apache2 reload
apache2.service is not active, cannot reload.
root@gamma:~#
Output of error.log
root@gamma:/# sudo service apache2 force-reload
apache2.service is not active, cannot reload.
root@gamma:/# grep '15 08:23:' /var/log/apache2/error.log
root@gamma:/# zgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
[Sat Oct 15 08:23:11.012917 2016] [ssl:emerg] [pid 2202] AH02562: Failed to configure certificate bot.testingsite.cf:443:0 (with chain), check /etc/apache2/ssl/bot.testingsite.cf.crt
[Sat Oct 15 08:23:11.013037 2016] [ssl:emerg] [pid 2202] SSL Library Error: error:0906D06C:PEM rou tines:PEM_read_bio:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Sat Oct 15 08:23:11.013056 2016] [ssl:emerg] [pid 2202] SSL Library Error: error:140DC009:SSL rou tines:SSL_CTX_use_certificate_chain_file:PEM lib
root@gamma:/#
I tried to enable ssl certificate. Namecheap provided me a file & I used it on ..cf.crt file.
After seeing this error I tried to validate via DCV method. But Still I get this error. sudo service apache2 restart
does not give any output.
server 16.04
When running sudo service apache2 reload
, I get the error:
apache2.service is not active, cannot reload
Output of sudo service apache2 status
root@gamma:~# sudo service apache2 status
● 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: inactive (dead) since Sat 2016-10-15 08:23:11 UTC; 2h 28min ago
Docs: man:systemd-sysv-generator(8)
Process: 2203 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 2185 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Oct 15 08:23:10 gamma systemd[1]: Starting LSB: Apache2 web server...
Oct 15 08:23:10 gamma apache2[2185]: * Starting Apache httpd web server apache2
Oct 15 08:23:11 gamma apache2[2185]: Action 'start' failed.
Oct 15 08:23:11 gamma apache2[2185]: The Apache error log may have more information.
Oct 15 08:23:11 gamma apache2[2185]: *
Oct 15 08:23:11 gamma apache2[2203]: * Stopping Apache httpd web server apache2
Oct 15 08:23:11 gamma apache2[2203]: *
Oct 15 08:23:11 gamma systemd[1]: Started LSB: Apache2 web server.
root@gamma:~# sudo service apache2 reload
apache2.service is not active, cannot reload.
root@gamma:~#
Output of error.log
root@gamma:/# sudo service apache2 force-reload
apache2.service is not active, cannot reload.
root@gamma:/# grep '15 08:23:' /var/log/apache2/error.log
root@gamma:/# zgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
[Sat Oct 15 08:23:11.012917 2016] [ssl:emerg] [pid 2202] AH02562: Failed to configure certificate bot.testingsite.cf:443:0 (with chain), check /etc/apache2/ssl/bot.testingsite.cf.crt
[Sat Oct 15 08:23:11.013037 2016] [ssl:emerg] [pid 2202] SSL Library Error: error:0906D06C:PEM rou tines:PEM_read_bio:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Sat Oct 15 08:23:11.013056 2016] [ssl:emerg] [pid 2202] SSL Library Error: error:140DC009:SSL rou tines:SSL_CTX_use_certificate_chain_file:PEM lib
root@gamma:/#
I tried to enable ssl certificate. Namecheap provided me a file & I used it on ..cf.crt file.
After seeing this error I tried to validate via DCV method. But Still I get this error. sudo service apache2 restart
does not give any output.
server 16.04
server 16.04
edited Oct 16 '16 at 10:17
user9677832
asked Oct 15 '16 at 8:19
user9677832user9677832
46117
46117
Can we see the output of sudo service apache2 status?
– Manuel Alvarez
Oct 15 '16 at 9:04
@ManuelAlvarez Post edited
– user9677832
Oct 15 '16 at 11:01
1
Can you also add the output ofgrep '15 08:23:' /var/log/apache2/error.log
– Martin Thornton
Oct 15 '16 at 11:56
If there is no output, runzgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
instead.
– Martin Thornton
Oct 15 '16 at 20:32
I also tried to reboot entire OS , but it did not help.
– user9677832
Oct 16 '16 at 10:19
|
show 2 more comments
Can we see the output of sudo service apache2 status?
– Manuel Alvarez
Oct 15 '16 at 9:04
@ManuelAlvarez Post edited
– user9677832
Oct 15 '16 at 11:01
1
Can you also add the output ofgrep '15 08:23:' /var/log/apache2/error.log
– Martin Thornton
Oct 15 '16 at 11:56
If there is no output, runzgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
instead.
– Martin Thornton
Oct 15 '16 at 20:32
I also tried to reboot entire OS , but it did not help.
– user9677832
Oct 16 '16 at 10:19
Can we see the output of sudo service apache2 status?
– Manuel Alvarez
Oct 15 '16 at 9:04
Can we see the output of sudo service apache2 status?
– Manuel Alvarez
Oct 15 '16 at 9:04
@ManuelAlvarez Post edited
– user9677832
Oct 15 '16 at 11:01
@ManuelAlvarez Post edited
– user9677832
Oct 15 '16 at 11:01
1
1
Can you also add the output of
grep '15 08:23:' /var/log/apache2/error.log
– Martin Thornton
Oct 15 '16 at 11:56
Can you also add the output of
grep '15 08:23:' /var/log/apache2/error.log
– Martin Thornton
Oct 15 '16 at 11:56
If there is no output, run
zgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
instead.– Martin Thornton
Oct 15 '16 at 20:32
If there is no output, run
zgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
instead.– Martin Thornton
Oct 15 '16 at 20:32
I also tried to reboot entire OS , but it did not help.
– user9677832
Oct 16 '16 at 10:19
I also tried to reboot entire OS , but it did not help.
– user9677832
Oct 16 '16 at 10:19
|
show 2 more comments
2 Answers
2
active
oldest
votes
Do
apachectl stop
It will throw an error message regarding syntax error in /etc/apache2/apache2.conf
file
Correct it.
Then do
apachectl stop
/etc/init.d/apache2 start
Now reloading of apache2 will work
Do
/etc/init.d/apache2 reload
Actually, that was month ago and i had to reinstall OS . By the Way, Thank you for the answer.
– user9677832
Nov 14 '16 at 8:28
This worked for me!
– gthuo
Oct 4 '18 at 5:04
add a comment |
it worked for me, too! I had an error at file /etc/apache2/sites-enabled/----.conf
Using "apachectl stop" showed me where the error was.
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f837372%2fapache2-service-is-not-active-cannot-reload%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Do
apachectl stop
It will throw an error message regarding syntax error in /etc/apache2/apache2.conf
file
Correct it.
Then do
apachectl stop
/etc/init.d/apache2 start
Now reloading of apache2 will work
Do
/etc/init.d/apache2 reload
Actually, that was month ago and i had to reinstall OS . By the Way, Thank you for the answer.
– user9677832
Nov 14 '16 at 8:28
This worked for me!
– gthuo
Oct 4 '18 at 5:04
add a comment |
Do
apachectl stop
It will throw an error message regarding syntax error in /etc/apache2/apache2.conf
file
Correct it.
Then do
apachectl stop
/etc/init.d/apache2 start
Now reloading of apache2 will work
Do
/etc/init.d/apache2 reload
Actually, that was month ago and i had to reinstall OS . By the Way, Thank you for the answer.
– user9677832
Nov 14 '16 at 8:28
This worked for me!
– gthuo
Oct 4 '18 at 5:04
add a comment |
Do
apachectl stop
It will throw an error message regarding syntax error in /etc/apache2/apache2.conf
file
Correct it.
Then do
apachectl stop
/etc/init.d/apache2 start
Now reloading of apache2 will work
Do
/etc/init.d/apache2 reload
Do
apachectl stop
It will throw an error message regarding syntax error in /etc/apache2/apache2.conf
file
Correct it.
Then do
apachectl stop
/etc/init.d/apache2 start
Now reloading of apache2 will work
Do
/etc/init.d/apache2 reload
answered Nov 13 '16 at 15:08
ranchorancho
2,27321446
2,27321446
Actually, that was month ago and i had to reinstall OS . By the Way, Thank you for the answer.
– user9677832
Nov 14 '16 at 8:28
This worked for me!
– gthuo
Oct 4 '18 at 5:04
add a comment |
Actually, that was month ago and i had to reinstall OS . By the Way, Thank you for the answer.
– user9677832
Nov 14 '16 at 8:28
This worked for me!
– gthuo
Oct 4 '18 at 5:04
Actually, that was month ago and i had to reinstall OS . By the Way, Thank you for the answer.
– user9677832
Nov 14 '16 at 8:28
Actually, that was month ago and i had to reinstall OS . By the Way, Thank you for the answer.
– user9677832
Nov 14 '16 at 8:28
This worked for me!
– gthuo
Oct 4 '18 at 5:04
This worked for me!
– gthuo
Oct 4 '18 at 5:04
add a comment |
it worked for me, too! I had an error at file /etc/apache2/sites-enabled/----.conf
Using "apachectl stop" showed me where the error was.
New contributor
add a comment |
it worked for me, too! I had an error at file /etc/apache2/sites-enabled/----.conf
Using "apachectl stop" showed me where the error was.
New contributor
add a comment |
it worked for me, too! I had an error at file /etc/apache2/sites-enabled/----.conf
Using "apachectl stop" showed me where the error was.
New contributor
it worked for me, too! I had an error at file /etc/apache2/sites-enabled/----.conf
Using "apachectl stop" showed me where the error was.
New contributor
New contributor
answered 41 mins ago
francofranco
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f837372%2fapache2-service-is-not-active-cannot-reload%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can we see the output of sudo service apache2 status?
– Manuel Alvarez
Oct 15 '16 at 9:04
@ManuelAlvarez Post edited
– user9677832
Oct 15 '16 at 11:01
1
Can you also add the output of
grep '15 08:23:' /var/log/apache2/error.log
– Martin Thornton
Oct 15 '16 at 11:56
If there is no output, run
zgrep -h 'Oct 15 08:23:' /var/log/apache2/error.log*
instead.– Martin Thornton
Oct 15 '16 at 20:32
I also tried to reboot entire OS , but it did not help.
– user9677832
Oct 16 '16 at 10:19