Gives Error : “Job for apache2.service failed because the control process exited with error code.” for...












2















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


I was properly working with my project and today morning I have reinstalled apache and php7.0. I have used ssl in my project. When I remove ssl from the virtual host, it worked fine. But when I add ssl again it give the above error. I have tried suggestions that have been given for above error. Non of then are worked. Can anyone help me. Thnak you in advance
output of sudo systemctl status apache2.service



● 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: failed (Result: exit-code) since සි 2017-04-21 08:35:19 +0530; 26s ago
Docs: man:systemd-sysv-generator(8)
Process: 3776 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 3114 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
Process: 3802 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: * The apache2 configtest failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Output of config test was:
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: AH00526: Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in t
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Action 'configtest' failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: The Apache error log may have more information.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: Failed to start LSB: Apache2 web server.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Unit entered failed state.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Failed with result 'exit-code'.


Output of sudo journalctl -xe



අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Unit entered failed state.
අප්<U+200D>රි 21 08:35:19 shyamali-pc sudo[3770]: pam_unix(sudo:session): session closed for user root
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Failed with result 'exit-code'.
අප්<U+200D>රි 21 08:35:45 shyamali-pc sudo[3822]: shyamali : TTY=pts/2 ; PWD=/home/shyamali ; USER=root ; COMMAND=/bin/systemctl status apache2.s
අප්<U+200D>රි 21 08:35:45 shyamali-pc sudo[3822]: pam_unix(sudo:session): session opened for user root by (uid=0)
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: pam_systemd(polkit-1:session): Cannot create session: Already running in a session
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: shyamali: Executing command [USER=root] [TTY=unknown] [CWD=/home/shyamali] [COMMAND=/usr/lib/
අප්<U+200D>රි 21 08:37:17 shyamali-pc sudo[3822]: pam_unix(sudo:session): session closed for user root
අප්<U+200D>රි 21 08:39:01 shyamali-pc CRON[3859]: pam_unix(cron:session): session opened for user root by (uid=0)
අප්<U+200D>රි 21 08:39:01 shyamali-pc CRON[3860]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
අප්<U+200D>රි 21 08:39:02 shyamali-pc CRON[3859]: pam_unix(cron:session): session closed for user root
අප්<U+200D>රි 21 08:41:51 shyamali-pc AptDaemon[2213]: INFO: Quitting due to inactivity
අප්<U+200D>රි 21 08:41:51 shyamali-pc AptDaemon[2213]: INFO: Quitting was requested
අප්<U+200D>රි 21 08:41:51 shyamali-pc org.debian.apt[564]: 08:41:51 AptDaemon [INFO]: Quitting due to inactivity
අප්<U+200D>රි 21 08:41:51 shyamali-pc org.debian.apt[564]: 08:41:51 AptDaemon [INFO]: Quitting was requested
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has begun starting up.
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd-tmpfiles[3943]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has finished starting up.
--
-- The start-up result is done.
අප්<U+200D>රි 21 08:44:53 shyamali-pc sudo[3950]: shyamali : TTY=pts/2 ; PWD=/home/shyamali ; USER=root ; COMMAND=/bin/journalctl -xe
අප්<U+200D>රි 21 08:44:53 shyamali-pc sudo[3950]: pam_unix(sudo:session): session opened for user root by (uid=0)
lines 1108-1149/1149 (END)


Note : Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype










share|improve this question

























  • Please edit your question and add the output of sudo systemctl status apache2.service and sudo journalctl -xe.

    – pa4080
    Apr 20 '17 at 14:20













  • I have add what you asked for. Thank you for your help. Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype

    – Shyamali
    Apr 21 '17 at 3:21











  • I thinks the problem is with ssl

    – Shyamali
    Apr 21 '17 at 5:45











  • There is written Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf. What have on this line? And when you sudo a2dissite TestCodeIgniter.local.confcould start Apache normally?

    – pa4080
    Apr 21 '17 at 6:16











  • In that line RewriteEngine On. when a2dissite it, it gives same error for another virtual host. These errors are only for ssl virtual hosts. When a2dissite all virtual hosts with ssl, apache restarts normally. Thank you

    – Shyamali
    Apr 21 '17 at 6:24


















2















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


I was properly working with my project and today morning I have reinstalled apache and php7.0. I have used ssl in my project. When I remove ssl from the virtual host, it worked fine. But when I add ssl again it give the above error. I have tried suggestions that have been given for above error. Non of then are worked. Can anyone help me. Thnak you in advance
output of sudo systemctl status apache2.service



● 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: failed (Result: exit-code) since සි 2017-04-21 08:35:19 +0530; 26s ago
Docs: man:systemd-sysv-generator(8)
Process: 3776 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 3114 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
Process: 3802 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: * The apache2 configtest failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Output of config test was:
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: AH00526: Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in t
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Action 'configtest' failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: The Apache error log may have more information.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: Failed to start LSB: Apache2 web server.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Unit entered failed state.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Failed with result 'exit-code'.


Output of sudo journalctl -xe



අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Unit entered failed state.
අප්<U+200D>රි 21 08:35:19 shyamali-pc sudo[3770]: pam_unix(sudo:session): session closed for user root
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Failed with result 'exit-code'.
අප්<U+200D>රි 21 08:35:45 shyamali-pc sudo[3822]: shyamali : TTY=pts/2 ; PWD=/home/shyamali ; USER=root ; COMMAND=/bin/systemctl status apache2.s
අප්<U+200D>රි 21 08:35:45 shyamali-pc sudo[3822]: pam_unix(sudo:session): session opened for user root by (uid=0)
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: pam_systemd(polkit-1:session): Cannot create session: Already running in a session
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: shyamali: Executing command [USER=root] [TTY=unknown] [CWD=/home/shyamali] [COMMAND=/usr/lib/
අප්<U+200D>රි 21 08:37:17 shyamali-pc sudo[3822]: pam_unix(sudo:session): session closed for user root
අප්<U+200D>රි 21 08:39:01 shyamali-pc CRON[3859]: pam_unix(cron:session): session opened for user root by (uid=0)
අප්<U+200D>රි 21 08:39:01 shyamali-pc CRON[3860]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
අප්<U+200D>රි 21 08:39:02 shyamali-pc CRON[3859]: pam_unix(cron:session): session closed for user root
අප්<U+200D>රි 21 08:41:51 shyamali-pc AptDaemon[2213]: INFO: Quitting due to inactivity
අප්<U+200D>රි 21 08:41:51 shyamali-pc AptDaemon[2213]: INFO: Quitting was requested
අප්<U+200D>රි 21 08:41:51 shyamali-pc org.debian.apt[564]: 08:41:51 AptDaemon [INFO]: Quitting due to inactivity
අප්<U+200D>රි 21 08:41:51 shyamali-pc org.debian.apt[564]: 08:41:51 AptDaemon [INFO]: Quitting was requested
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has begun starting up.
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd-tmpfiles[3943]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has finished starting up.
--
-- The start-up result is done.
අප්<U+200D>රි 21 08:44:53 shyamali-pc sudo[3950]: shyamali : TTY=pts/2 ; PWD=/home/shyamali ; USER=root ; COMMAND=/bin/journalctl -xe
අප්<U+200D>රි 21 08:44:53 shyamali-pc sudo[3950]: pam_unix(sudo:session): session opened for user root by (uid=0)
lines 1108-1149/1149 (END)


Note : Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype










share|improve this question

























  • Please edit your question and add the output of sudo systemctl status apache2.service and sudo journalctl -xe.

    – pa4080
    Apr 20 '17 at 14:20













  • I have add what you asked for. Thank you for your help. Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype

    – Shyamali
    Apr 21 '17 at 3:21











  • I thinks the problem is with ssl

    – Shyamali
    Apr 21 '17 at 5:45











  • There is written Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf. What have on this line? And when you sudo a2dissite TestCodeIgniter.local.confcould start Apache normally?

    – pa4080
    Apr 21 '17 at 6:16











  • In that line RewriteEngine On. when a2dissite it, it gives same error for another virtual host. These errors are only for ssl virtual hosts. When a2dissite all virtual hosts with ssl, apache restarts normally. Thank you

    – Shyamali
    Apr 21 '17 at 6:24
















2












2








2


0






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


I was properly working with my project and today morning I have reinstalled apache and php7.0. I have used ssl in my project. When I remove ssl from the virtual host, it worked fine. But when I add ssl again it give the above error. I have tried suggestions that have been given for above error. Non of then are worked. Can anyone help me. Thnak you in advance
output of sudo systemctl status apache2.service



● 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: failed (Result: exit-code) since සි 2017-04-21 08:35:19 +0530; 26s ago
Docs: man:systemd-sysv-generator(8)
Process: 3776 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 3114 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
Process: 3802 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: * The apache2 configtest failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Output of config test was:
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: AH00526: Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in t
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Action 'configtest' failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: The Apache error log may have more information.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: Failed to start LSB: Apache2 web server.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Unit entered failed state.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Failed with result 'exit-code'.


Output of sudo journalctl -xe



අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Unit entered failed state.
අප්<U+200D>රි 21 08:35:19 shyamali-pc sudo[3770]: pam_unix(sudo:session): session closed for user root
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Failed with result 'exit-code'.
අප්<U+200D>රි 21 08:35:45 shyamali-pc sudo[3822]: shyamali : TTY=pts/2 ; PWD=/home/shyamali ; USER=root ; COMMAND=/bin/systemctl status apache2.s
අප්<U+200D>රි 21 08:35:45 shyamali-pc sudo[3822]: pam_unix(sudo:session): session opened for user root by (uid=0)
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: pam_systemd(polkit-1:session): Cannot create session: Already running in a session
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: shyamali: Executing command [USER=root] [TTY=unknown] [CWD=/home/shyamali] [COMMAND=/usr/lib/
අප්<U+200D>රි 21 08:37:17 shyamali-pc sudo[3822]: pam_unix(sudo:session): session closed for user root
අප්<U+200D>රි 21 08:39:01 shyamali-pc CRON[3859]: pam_unix(cron:session): session opened for user root by (uid=0)
අප්<U+200D>රි 21 08:39:01 shyamali-pc CRON[3860]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
අප්<U+200D>රි 21 08:39:02 shyamali-pc CRON[3859]: pam_unix(cron:session): session closed for user root
අප්<U+200D>රි 21 08:41:51 shyamali-pc AptDaemon[2213]: INFO: Quitting due to inactivity
අප්<U+200D>රි 21 08:41:51 shyamali-pc AptDaemon[2213]: INFO: Quitting was requested
අප්<U+200D>රි 21 08:41:51 shyamali-pc org.debian.apt[564]: 08:41:51 AptDaemon [INFO]: Quitting due to inactivity
අප්<U+200D>රි 21 08:41:51 shyamali-pc org.debian.apt[564]: 08:41:51 AptDaemon [INFO]: Quitting was requested
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has begun starting up.
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd-tmpfiles[3943]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has finished starting up.
--
-- The start-up result is done.
අප්<U+200D>රි 21 08:44:53 shyamali-pc sudo[3950]: shyamali : TTY=pts/2 ; PWD=/home/shyamali ; USER=root ; COMMAND=/bin/journalctl -xe
අප්<U+200D>රි 21 08:44:53 shyamali-pc sudo[3950]: pam_unix(sudo:session): session opened for user root by (uid=0)
lines 1108-1149/1149 (END)


Note : Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype










share|improve this question
















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


I was properly working with my project and today morning I have reinstalled apache and php7.0. I have used ssl in my project. When I remove ssl from the virtual host, it worked fine. But when I add ssl again it give the above error. I have tried suggestions that have been given for above error. Non of then are worked. Can anyone help me. Thnak you in advance
output of sudo systemctl status apache2.service



● 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: failed (Result: exit-code) since සි 2017-04-21 08:35:19 +0530; 26s ago
Docs: man:systemd-sysv-generator(8)
Process: 3776 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 3114 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
Process: 3802 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: * The apache2 configtest failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Output of config test was:
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: AH00526: Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in t
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: Action 'configtest' failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc apache2[3802]: The Apache error log may have more information.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: Failed to start LSB: Apache2 web server.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Unit entered failed state.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Failed with result 'exit-code'.


Output of sudo journalctl -xe



අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Unit entered failed state.
අප්<U+200D>රි 21 08:35:19 shyamali-pc sudo[3770]: pam_unix(sudo:session): session closed for user root
අප්<U+200D>රි 21 08:35:19 shyamali-pc systemd[1]: apache2.service: Failed with result 'exit-code'.
අප්<U+200D>රි 21 08:35:45 shyamali-pc sudo[3822]: shyamali : TTY=pts/2 ; PWD=/home/shyamali ; USER=root ; COMMAND=/bin/systemctl status apache2.s
අප්<U+200D>රි 21 08:35:45 shyamali-pc sudo[3822]: pam_unix(sudo:session): session opened for user root by (uid=0)
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: pam_systemd(polkit-1:session): Cannot create session: Already running in a session
අප්<U+200D>රි 21 08:36:46 shyamali-pc pkexec[3837]: shyamali: Executing command [USER=root] [TTY=unknown] [CWD=/home/shyamali] [COMMAND=/usr/lib/
අප්<U+200D>රි 21 08:37:17 shyamali-pc sudo[3822]: pam_unix(sudo:session): session closed for user root
අප්<U+200D>රි 21 08:39:01 shyamali-pc CRON[3859]: pam_unix(cron:session): session opened for user root by (uid=0)
අප්<U+200D>රි 21 08:39:01 shyamali-pc CRON[3860]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean)
අප්<U+200D>රි 21 08:39:02 shyamali-pc CRON[3859]: pam_unix(cron:session): session closed for user root
අප්<U+200D>රි 21 08:41:51 shyamali-pc AptDaemon[2213]: INFO: Quitting due to inactivity
අප්<U+200D>රි 21 08:41:51 shyamali-pc AptDaemon[2213]: INFO: Quitting was requested
අප්<U+200D>රි 21 08:41:51 shyamali-pc org.debian.apt[564]: 08:41:51 AptDaemon [INFO]: Quitting due to inactivity
අප්<U+200D>රි 21 08:41:51 shyamali-pc org.debian.apt[564]: 08:41:51 AptDaemon [INFO]: Quitting was requested
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has begun starting up.
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd-tmpfiles[3943]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
අප්<U+200D>රි 21 08:43:50 shyamali-pc systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has finished starting up.
--
-- The start-up result is done.
අප්<U+200D>රි 21 08:44:53 shyamali-pc sudo[3950]: shyamali : TTY=pts/2 ; PWD=/home/shyamali ; USER=root ; COMMAND=/bin/journalctl -xe
අප්<U+200D>රි 21 08:44:53 shyamali-pc sudo[3950]: pam_unix(sudo:session): session opened for user root by (uid=0)
lines 1108-1149/1149 (END)


Note : Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype







server apache2 ssl virtualhost






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 21 '17 at 9:33









pa4080

14.7k52872




14.7k52872










asked Apr 20 '17 at 13:02









ShyamaliShyamali

13127




13127













  • Please edit your question and add the output of sudo systemctl status apache2.service and sudo journalctl -xe.

    – pa4080
    Apr 20 '17 at 14:20













  • I have add what you asked for. Thank you for your help. Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype

    – Shyamali
    Apr 21 '17 at 3:21











  • I thinks the problem is with ssl

    – Shyamali
    Apr 21 '17 at 5:45











  • There is written Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf. What have on this line? And when you sudo a2dissite TestCodeIgniter.local.confcould start Apache normally?

    – pa4080
    Apr 21 '17 at 6:16











  • In that line RewriteEngine On. when a2dissite it, it gives same error for another virtual host. These errors are only for ssl virtual hosts. When a2dissite all virtual hosts with ssl, apache restarts normally. Thank you

    – Shyamali
    Apr 21 '17 at 6:24





















  • Please edit your question and add the output of sudo systemctl status apache2.service and sudo journalctl -xe.

    – pa4080
    Apr 20 '17 at 14:20













  • I have add what you asked for. Thank you for your help. Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype

    – Shyamali
    Apr 21 '17 at 3:21











  • I thinks the problem is with ssl

    – Shyamali
    Apr 21 '17 at 5:45











  • There is written Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf. What have on this line? And when you sudo a2dissite TestCodeIgniter.local.confcould start Apache normally?

    – pa4080
    Apr 21 '17 at 6:16











  • In that line RewriteEngine On. when a2dissite it, it gives same error for another virtual host. These errors are only for ssl virtual hosts. When a2dissite all virtual hosts with ssl, apache restarts normally. Thank you

    – Shyamali
    Apr 21 '17 at 6:24



















Please edit your question and add the output of sudo systemctl status apache2.service and sudo journalctl -xe.

– pa4080
Apr 20 '17 at 14:20







Please edit your question and add the output of sudo systemctl status apache2.service and sudo journalctl -xe.

– pa4080
Apr 20 '17 at 14:20















I have add what you asked for. Thank you for your help. Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype

– Shyamali
Apr 21 '17 at 3:21





I have add what you asked for. Thank you for your help. Recently I have Installed skype and today I have rove it. But the problem remains as same. These outputs are after removing skype

– Shyamali
Apr 21 '17 at 3:21













I thinks the problem is with ssl

– Shyamali
Apr 21 '17 at 5:45





I thinks the problem is with ssl

– Shyamali
Apr 21 '17 at 5:45













There is written Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf. What have on this line? And when you sudo a2dissite TestCodeIgniter.local.confcould start Apache normally?

– pa4080
Apr 21 '17 at 6:16





There is written Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf. What have on this line? And when you sudo a2dissite TestCodeIgniter.local.confcould start Apache normally?

– pa4080
Apr 21 '17 at 6:16













In that line RewriteEngine On. when a2dissite it, it gives same error for another virtual host. These errors are only for ssl virtual hosts. When a2dissite all virtual hosts with ssl, apache restarts normally. Thank you

– Shyamali
Apr 21 '17 at 6:24







In that line RewriteEngine On. when a2dissite it, it gives same error for another virtual host. These errors are only for ssl virtual hosts. When a2dissite all virtual hosts with ssl, apache restarts normally. Thank you

– Shyamali
Apr 21 '17 at 6:24












1 Answer
1






active

oldest

votes


















2














The report of sudo systemctl status apache2.service shows:



Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in ...


For some reason Apache's module - mod_rewrite is disabled. The solution of this particular issue is activation of the module:



sudo a2enmod rewrite
sudo systemctl restart apache2.service





share|improve this answer























    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%2f907014%2fgives-error-job-for-apache2-service-failed-because-the-control-process-exited%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









    2














    The report of sudo systemctl status apache2.service shows:



    Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
    Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in ...


    For some reason Apache's module - mod_rewrite is disabled. The solution of this particular issue is activation of the module:



    sudo a2enmod rewrite
    sudo systemctl restart apache2.service





    share|improve this answer




























      2














      The report of sudo systemctl status apache2.service shows:



      Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
      Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in ...


      For some reason Apache's module - mod_rewrite is disabled. The solution of this particular issue is activation of the module:



      sudo a2enmod rewrite
      sudo systemctl restart apache2.service





      share|improve this answer


























        2












        2








        2







        The report of sudo systemctl status apache2.service shows:



        Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
        Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in ...


        For some reason Apache's module - mod_rewrite is disabled. The solution of this particular issue is activation of the module:



        sudo a2enmod rewrite
        sudo systemctl restart apache2.service





        share|improve this answer













        The report of sudo systemctl status apache2.service shows:



        Syntax error on line 34 of /etc/apache2/sites-enabled/TestCodeIgniter.local.conf:
        Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in ...


        For some reason Apache's module - mod_rewrite is disabled. The solution of this particular issue is activation of the module:



        sudo a2enmod rewrite
        sudo systemctl restart apache2.service






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 21 '17 at 9:04









        pa4080pa4080

        14.7k52872




        14.7k52872






























            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%2f907014%2fgives-error-job-for-apache2-service-failed-because-the-control-process-exited%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 make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀