lubuntu執行php - Linux

Table of Contents

各位版友好

小弟依照指令裝了LAMP

http://ppt.cc/ycrZ

apache正常

phpinfo也正常

但是以下的範例顯示卻是空白的

<!DOCTYPE html>
<html>
<body>

<?php
echo "My first PHP script!";
?>

</body>
</html>

權限我已經設定755

不知道是不是還要再做額外的設定?

查看log檔之後

出現

File does not exist: /var/www/favicon.ico

有版友出現過類似的問題嗎= =?

謝謝

--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★    (○ ?
╦╦└□ " ○□═ □   □>
║║√√ ╦══╦ ∥    |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己

--

All Comments

Brianna avatarBrianna2013-03-07
跟這行沒關係 附檔名是.php嗎(?
Megan avatarMegan2013-03-09
不是不能用html當副檔名,但你apache關於cgi(之類)那邊的敘述
要讓他知道連html也要轉給php處理