apache2 not starting automatically in Ubuntu 14.04
I have fresh Ubuntu 14.04 installation with apache2. I have noticed apache2 is not starting at the boot. I have tried to enable it with sudo update-rc.d apache2 defaults
, but it still doesn't start with the system...
Restarting using services sudo service apache2 start
works ok.
I have checked the apache2 log less /var/log/apache2/error.log
, but it seems the system doesn't start it at the boot. Any idea how to enable autostart?
HINT: My home folder is encrypted, while some websites DocumentRoot
are stored in my ~/Public folder. Thus, apache2 probably cannot start, because some encrypted folders are not mounted at boot. Is there a way of starting apache2 on login, or postponing its launch until my home filesystem is mounted?
apache2 encryption autostart
bumped to the homepage by Community♦ 57 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have fresh Ubuntu 14.04 installation with apache2. I have noticed apache2 is not starting at the boot. I have tried to enable it with sudo update-rc.d apache2 defaults
, but it still doesn't start with the system...
Restarting using services sudo service apache2 start
works ok.
I have checked the apache2 log less /var/log/apache2/error.log
, but it seems the system doesn't start it at the boot. Any idea how to enable autostart?
HINT: My home folder is encrypted, while some websites DocumentRoot
are stored in my ~/Public folder. Thus, apache2 probably cannot start, because some encrypted folders are not mounted at boot. Is there a way of starting apache2 on login, or postponing its launch until my home filesystem is mounted?
apache2 encryption autostart
bumped to the homepage by Community♦ 57 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have fresh Ubuntu 14.04 installation with apache2. I have noticed apache2 is not starting at the boot. I have tried to enable it with sudo update-rc.d apache2 defaults
, but it still doesn't start with the system...
Restarting using services sudo service apache2 start
works ok.
I have checked the apache2 log less /var/log/apache2/error.log
, but it seems the system doesn't start it at the boot. Any idea how to enable autostart?
HINT: My home folder is encrypted, while some websites DocumentRoot
are stored in my ~/Public folder. Thus, apache2 probably cannot start, because some encrypted folders are not mounted at boot. Is there a way of starting apache2 on login, or postponing its launch until my home filesystem is mounted?
apache2 encryption autostart
I have fresh Ubuntu 14.04 installation with apache2. I have noticed apache2 is not starting at the boot. I have tried to enable it with sudo update-rc.d apache2 defaults
, but it still doesn't start with the system...
Restarting using services sudo service apache2 start
works ok.
I have checked the apache2 log less /var/log/apache2/error.log
, but it seems the system doesn't start it at the boot. Any idea how to enable autostart?
HINT: My home folder is encrypted, while some websites DocumentRoot
are stored in my ~/Public folder. Thus, apache2 probably cannot start, because some encrypted folders are not mounted at boot. Is there a way of starting apache2 on login, or postponing its launch until my home filesystem is mounted?
apache2 encryption autostart
apache2 encryption autostart
asked Jan 17 '15 at 11:53
LeszekLeszek
2,04611211
2,04611211
bumped to the homepage by Community♦ 57 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 57 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can postpone apache to start by renaming the symlinks which were created byupdate-rc.d apache2 defaults
- "defaults" mean that such symlinks were created for default runlevels set in /etc/init.d/apache2, so in /etc/rc2.d, /etc/rc3.d, /etc/rc4.d, /etc/rc5.d
directories..
In each above directory, you will see something like "S91apache2 -> ../init.d/apache2*
"
issue command sudo mv S91apache2 S99apache2
in each above directory.
The biggest is the number, the later the script will be started - however, using S99 is the latest posssible time to start...
that's useful. and what does S91 or S99 mean? how can I check when is the encrypted filesystem mounted?
– Leszek
Jan 17 '15 at 12:28
regarding S91 and S99 have a look at the UpstartHowto here: help.ubuntu.com/community/…
– aFoP
Jan 17 '15 at 12:35
1
I'm afraid your encrypted /home directory will be only mounted after you log on...
– aFoP
Jan 17 '15 at 12:52
indeed, that's the case. then my next question, can apache start with some virtual hosts, and enable virtual host from my encrypted home after I login?
– Leszek
Jan 19 '15 at 8:30
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%2f574718%2fapache2-not-starting-automatically-in-ubuntu-14-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can postpone apache to start by renaming the symlinks which were created byupdate-rc.d apache2 defaults
- "defaults" mean that such symlinks were created for default runlevels set in /etc/init.d/apache2, so in /etc/rc2.d, /etc/rc3.d, /etc/rc4.d, /etc/rc5.d
directories..
In each above directory, you will see something like "S91apache2 -> ../init.d/apache2*
"
issue command sudo mv S91apache2 S99apache2
in each above directory.
The biggest is the number, the later the script will be started - however, using S99 is the latest posssible time to start...
that's useful. and what does S91 or S99 mean? how can I check when is the encrypted filesystem mounted?
– Leszek
Jan 17 '15 at 12:28
regarding S91 and S99 have a look at the UpstartHowto here: help.ubuntu.com/community/…
– aFoP
Jan 17 '15 at 12:35
1
I'm afraid your encrypted /home directory will be only mounted after you log on...
– aFoP
Jan 17 '15 at 12:52
indeed, that's the case. then my next question, can apache start with some virtual hosts, and enable virtual host from my encrypted home after I login?
– Leszek
Jan 19 '15 at 8:30
add a comment |
You can postpone apache to start by renaming the symlinks which were created byupdate-rc.d apache2 defaults
- "defaults" mean that such symlinks were created for default runlevels set in /etc/init.d/apache2, so in /etc/rc2.d, /etc/rc3.d, /etc/rc4.d, /etc/rc5.d
directories..
In each above directory, you will see something like "S91apache2 -> ../init.d/apache2*
"
issue command sudo mv S91apache2 S99apache2
in each above directory.
The biggest is the number, the later the script will be started - however, using S99 is the latest posssible time to start...
that's useful. and what does S91 or S99 mean? how can I check when is the encrypted filesystem mounted?
– Leszek
Jan 17 '15 at 12:28
regarding S91 and S99 have a look at the UpstartHowto here: help.ubuntu.com/community/…
– aFoP
Jan 17 '15 at 12:35
1
I'm afraid your encrypted /home directory will be only mounted after you log on...
– aFoP
Jan 17 '15 at 12:52
indeed, that's the case. then my next question, can apache start with some virtual hosts, and enable virtual host from my encrypted home after I login?
– Leszek
Jan 19 '15 at 8:30
add a comment |
You can postpone apache to start by renaming the symlinks which were created byupdate-rc.d apache2 defaults
- "defaults" mean that such symlinks were created for default runlevels set in /etc/init.d/apache2, so in /etc/rc2.d, /etc/rc3.d, /etc/rc4.d, /etc/rc5.d
directories..
In each above directory, you will see something like "S91apache2 -> ../init.d/apache2*
"
issue command sudo mv S91apache2 S99apache2
in each above directory.
The biggest is the number, the later the script will be started - however, using S99 is the latest posssible time to start...
You can postpone apache to start by renaming the symlinks which were created byupdate-rc.d apache2 defaults
- "defaults" mean that such symlinks were created for default runlevels set in /etc/init.d/apache2, so in /etc/rc2.d, /etc/rc3.d, /etc/rc4.d, /etc/rc5.d
directories..
In each above directory, you will see something like "S91apache2 -> ../init.d/apache2*
"
issue command sudo mv S91apache2 S99apache2
in each above directory.
The biggest is the number, the later the script will be started - however, using S99 is the latest posssible time to start...
answered Jan 17 '15 at 12:26
aFoPaFoP
1665
1665
that's useful. and what does S91 or S99 mean? how can I check when is the encrypted filesystem mounted?
– Leszek
Jan 17 '15 at 12:28
regarding S91 and S99 have a look at the UpstartHowto here: help.ubuntu.com/community/…
– aFoP
Jan 17 '15 at 12:35
1
I'm afraid your encrypted /home directory will be only mounted after you log on...
– aFoP
Jan 17 '15 at 12:52
indeed, that's the case. then my next question, can apache start with some virtual hosts, and enable virtual host from my encrypted home after I login?
– Leszek
Jan 19 '15 at 8:30
add a comment |
that's useful. and what does S91 or S99 mean? how can I check when is the encrypted filesystem mounted?
– Leszek
Jan 17 '15 at 12:28
regarding S91 and S99 have a look at the UpstartHowto here: help.ubuntu.com/community/…
– aFoP
Jan 17 '15 at 12:35
1
I'm afraid your encrypted /home directory will be only mounted after you log on...
– aFoP
Jan 17 '15 at 12:52
indeed, that's the case. then my next question, can apache start with some virtual hosts, and enable virtual host from my encrypted home after I login?
– Leszek
Jan 19 '15 at 8:30
that's useful. and what does S91 or S99 mean? how can I check when is the encrypted filesystem mounted?
– Leszek
Jan 17 '15 at 12:28
that's useful. and what does S91 or S99 mean? how can I check when is the encrypted filesystem mounted?
– Leszek
Jan 17 '15 at 12:28
regarding S91 and S99 have a look at the UpstartHowto here: help.ubuntu.com/community/…
– aFoP
Jan 17 '15 at 12:35
regarding S91 and S99 have a look at the UpstartHowto here: help.ubuntu.com/community/…
– aFoP
Jan 17 '15 at 12:35
1
1
I'm afraid your encrypted /home directory will be only mounted after you log on...
– aFoP
Jan 17 '15 at 12:52
I'm afraid your encrypted /home directory will be only mounted after you log on...
– aFoP
Jan 17 '15 at 12:52
indeed, that's the case. then my next question, can apache start with some virtual hosts, and enable virtual host from my encrypted home after I login?
– Leszek
Jan 19 '15 at 8:30
indeed, that's the case. then my next question, can apache start with some virtual hosts, and enable virtual host from my encrypted home after I login?
– Leszek
Jan 19 '15 at 8:30
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%2f574718%2fapache2-not-starting-automatically-in-ubuntu-14-04%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