2

I get this error when I start apache2 service:

 * The apache2 configtest failed.
 Output of config test was:
 apache2: Syntax error on line 140 of /etc/apache2/apache2.conf:Syntax   error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib   /apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
 Action 'configtest' failed.
 The Apache error log may have more information.

I run it on ubuntu 14.04 64bit. How can I resolve it?

techraf
  • 3,316
Gusan
  • 131
  • "Syntax error on line 140 of /etc/apache2/apache2.conf" Have a guess on what to do next ... – Rinzwind Aug 12 '16 at 02:28
  • this is the syntax line 140 --- IncludeOptional mods-enabled/*.load – Gusan Aug 12 '16 at 02:31
  • 1
    @techraf no cheating :+) Here is the answer to the problem: http://askubuntu.com/a/536141/15811 – Rinzwind Aug 12 '16 at 02:53
  • i have install apt install libapache2-mod-php, but still get the same error – Gusan Aug 12 '16 at 03:23
  • Restarting web server apache2 [fail]
  • The apache2 configtest failed.
  • Output of config test was: apache2: Syntax error on line 141 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/dir.conf: without matching section Action 'configtest' failed

    – Gusan Aug 12 '16 at 03:33