您好,登錄后才能下訂單哦!
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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。