apache2.service Failed Because the Control Process Exited with Error CodeCant use https on localhostCan't...

align* environment issues

Writing with dry erase marker on Shabbos, is it permitted?

How do I know what is the origin IP if I ping from a router to a host of an external network in packet tracer?

Why did David Cameron offer a referendum on the European Union?

Why doesn't the Earth accelerate towards the Moon?

Why do airplanes use an axial flow jet engine instead of a more compact centrifugal jet engine?

Crossing US border with music files I'm legally allowed to possess

Why do Ryanair allow me to book connecting itineraries through a third party, but not through their own website?

What are the real benefits of using Salesforce DX?

Employer demanding to see degree after poor code review

Adding spaces to string based on list

Ticket to ride, 1910: What are the big cities

What to do when you've set the wrong ISO for your film?

How to make a villain fall in love?

Website returning plaintext password

Cipher Block Chaining - How do you change the plaintext of all blocks?

Is there a way to make it so the cursor is included when I prtscr key?

Is the Indo-European language family made up?

What kind of metaphor is "trees in the wind"?

Count Even Digits In Number

Construct a word ladder

Where is the logic in castrating fighters?

Is it possible to play as a necromancer skeleton?

Why are C64 games inconsistent with which joystick port they use?



apache2.service Failed Because the Control Process Exited with Error Code


Cant use https on localhostCan't find where modsecurity.conf and .load file are located?Auto-restart apache2 on crash with systemd(Ubuntu 15.10)How do I define an Ubuntu Linux16.04 systemd service for fastcgi-mono-server4 or xsp4?How to start up k=10 Apache2 server processes upon Ubuntu 16.04 alpha release reboot?How to fix httpd error code AH00526?ProxyPass worker hostname too longJob for apache2.service failed because the control process exited with error code. start apache alongside node-redVery slow login + very slow response - dbus error? - Ubuntu 18.04.1 LTS - on Virtualbox 5.2.18 r124319 (Qt5.6.3) - on MacOS High Sierra 10.13.6How do I install Apache as a “service unit”?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I am using Ubuntu 15 64-bit:



$ uname -a
Linux {hostname} 4.2.0-16-generic


And I have installed apache2:



$ sudo apt-get install -y apache2


I have a mod_xxx.so, which I have placed into: /usr/lib/apache2/modules/. I set the permissions to 755 (rwx r-x r-x).



I edited the apache2.conf:



$ sudo vi /etc/apache2/apache2.conf
...
AddHandler xxx-handler .xxx
LoadModule xxx_module modules/mod_xxx.so


I know this works, as I have done this on several other Linux machines before.



When I try to restart Apache, it is failing with this error:



$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.


After doing, what it says above, systemctl status apache2.service, it shows this:



apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Wed 2016-03-09 10:32:34 GMT; 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 3479 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 3503 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 09 10:32:34 Ubuntu14 apache2[3503]: *
Mar 09 10:32:34 Ubuntu14 apache2[3503]: * The apache2 configtest failed.
Mar 09 10:32:34 Ubuntu14 apache2[3503]: Output of config test was:
Mar 09 10:32:34 Ubuntu14 apache2[3503]: apache2: Syntax error on line 224 of...y
Mar 09 10:32:34 Ubuntu14 apache2[3503]: Action 'configtest' failed.
Mar 09 10:32:34 Ubuntu14 apache2[3503]: The Apache error log may have more i....
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Control process exite...=1
Mar 09 10:32:34 Ubuntu14 systemd[1]: Failed to start LSB: Apache2 web server.
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Unit entered failed state.
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Failed with result 'e...'.
Hint: Some lines were ellipsized, use -l to show in full.


So I have tried to search everywhere for where LoadModule is specified. So I have tried doing this:



$ sudo grep "LoadModule" /


I have also tried this:



 sudo find / -type f grep -l "LoadModule"


Still no luck.



Where is the LoadModule specified, in Apache 2.4.12?



I know that in Apache 2.4.7, it is in the apache.conf file, which I have used the same logic here that I have used in the newer version.



This is done on a Virtual Machine, so if an error does happen, I can clean the machine and start again. I am the root user too.










share|improve this question

























  • There's some change in line 224 that's caused an issue? Edit your post with the content of this file, or at least an extract around line 224. As the output suggests, use the -l option to get a full width output. You can also journalctl -eu apache2 to get it to show just apache logs.

    – garethTheRed
    Mar 9 '16 at 11:38


















0















I am using Ubuntu 15 64-bit:



$ uname -a
Linux {hostname} 4.2.0-16-generic


And I have installed apache2:



$ sudo apt-get install -y apache2


I have a mod_xxx.so, which I have placed into: /usr/lib/apache2/modules/. I set the permissions to 755 (rwx r-x r-x).



I edited the apache2.conf:



$ sudo vi /etc/apache2/apache2.conf
...
AddHandler xxx-handler .xxx
LoadModule xxx_module modules/mod_xxx.so


I know this works, as I have done this on several other Linux machines before.



When I try to restart Apache, it is failing with this error:



$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.


After doing, what it says above, systemctl status apache2.service, it shows this:



apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Wed 2016-03-09 10:32:34 GMT; 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 3479 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 3503 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 09 10:32:34 Ubuntu14 apache2[3503]: *
Mar 09 10:32:34 Ubuntu14 apache2[3503]: * The apache2 configtest failed.
Mar 09 10:32:34 Ubuntu14 apache2[3503]: Output of config test was:
Mar 09 10:32:34 Ubuntu14 apache2[3503]: apache2: Syntax error on line 224 of...y
Mar 09 10:32:34 Ubuntu14 apache2[3503]: Action 'configtest' failed.
Mar 09 10:32:34 Ubuntu14 apache2[3503]: The Apache error log may have more i....
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Control process exite...=1
Mar 09 10:32:34 Ubuntu14 systemd[1]: Failed to start LSB: Apache2 web server.
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Unit entered failed state.
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Failed with result 'e...'.
Hint: Some lines were ellipsized, use -l to show in full.


So I have tried to search everywhere for where LoadModule is specified. So I have tried doing this:



$ sudo grep "LoadModule" /


I have also tried this:



 sudo find / -type f grep -l "LoadModule"


Still no luck.



Where is the LoadModule specified, in Apache 2.4.12?



I know that in Apache 2.4.7, it is in the apache.conf file, which I have used the same logic here that I have used in the newer version.



This is done on a Virtual Machine, so if an error does happen, I can clean the machine and start again. I am the root user too.










share|improve this question

























  • There's some change in line 224 that's caused an issue? Edit your post with the content of this file, or at least an extract around line 224. As the output suggests, use the -l option to get a full width output. You can also journalctl -eu apache2 to get it to show just apache logs.

    – garethTheRed
    Mar 9 '16 at 11:38














0












0








0


1






I am using Ubuntu 15 64-bit:



$ uname -a
Linux {hostname} 4.2.0-16-generic


And I have installed apache2:



$ sudo apt-get install -y apache2


I have a mod_xxx.so, which I have placed into: /usr/lib/apache2/modules/. I set the permissions to 755 (rwx r-x r-x).



I edited the apache2.conf:



$ sudo vi /etc/apache2/apache2.conf
...
AddHandler xxx-handler .xxx
LoadModule xxx_module modules/mod_xxx.so


I know this works, as I have done this on several other Linux machines before.



When I try to restart Apache, it is failing with this error:



$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.


After doing, what it says above, systemctl status apache2.service, it shows this:



apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Wed 2016-03-09 10:32:34 GMT; 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 3479 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 3503 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 09 10:32:34 Ubuntu14 apache2[3503]: *
Mar 09 10:32:34 Ubuntu14 apache2[3503]: * The apache2 configtest failed.
Mar 09 10:32:34 Ubuntu14 apache2[3503]: Output of config test was:
Mar 09 10:32:34 Ubuntu14 apache2[3503]: apache2: Syntax error on line 224 of...y
Mar 09 10:32:34 Ubuntu14 apache2[3503]: Action 'configtest' failed.
Mar 09 10:32:34 Ubuntu14 apache2[3503]: The Apache error log may have more i....
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Control process exite...=1
Mar 09 10:32:34 Ubuntu14 systemd[1]: Failed to start LSB: Apache2 web server.
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Unit entered failed state.
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Failed with result 'e...'.
Hint: Some lines were ellipsized, use -l to show in full.


So I have tried to search everywhere for where LoadModule is specified. So I have tried doing this:



$ sudo grep "LoadModule" /


I have also tried this:



 sudo find / -type f grep -l "LoadModule"


Still no luck.



Where is the LoadModule specified, in Apache 2.4.12?



I know that in Apache 2.4.7, it is in the apache.conf file, which I have used the same logic here that I have used in the newer version.



This is done on a Virtual Machine, so if an error does happen, I can clean the machine and start again. I am the root user too.










share|improve this question
















I am using Ubuntu 15 64-bit:



$ uname -a
Linux {hostname} 4.2.0-16-generic


And I have installed apache2:



$ sudo apt-get install -y apache2


I have a mod_xxx.so, which I have placed into: /usr/lib/apache2/modules/. I set the permissions to 755 (rwx r-x r-x).



I edited the apache2.conf:



$ sudo vi /etc/apache2/apache2.conf
...
AddHandler xxx-handler .xxx
LoadModule xxx_module modules/mod_xxx.so


I know this works, as I have done this on several other Linux machines before.



When I try to restart Apache, it is failing with this error:



$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.


After doing, what it says above, systemctl status apache2.service, it shows this:



apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Wed 2016-03-09 10:32:34 GMT; 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 3479 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 3503 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 09 10:32:34 Ubuntu14 apache2[3503]: *
Mar 09 10:32:34 Ubuntu14 apache2[3503]: * The apache2 configtest failed.
Mar 09 10:32:34 Ubuntu14 apache2[3503]: Output of config test was:
Mar 09 10:32:34 Ubuntu14 apache2[3503]: apache2: Syntax error on line 224 of...y
Mar 09 10:32:34 Ubuntu14 apache2[3503]: Action 'configtest' failed.
Mar 09 10:32:34 Ubuntu14 apache2[3503]: The Apache error log may have more i....
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Control process exite...=1
Mar 09 10:32:34 Ubuntu14 systemd[1]: Failed to start LSB: Apache2 web server.
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Unit entered failed state.
Mar 09 10:32:34 Ubuntu14 systemd[1]: apache2.service: Failed with result 'e...'.
Hint: Some lines were ellipsized, use -l to show in full.


So I have tried to search everywhere for where LoadModule is specified. So I have tried doing this:



$ sudo grep "LoadModule" /


I have also tried this:



 sudo find / -type f grep -l "LoadModule"


Still no luck.



Where is the LoadModule specified, in Apache 2.4.12?



I know that in Apache 2.4.7, it is in the apache.conf file, which I have used the same logic here that I have used in the newer version.



This is done on a Virtual Machine, so if an error does happen, I can clean the machine and start again. I am the root user too.







ubuntu apache-httpd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 23 '16 at 12:06









Jeff Schaller

45.8k1165150




45.8k1165150










asked Mar 9 '16 at 10:42









Kevdog777Kevdog777

2,122123461




2,122123461













  • There's some change in line 224 that's caused an issue? Edit your post with the content of this file, or at least an extract around line 224. As the output suggests, use the -l option to get a full width output. You can also journalctl -eu apache2 to get it to show just apache logs.

    – garethTheRed
    Mar 9 '16 at 11:38



















  • There's some change in line 224 that's caused an issue? Edit your post with the content of this file, or at least an extract around line 224. As the output suggests, use the -l option to get a full width output. You can also journalctl -eu apache2 to get it to show just apache logs.

    – garethTheRed
    Mar 9 '16 at 11:38

















There's some change in line 224 that's caused an issue? Edit your post with the content of this file, or at least an extract around line 224. As the output suggests, use the -l option to get a full width output. You can also journalctl -eu apache2 to get it to show just apache logs.

– garethTheRed
Mar 9 '16 at 11:38





There's some change in line 224 that's caused an issue? Edit your post with the content of this file, or at least an extract around line 224. As the output suggests, use the -l option to get a full width output. You can also journalctl -eu apache2 to get it to show just apache logs.

– garethTheRed
Mar 9 '16 at 11:38










2 Answers
2






active

oldest

votes


















1














The issue here, was that I had to use:



sudo a2enmod xxx.load


Then it said to restart Apache2. I did that, and now it is working.



This version of Apache (2.4.12) works different to how 2.4.7 works, so I had to do things a little differently.






share|improve this answer































    0














    just try
    apt-get reinstall apache2






    share|improve this answer








    New contributor



    Dark Lord is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















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


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f268613%2fapache2-service-failed-because-the-control-process-exited-with-error-code%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









      1














      The issue here, was that I had to use:



      sudo a2enmod xxx.load


      Then it said to restart Apache2. I did that, and now it is working.



      This version of Apache (2.4.12) works different to how 2.4.7 works, so I had to do things a little differently.






      share|improve this answer




























        1














        The issue here, was that I had to use:



        sudo a2enmod xxx.load


        Then it said to restart Apache2. I did that, and now it is working.



        This version of Apache (2.4.12) works different to how 2.4.7 works, so I had to do things a little differently.






        share|improve this answer


























          1












          1








          1







          The issue here, was that I had to use:



          sudo a2enmod xxx.load


          Then it said to restart Apache2. I did that, and now it is working.



          This version of Apache (2.4.12) works different to how 2.4.7 works, so I had to do things a little differently.






          share|improve this answer













          The issue here, was that I had to use:



          sudo a2enmod xxx.load


          Then it said to restart Apache2. I did that, and now it is working.



          This version of Apache (2.4.12) works different to how 2.4.7 works, so I had to do things a little differently.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 9 '16 at 14:32









          Kevdog777Kevdog777

          2,122123461




          2,122123461

























              0














              just try
              apt-get reinstall apache2






              share|improve this answer








              New contributor



              Dark Lord is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                just try
                apt-get reinstall apache2






                share|improve this answer








                New contributor



                Dark Lord is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  just try
                  apt-get reinstall apache2






                  share|improve this answer








                  New contributor



                  Dark Lord is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  just try
                  apt-get reinstall apache2







                  share|improve this answer








                  New contributor



                  Dark Lord is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share|improve this answer



                  share|improve this answer






                  New contributor



                  Dark Lord is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  answered 53 mins ago









                  Dark LordDark Lord

                  1




                  1




                  New contributor



                  Dark Lord is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.




                  New contributor




                  Dark Lord is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.
































                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f268613%2fapache2-service-failed-because-the-control-process-exited-with-error-code%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

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...