栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > PHP

搭建LAMP中安装PHP遇到的故障

PHP 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

搭建LAMP中安装PHP遇到的故障

apache结合php遇到的故障

启动apache时出现错误:

123/usr/local/apache2/bin/apachectl -tAH00526: Syntax error on line 367 of /usr/local/apache2/conf/httpd.conf:AddType requires at least two arguments, a mime type followed by one or more file extensions

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"

123重启apachel语法检测正常[root@centos6 local]# /usr/local/apache2/bin/apachectl -tSyntax OK

报服务器主机名描述警告

123[root@centos6 local]# /usr/local/apache2/bin/apachectl -tAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.25.113. Set the 'ServerName' directive globally to suppress this messageSyntax OK
123vi /usr/local/apache2/conf/httpd.conf修改httpd.conf文件:ServerName localhost:80


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/228679.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号