看板 FreeBSD 關於我們 聯絡資訊
※ 引述《appleboy46 (小惡魔)》之銘言: : ※ 引述《xunlu (xunlu)》之銘言: : : 安裝完了 : : 不知道怎麼測測有沒有正常 : : 請各位前輩們指導一下 : : 我先接著要繼續安裝下一樣囉 > < : : 努力中.. : 修改 httpd.conf,加入 : AddType application/x-httpd-php .php : AddType application/x-httpd-php-source .phps : 測試 php,可以利用 : <? : phpinfo(); : ?> : 用網頁看看就知道了 謝謝您我已經把那兩行加上去了 用下面樣找到檔案加上去了..我加在最後面 xl# find / -name httpd.conf /usr/local/etc/apache22/httpd.conf /usr/local/share/examples/apache22/httpd.conf ^C xl# ee /usr/local/etc/apache22/httpd.conf 請問您說的php檔案是放在哪個目呢? 是httpd.conf裡面寫的ServerRoot "/usr/local"這個嗎? # Do not add a slash at the end of the directory path. If you point # ServerRoot at a non-local disk, be sure to point the LockFile directive # at a local disk. If you wish to share the same ServerRoot for multiple # httpd daemons, you will need to change at least LockFile and PidFile. # ServerRoot "/usr/local" 還有再請問.哪哪些安全性的東西要設定的嗎? 目前 appache mysql 與 ftppro服務已經起來了 php測試檔案還在尋找放檔案的位置中 方便的話proftp目錄權限設定..這樣子我才能直接把改好的檔案傳到http的路徑下 目前安裝好能上下傳的路徑只有登入後該使用者自己的目錄@@ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.133.5.175