Apache won't start after ubuntu 17.10 update












0















I am running Ubuntu 17.10 and I'm working with Apache developing websites locally.



Until today it worked fine but after updating Ubuntu via software and update, Apache is not working. I try to start the service but it wont start.
Beside this, when typing Apache2 on terminal, I get the follow line:



[Thu Nov 16 10:45:21.428052 2017] [core:warn] [pid 3509] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot


How can I fix this?










share|improve this question




















  • 2





    Read the error message. It tells you exactly what it thinks the problem is.

    – user535733
    Nov 16 '17 at 10:29













  • How did you start apache ? See askubuntu.com/questions/452042/… and askubuntu.com/questions/800214/… and update your question of neither of those solve your problem (especially changing from /var/www to /var/www/html) . We need to know how you are starting apache (post the command you ran) as well as the syntax of line 80 of /etc/apache2/apache2.conf

    – Panther
    Nov 16 '17 at 12:27











  • Maybe you find this solution source /etc/apache2/envvars check your settings apachectl -S, apachectl -V

    – Aleksey
    Feb 15 at 18:31
















0















I am running Ubuntu 17.10 and I'm working with Apache developing websites locally.



Until today it worked fine but after updating Ubuntu via software and update, Apache is not working. I try to start the service but it wont start.
Beside this, when typing Apache2 on terminal, I get the follow line:



[Thu Nov 16 10:45:21.428052 2017] [core:warn] [pid 3509] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot


How can I fix this?










share|improve this question




















  • 2





    Read the error message. It tells you exactly what it thinks the problem is.

    – user535733
    Nov 16 '17 at 10:29













  • How did you start apache ? See askubuntu.com/questions/452042/… and askubuntu.com/questions/800214/… and update your question of neither of those solve your problem (especially changing from /var/www to /var/www/html) . We need to know how you are starting apache (post the command you ran) as well as the syntax of line 80 of /etc/apache2/apache2.conf

    – Panther
    Nov 16 '17 at 12:27











  • Maybe you find this solution source /etc/apache2/envvars check your settings apachectl -S, apachectl -V

    – Aleksey
    Feb 15 at 18:31














0












0








0








I am running Ubuntu 17.10 and I'm working with Apache developing websites locally.



Until today it worked fine but after updating Ubuntu via software and update, Apache is not working. I try to start the service but it wont start.
Beside this, when typing Apache2 on terminal, I get the follow line:



[Thu Nov 16 10:45:21.428052 2017] [core:warn] [pid 3509] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot


How can I fix this?










share|improve this question
















I am running Ubuntu 17.10 and I'm working with Apache developing websites locally.



Until today it worked fine but after updating Ubuntu via software and update, Apache is not working. I try to start the service but it wont start.
Beside this, when typing Apache2 on terminal, I get the follow line:



[Thu Nov 16 10:45:21.428052 2017] [core:warn] [pid 3509] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot


How can I fix this?







apache2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '17 at 16:49









pa4080

14.6k52872




14.6k52872










asked Nov 16 '17 at 9:47









Sh NdrukajSh Ndrukaj

11




11








  • 2





    Read the error message. It tells you exactly what it thinks the problem is.

    – user535733
    Nov 16 '17 at 10:29













  • How did you start apache ? See askubuntu.com/questions/452042/… and askubuntu.com/questions/800214/… and update your question of neither of those solve your problem (especially changing from /var/www to /var/www/html) . We need to know how you are starting apache (post the command you ran) as well as the syntax of line 80 of /etc/apache2/apache2.conf

    – Panther
    Nov 16 '17 at 12:27











  • Maybe you find this solution source /etc/apache2/envvars check your settings apachectl -S, apachectl -V

    – Aleksey
    Feb 15 at 18:31














  • 2





    Read the error message. It tells you exactly what it thinks the problem is.

    – user535733
    Nov 16 '17 at 10:29













  • How did you start apache ? See askubuntu.com/questions/452042/… and askubuntu.com/questions/800214/… and update your question of neither of those solve your problem (especially changing from /var/www to /var/www/html) . We need to know how you are starting apache (post the command you ran) as well as the syntax of line 80 of /etc/apache2/apache2.conf

    – Panther
    Nov 16 '17 at 12:27











  • Maybe you find this solution source /etc/apache2/envvars check your settings apachectl -S, apachectl -V

    – Aleksey
    Feb 15 at 18:31








2




2





Read the error message. It tells you exactly what it thinks the problem is.

– user535733
Nov 16 '17 at 10:29







Read the error message. It tells you exactly what it thinks the problem is.

– user535733
Nov 16 '17 at 10:29















How did you start apache ? See askubuntu.com/questions/452042/… and askubuntu.com/questions/800214/… and update your question of neither of those solve your problem (especially changing from /var/www to /var/www/html) . We need to know how you are starting apache (post the command you ran) as well as the syntax of line 80 of /etc/apache2/apache2.conf

– Panther
Nov 16 '17 at 12:27





How did you start apache ? See askubuntu.com/questions/452042/… and askubuntu.com/questions/800214/… and update your question of neither of those solve your problem (especially changing from /var/www to /var/www/html) . We need to know how you are starting apache (post the command you ran) as well as the syntax of line 80 of /etc/apache2/apache2.conf

– Panther
Nov 16 '17 at 12:27













Maybe you find this solution source /etc/apache2/envvars check your settings apachectl -S, apachectl -V

– Aleksey
Feb 15 at 18:31





Maybe you find this solution source /etc/apache2/envvars check your settings apachectl -S, apachectl -V

– Aleksey
Feb 15 at 18:31










0






active

oldest

votes











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f976977%2fapache-wont-start-after-ubuntu-17-10-update%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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f976977%2fapache-wont-start-after-ubuntu-17-10-update%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

is 'sed' thread safe

How to make a Squid Proxy server?