Cannot install Apache 2 on Ubuntu 16.04












0















I tried to install apache2 on ubuntu 16.04 lts by:



sudo apt-get install apache2 -y


And the output says:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-data apache2-utils
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-data apache2-utils
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 330 kB of archives.
After this operation, 1,718 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.9 [81.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-data all 2.4.18-2ubuntu3.9 [162 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.9 [86.6 kB]
Fetched 330 kB in 0s (439 kB/s)
Selecting previously unselected package apache2-utils.
(Reading database ... 470444 files and directories currently installed.)
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.9_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Rules updated for profile 'Apache Full'
Rules updated for profile 'OpenSSH'
Firewall reloaded
Setting up apache2-utils (2.4.18-2ubuntu3.9) ...
Setting up apache2-data (2.4.18-2ubuntu3.9) ...
Setting up apache2 (2.4.18-2ubuntu3.9) ...
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
● 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 Sat 2019-03-02 18:07:41 CET; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 17497 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 02 18:07:41 gervis apache2[17497]: *
Mar 02 18:07:41 gervis apache2[17497]: * The apache2 configtest failed.
Mar 02 18:07:41 gervis apache2[17497]: Output of config test was:
Mar 02 18:07:41 gervis apache2[17497]: apache2: Syntax error on line 219 of...d.
Mar 02 18:07:41 gervis apache2[17497]: Action 'configtest' failed.
Mar 02 18:07:41 gervis apache2[17497]: The Apache error log may have more i...n.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Control process exited,...=1
Mar 02 18:07:41 gervis systemd[1]: Failed to start LSB: Apache2 web server.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Unit entered failed state.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Failed with result 'exi...'.
Hint: Some lines were ellipsized, use -l to show in full.


Line 219 of /etc/apache2/apache2.conf is as below



enter image description here



And I don't know how to use this information:



Some lines were ellipsized, use -l to show in full.


Any help on this issue will be appreciated.



Ps. I also tried



systemctl status apache2.service


and the output is as follows:



● 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 Sat 2019-03-02 19:36:17 CET; 1min 44s ago
Docs: man:systemd-sysv-generator(8)
Process: 24739 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 02 19:36:17 gervis apache2[24739]: *
Mar 02 19:36:17 gervis apache2[24739]: * The apache2 configtest failed.
Mar 02 19:36:17 gervis apache2[24739]: Output of config test was:
Mar 02 19:36:17 gervis apache2[24739]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 21 of /etc/apache2/sites-enabled/squirrelmail.conf: /etc/apache2/sites-enabled/squirrelmail.conf:21: <VirtualHost> was not closed.
Mar 02 19:36:17 gervis apache2[24739]: Action 'configtest' failed.
Mar 02 19:36:17 gervis apache2[24739]: The Apache error log may have more information.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Control process exited, code=exited status=1
Mar 02 19:36:17 gervis systemd[1]: Failed to start LSB: Apache2 web server.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Unit entered failed state.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Failed with result 'exit-code'.


So I tried looking at /sites-enabled/squirrelmail.conf as @steeldriver suggested. Line 21 says:



enter image description here



is there some problem there?










share|improve this question









New contributor




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





















  • The error may be in one of the files included by the line (i.e. one of the .conf files in the sites-enabled directory), rather than in the line itself I think

    – steeldriver
    8 hours ago











  • I was so blind I didn't see the # on line 24 of /sites-enabled/squirrelmail.conf .. thanks for all the help.

    – mm-crj
    7 hours ago











  • please post the complete squirrelmail.conf as the error saying that Virtualhost tag was not closed like missing </VirtualHost>

    – Alpy
    6 hours ago











  • It's fixed no? The #on line 24 should not be there.

    – mm-crj
    6 hours ago
















0















I tried to install apache2 on ubuntu 16.04 lts by:



sudo apt-get install apache2 -y


And the output says:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-data apache2-utils
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-data apache2-utils
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 330 kB of archives.
After this operation, 1,718 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.9 [81.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-data all 2.4.18-2ubuntu3.9 [162 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.9 [86.6 kB]
Fetched 330 kB in 0s (439 kB/s)
Selecting previously unselected package apache2-utils.
(Reading database ... 470444 files and directories currently installed.)
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.9_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Rules updated for profile 'Apache Full'
Rules updated for profile 'OpenSSH'
Firewall reloaded
Setting up apache2-utils (2.4.18-2ubuntu3.9) ...
Setting up apache2-data (2.4.18-2ubuntu3.9) ...
Setting up apache2 (2.4.18-2ubuntu3.9) ...
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
● 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 Sat 2019-03-02 18:07:41 CET; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 17497 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 02 18:07:41 gervis apache2[17497]: *
Mar 02 18:07:41 gervis apache2[17497]: * The apache2 configtest failed.
Mar 02 18:07:41 gervis apache2[17497]: Output of config test was:
Mar 02 18:07:41 gervis apache2[17497]: apache2: Syntax error on line 219 of...d.
Mar 02 18:07:41 gervis apache2[17497]: Action 'configtest' failed.
Mar 02 18:07:41 gervis apache2[17497]: The Apache error log may have more i...n.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Control process exited,...=1
Mar 02 18:07:41 gervis systemd[1]: Failed to start LSB: Apache2 web server.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Unit entered failed state.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Failed with result 'exi...'.
Hint: Some lines were ellipsized, use -l to show in full.


Line 219 of /etc/apache2/apache2.conf is as below



enter image description here



And I don't know how to use this information:



Some lines were ellipsized, use -l to show in full.


Any help on this issue will be appreciated.



Ps. I also tried



systemctl status apache2.service


and the output is as follows:



● 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 Sat 2019-03-02 19:36:17 CET; 1min 44s ago
Docs: man:systemd-sysv-generator(8)
Process: 24739 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 02 19:36:17 gervis apache2[24739]: *
Mar 02 19:36:17 gervis apache2[24739]: * The apache2 configtest failed.
Mar 02 19:36:17 gervis apache2[24739]: Output of config test was:
Mar 02 19:36:17 gervis apache2[24739]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 21 of /etc/apache2/sites-enabled/squirrelmail.conf: /etc/apache2/sites-enabled/squirrelmail.conf:21: <VirtualHost> was not closed.
Mar 02 19:36:17 gervis apache2[24739]: Action 'configtest' failed.
Mar 02 19:36:17 gervis apache2[24739]: The Apache error log may have more information.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Control process exited, code=exited status=1
Mar 02 19:36:17 gervis systemd[1]: Failed to start LSB: Apache2 web server.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Unit entered failed state.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Failed with result 'exit-code'.


So I tried looking at /sites-enabled/squirrelmail.conf as @steeldriver suggested. Line 21 says:



enter image description here



is there some problem there?










share|improve this question









New contributor




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





















  • The error may be in one of the files included by the line (i.e. one of the .conf files in the sites-enabled directory), rather than in the line itself I think

    – steeldriver
    8 hours ago











  • I was so blind I didn't see the # on line 24 of /sites-enabled/squirrelmail.conf .. thanks for all the help.

    – mm-crj
    7 hours ago











  • please post the complete squirrelmail.conf as the error saying that Virtualhost tag was not closed like missing </VirtualHost>

    – Alpy
    6 hours ago











  • It's fixed no? The #on line 24 should not be there.

    – mm-crj
    6 hours ago














0












0








0








I tried to install apache2 on ubuntu 16.04 lts by:



sudo apt-get install apache2 -y


And the output says:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-data apache2-utils
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-data apache2-utils
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 330 kB of archives.
After this operation, 1,718 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.9 [81.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-data all 2.4.18-2ubuntu3.9 [162 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.9 [86.6 kB]
Fetched 330 kB in 0s (439 kB/s)
Selecting previously unselected package apache2-utils.
(Reading database ... 470444 files and directories currently installed.)
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.9_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Rules updated for profile 'Apache Full'
Rules updated for profile 'OpenSSH'
Firewall reloaded
Setting up apache2-utils (2.4.18-2ubuntu3.9) ...
Setting up apache2-data (2.4.18-2ubuntu3.9) ...
Setting up apache2 (2.4.18-2ubuntu3.9) ...
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
● 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 Sat 2019-03-02 18:07:41 CET; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 17497 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 02 18:07:41 gervis apache2[17497]: *
Mar 02 18:07:41 gervis apache2[17497]: * The apache2 configtest failed.
Mar 02 18:07:41 gervis apache2[17497]: Output of config test was:
Mar 02 18:07:41 gervis apache2[17497]: apache2: Syntax error on line 219 of...d.
Mar 02 18:07:41 gervis apache2[17497]: Action 'configtest' failed.
Mar 02 18:07:41 gervis apache2[17497]: The Apache error log may have more i...n.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Control process exited,...=1
Mar 02 18:07:41 gervis systemd[1]: Failed to start LSB: Apache2 web server.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Unit entered failed state.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Failed with result 'exi...'.
Hint: Some lines were ellipsized, use -l to show in full.


Line 219 of /etc/apache2/apache2.conf is as below



enter image description here



And I don't know how to use this information:



Some lines were ellipsized, use -l to show in full.


Any help on this issue will be appreciated.



Ps. I also tried



systemctl status apache2.service


and the output is as follows:



● 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 Sat 2019-03-02 19:36:17 CET; 1min 44s ago
Docs: man:systemd-sysv-generator(8)
Process: 24739 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 02 19:36:17 gervis apache2[24739]: *
Mar 02 19:36:17 gervis apache2[24739]: * The apache2 configtest failed.
Mar 02 19:36:17 gervis apache2[24739]: Output of config test was:
Mar 02 19:36:17 gervis apache2[24739]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 21 of /etc/apache2/sites-enabled/squirrelmail.conf: /etc/apache2/sites-enabled/squirrelmail.conf:21: <VirtualHost> was not closed.
Mar 02 19:36:17 gervis apache2[24739]: Action 'configtest' failed.
Mar 02 19:36:17 gervis apache2[24739]: The Apache error log may have more information.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Control process exited, code=exited status=1
Mar 02 19:36:17 gervis systemd[1]: Failed to start LSB: Apache2 web server.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Unit entered failed state.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Failed with result 'exit-code'.


So I tried looking at /sites-enabled/squirrelmail.conf as @steeldriver suggested. Line 21 says:



enter image description here



is there some problem there?










share|improve this question









New contributor




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












I tried to install apache2 on ubuntu 16.04 lts by:



sudo apt-get install apache2 -y


And the output says:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-data apache2-utils
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-data apache2-utils
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 330 kB of archives.
After this operation, 1,718 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.9 [81.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-data all 2.4.18-2ubuntu3.9 [162 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.9 [86.6 kB]
Fetched 330 kB in 0s (439 kB/s)
Selecting previously unselected package apache2-utils.
(Reading database ... 470444 files and directories currently installed.)
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.9_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.9) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.18-2ubuntu3.9_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Rules updated for profile 'Apache Full'
Rules updated for profile 'OpenSSH'
Firewall reloaded
Setting up apache2-utils (2.4.18-2ubuntu3.9) ...
Setting up apache2-data (2.4.18-2ubuntu3.9) ...
Setting up apache2 (2.4.18-2ubuntu3.9) ...
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
● 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 Sat 2019-03-02 18:07:41 CET; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 17497 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 02 18:07:41 gervis apache2[17497]: *
Mar 02 18:07:41 gervis apache2[17497]: * The apache2 configtest failed.
Mar 02 18:07:41 gervis apache2[17497]: Output of config test was:
Mar 02 18:07:41 gervis apache2[17497]: apache2: Syntax error on line 219 of...d.
Mar 02 18:07:41 gervis apache2[17497]: Action 'configtest' failed.
Mar 02 18:07:41 gervis apache2[17497]: The Apache error log may have more i...n.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Control process exited,...=1
Mar 02 18:07:41 gervis systemd[1]: Failed to start LSB: Apache2 web server.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Unit entered failed state.
Mar 02 18:07:41 gervis systemd[1]: apache2.service: Failed with result 'exi...'.
Hint: Some lines were ellipsized, use -l to show in full.


Line 219 of /etc/apache2/apache2.conf is as below



enter image description here



And I don't know how to use this information:



Some lines were ellipsized, use -l to show in full.


Any help on this issue will be appreciated.



Ps. I also tried



systemctl status apache2.service


and the output is as follows:



● 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 Sat 2019-03-02 19:36:17 CET; 1min 44s ago
Docs: man:systemd-sysv-generator(8)
Process: 24739 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Mar 02 19:36:17 gervis apache2[24739]: *
Mar 02 19:36:17 gervis apache2[24739]: * The apache2 configtest failed.
Mar 02 19:36:17 gervis apache2[24739]: Output of config test was:
Mar 02 19:36:17 gervis apache2[24739]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 21 of /etc/apache2/sites-enabled/squirrelmail.conf: /etc/apache2/sites-enabled/squirrelmail.conf:21: <VirtualHost> was not closed.
Mar 02 19:36:17 gervis apache2[24739]: Action 'configtest' failed.
Mar 02 19:36:17 gervis apache2[24739]: The Apache error log may have more information.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Control process exited, code=exited status=1
Mar 02 19:36:17 gervis systemd[1]: Failed to start LSB: Apache2 web server.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Unit entered failed state.
Mar 02 19:36:17 gervis systemd[1]: apache2.service: Failed with result 'exit-code'.


So I tried looking at /sites-enabled/squirrelmail.conf as @steeldriver suggested. Line 21 says:



enter image description here



is there some problem there?







16.04 apache2






share|improve this question









New contributor




mm-crj 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 question









New contributor




mm-crj 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 question




share|improve this question








edited 7 hours ago







mm-crj













New contributor




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









asked 9 hours ago









mm-crjmm-crj

1035




1035




New contributor




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





New contributor





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






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













  • The error may be in one of the files included by the line (i.e. one of the .conf files in the sites-enabled directory), rather than in the line itself I think

    – steeldriver
    8 hours ago











  • I was so blind I didn't see the # on line 24 of /sites-enabled/squirrelmail.conf .. thanks for all the help.

    – mm-crj
    7 hours ago











  • please post the complete squirrelmail.conf as the error saying that Virtualhost tag was not closed like missing </VirtualHost>

    – Alpy
    6 hours ago











  • It's fixed no? The #on line 24 should not be there.

    – mm-crj
    6 hours ago



















  • The error may be in one of the files included by the line (i.e. one of the .conf files in the sites-enabled directory), rather than in the line itself I think

    – steeldriver
    8 hours ago











  • I was so blind I didn't see the # on line 24 of /sites-enabled/squirrelmail.conf .. thanks for all the help.

    – mm-crj
    7 hours ago











  • please post the complete squirrelmail.conf as the error saying that Virtualhost tag was not closed like missing </VirtualHost>

    – Alpy
    6 hours ago











  • It's fixed no? The #on line 24 should not be there.

    – mm-crj
    6 hours ago

















The error may be in one of the files included by the line (i.e. one of the .conf files in the sites-enabled directory), rather than in the line itself I think

– steeldriver
8 hours ago





The error may be in one of the files included by the line (i.e. one of the .conf files in the sites-enabled directory), rather than in the line itself I think

– steeldriver
8 hours ago













I was so blind I didn't see the # on line 24 of /sites-enabled/squirrelmail.conf .. thanks for all the help.

– mm-crj
7 hours ago





I was so blind I didn't see the # on line 24 of /sites-enabled/squirrelmail.conf .. thanks for all the help.

– mm-crj
7 hours ago













please post the complete squirrelmail.conf as the error saying that Virtualhost tag was not closed like missing </VirtualHost>

– Alpy
6 hours ago





please post the complete squirrelmail.conf as the error saying that Virtualhost tag was not closed like missing </VirtualHost>

– Alpy
6 hours ago













It's fixed no? The #on line 24 should not be there.

– mm-crj
6 hours ago





It's fixed no? The #on line 24 should not be there.

– mm-crj
6 hours ago










1 Answer
1






active

oldest

votes


















0














Yeah I am on mobile but remove the # from the line 24 where is the closing tag of VirtulHost






share|improve this answer


























  • It's line 24 I guess.

    – mm-crj
    6 hours ago











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


}
});






mm-crj is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1122541%2fcannot-install-apache-2-on-ubuntu-16-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









0














Yeah I am on mobile but remove the # from the line 24 where is the closing tag of VirtulHost






share|improve this answer


























  • It's line 24 I guess.

    – mm-crj
    6 hours ago
















0














Yeah I am on mobile but remove the # from the line 24 where is the closing tag of VirtulHost






share|improve this answer


























  • It's line 24 I guess.

    – mm-crj
    6 hours ago














0












0








0







Yeah I am on mobile but remove the # from the line 24 where is the closing tag of VirtulHost






share|improve this answer















Yeah I am on mobile but remove the # from the line 24 where is the closing tag of VirtulHost







share|improve this answer














share|improve this answer



share|improve this answer








edited 6 hours ago

























answered 6 hours ago









AlpyAlpy

21516




21516













  • It's line 24 I guess.

    – mm-crj
    6 hours ago



















  • It's line 24 I guess.

    – mm-crj
    6 hours ago

















It's line 24 I guess.

– mm-crj
6 hours ago





It's line 24 I guess.

– mm-crj
6 hours ago










mm-crj is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















mm-crj is a new contributor. Be nice, and check out our Code of Conduct.













mm-crj is a new contributor. Be nice, and check out our Code of Conduct.












mm-crj is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f1122541%2fcannot-install-apache-2-on-ubuntu-16-04%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

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b