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

apache結(jié)合php遇到的故障

創(chuàng)新互聯(lián)堅持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:網(wǎng)站設(shè)計、網(wǎng)站建設(shè)、企業(yè)官網(wǎng)、英文網(wǎng)站、手機端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時代的宜陽網(wǎng)站設(shè)計、移動媒體設(shè)計的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!

啟動apache時出現(xiàn)錯誤:

/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出現(xiàn) AddType requires at least two arguments, a mime type followed by one or more file extensions。 這是因為在 "AddType application/x-httpd-php.php"中的"php.php" 應(yīng)該要有一個空格 的"AddType application/x-httpd-php  .php"

重啟apachel語法檢測正常
[root@centos6 local]# /usr/local/apache2/bin/apachectl -t
Syntax OK

服務(wù)器主機名描述警告

[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://muchs.cn/article6/ghjsog.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁設(shè)計公司網(wǎng)站維護、服務(wù)器托管品牌網(wǎng)站設(shè)計、網(wǎng)站改版網(wǎng)站設(shè)計公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站建設(shè)