搭建LAMP中安装PHP遇到的故障
apache结合php遇到的故障
启动apache时出现错误:
/usr/local/apache2/bin/apachectl-tAH00526:Syntaxerroronline367of/usr/local/apache2/conf/httpd.conf:AddTyperequiresatleasttwoarguments,amimetypefollowedbyoneormorefileextensions
AddType application/x-httpd-php.php ,启动apache出现 AddType requires at least two arguments, a mime type followed by one or more file extensions。 这是因为在 "AddType application/x-httpd-php.php"中的"php.php" 应该要有一个空格 的"AddType application/x-httpd-php .php"
重启apachel语法检测正常[root@centos6local]#/usr/local/apache2/bin/apachectl-tSyntaxOK
报服务器主机名描述警告
[root@centos6local]#/usr/local/apache2/bin/apachectl-tAH00558:httpd:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname,using192.168.25.113.Setthe'ServerName'directivegloballytosuppressthismessageSyntaxOK
vi/usr/local/apache2/conf/httpd.conf修改httpd.conf文件:ServerNamelocalhost:80
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。