Apache startup error with symlinked configuration file with 777 permissions
Ubuntu virtual machine with Apache 2.4.7
I'm getting these errors:
apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/servername.conf: No such file or directory
Action 'configtest' failed.
But there is such a file! In fact, Apache found it all by itself. Line 216, mentioned above, is IncludeOptional conf-enabled/*.conf
. So I guess it formed a shell expansion and got the list of conf files and then decided one of them didn't exist. Why?
As everyone knows, in /etc/apache2/conf-enabled
are a bunch of symlinks to files in /etc/apache2/conf-available
, created with a2enconf
.
In my case, servername.conf
in conf-available
is itself a symlink, pointing to my own set of configuration files (for apache and other services) for setting up virtual machines. For some reason, even though Apache is finding the symlink, it is reporting it doesn't exist. I don't see why it's a problem, since there is another symlink there that phpMyAdmin uses to link to its config files and causes no error.
One difference between the phpMyAdmin file and mine is that my file (and all of its parent directories) has 777 permissions. It is in a shared folder mounted from outside the virtual machine (shared with the Windows 8.1 host).
Does Apache have a problem with 777 permissions in config files?
permissions apache-httpd configuration symlink
add a comment |
Ubuntu virtual machine with Apache 2.4.7
I'm getting these errors:
apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/servername.conf: No such file or directory
Action 'configtest' failed.
But there is such a file! In fact, Apache found it all by itself. Line 216, mentioned above, is IncludeOptional conf-enabled/*.conf
. So I guess it formed a shell expansion and got the list of conf files and then decided one of them didn't exist. Why?
As everyone knows, in /etc/apache2/conf-enabled
are a bunch of symlinks to files in /etc/apache2/conf-available
, created with a2enconf
.
In my case, servername.conf
in conf-available
is itself a symlink, pointing to my own set of configuration files (for apache and other services) for setting up virtual machines. For some reason, even though Apache is finding the symlink, it is reporting it doesn't exist. I don't see why it's a problem, since there is another symlink there that phpMyAdmin uses to link to its config files and causes no error.
One difference between the phpMyAdmin file and mine is that my file (and all of its parent directories) has 777 permissions. It is in a shared folder mounted from outside the virtual machine (shared with the Windows 8.1 host).
Does Apache have a problem with 777 permissions in config files?
permissions apache-httpd configuration symlink
add a comment |
Ubuntu virtual machine with Apache 2.4.7
I'm getting these errors:
apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/servername.conf: No such file or directory
Action 'configtest' failed.
But there is such a file! In fact, Apache found it all by itself. Line 216, mentioned above, is IncludeOptional conf-enabled/*.conf
. So I guess it formed a shell expansion and got the list of conf files and then decided one of them didn't exist. Why?
As everyone knows, in /etc/apache2/conf-enabled
are a bunch of symlinks to files in /etc/apache2/conf-available
, created with a2enconf
.
In my case, servername.conf
in conf-available
is itself a symlink, pointing to my own set of configuration files (for apache and other services) for setting up virtual machines. For some reason, even though Apache is finding the symlink, it is reporting it doesn't exist. I don't see why it's a problem, since there is another symlink there that phpMyAdmin uses to link to its config files and causes no error.
One difference between the phpMyAdmin file and mine is that my file (and all of its parent directories) has 777 permissions. It is in a shared folder mounted from outside the virtual machine (shared with the Windows 8.1 host).
Does Apache have a problem with 777 permissions in config files?
permissions apache-httpd configuration symlink
Ubuntu virtual machine with Apache 2.4.7
I'm getting these errors:
apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/servername.conf: No such file or directory
Action 'configtest' failed.
But there is such a file! In fact, Apache found it all by itself. Line 216, mentioned above, is IncludeOptional conf-enabled/*.conf
. So I guess it formed a shell expansion and got the list of conf files and then decided one of them didn't exist. Why?
As everyone knows, in /etc/apache2/conf-enabled
are a bunch of symlinks to files in /etc/apache2/conf-available
, created with a2enconf
.
In my case, servername.conf
in conf-available
is itself a symlink, pointing to my own set of configuration files (for apache and other services) for setting up virtual machines. For some reason, even though Apache is finding the symlink, it is reporting it doesn't exist. I don't see why it's a problem, since there is another symlink there that phpMyAdmin uses to link to its config files and causes no error.
One difference between the phpMyAdmin file and mine is that my file (and all of its parent directories) has 777 permissions. It is in a shared folder mounted from outside the virtual machine (shared with the Windows 8.1 host).
Does Apache have a problem with 777 permissions in config files?
permissions apache-httpd configuration symlink
permissions apache-httpd configuration symlink
asked 6 mins ago
Buttle ButkusButtle Butkus
17118
17118
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f493077%2fapache-startup-error-with-symlinked-configuration-file-with-777-permissions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f493077%2fapache-startup-error-with-symlinked-configuration-file-with-777-permissions%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