1

When I restart apache server this message appears:

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

After that I check status of apache service:

● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: 
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Mon 2020-02-17 00:44:29 IST; 7min ag
  Process: 24336 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILUR
  Process: 24865 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAIL
 Main PID: 22462 (code=exited, status=0/SUCCESS)

Feb 17 00:44:29 technicalms systemd[1]: Starting The Apache HTTP Server...
Feb 17 00:44:29 technicalms apachectl[24865]: apache2: Syntax error on line 228 
Feb 17 00:44:29 technicalms apachectl[24865]: Action 'start' failed.
Feb 17 00:44:29 technicalms apachectl[24865]: The Apache error log may have more
Feb 17 00:44:29 technicalms systemd[1]: apache2.service: Control process exited,
Feb 17 00:44:29 technicalms systemd[1]: apache2.service: Failed with result 'exi
Feb 17 00:44:29 technicalms systemd[1]: Failed to start The Apache HTTP Server.

And my browser shows php code like that code (not executed)

<?php
    $libs=glob("app/Libs/*.php");
foreach($libs as $lfile)
{
    include_once $lfile;
}
new Autoload();
?>

Please tell me how can I solve it

Gryu
  • 8,002
  • 9
  • 37
  • 53

0 Answers0