apache结合php遇到的故障
启动apache时出现错误:
123 | /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"
123 | 重启apachel语法检测正常 [root@centos6 local ] # /usr/local/apache2/bin/apachectl -t Syntax OK |
报服务器主机名描述警告
123 | [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 |
123 | vi /usr/local/apache2/conf/httpd .conf 修改httpd.conf文件: ServerName localhost:80 |
點擊查看更多內容
為 TA 點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優質文章
正在加載中
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦