RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
搭建LAMP中安装PHP遇到的故障

apache结合php遇到的故障

创新互联坚持“要么做到,要么别承诺”的工作理念,服务领域包括:网站设计、网站建设、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的宜阳网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

启动apache时出现错误:

/usr/local/apache2/bin/apachectl -t
AH00526: 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"

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

服务器主机名描述警告

[root@centos6 local]# /usr/local/apache2/bin/apachectl -t
AH00558: 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 message
Syntax OK
vi /usr/local/apache2/conf/httpd.conf
修改httpd.conf文件:
ServerName localhost:80

网页标题:搭建LAMP中安装PHP遇到的故障
文章地址:http://sczitong.cn/article/ghjsog.html