Apache encounters a fault with PHP
An error occurred while starting Apache:
/usr/local/apache2/bin/apachectl-tah00526:syntax error on line 367 Of/usr/local/apache2/conf/httpd.conf:addtype Requires at least-arguments, a MIME type followed by one or more file extensions
AddType application/x-httpd-php.php, starting Apache appears AddType requires at least, and a MIME type arguments by one or M Ore file extensions. This is because "php.php" in "AddType application/x-httpd-php.php" should have a "AddType application/x-httpd-php. php" with a space.
Restart Apachel grammar detection normal [[email protected] local]#/usr/local/apache2/bin/apachectl-tsyntax OK
Report Server hostname Description Warning
[[email protected] local]#/usr/local/apache2/bin/apachectl-tah00558:httpd:could not reliably determine the server ' s FU lly qualified domain name, using 192.168.25.113. Set the ' ServerName ' directive globally to suppress this messagesyntax OK
vi/usr/local/apache2/conf/httpd.conf Modify httpd.conf file: ServerName localhost:80
This article is from the "Boyhack" blog, make sure to keep this source http://461205160.blog.51cto.com/274918/1731086
Build a fault with PHP installed in lamp