看板 FreeBSD 關於我們 聯絡資訊
※ 引述《xunlu (xunlu)》之銘言: : ※ 引述《appleboy46 (小惡魔)》之銘言: : : 修改 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的路徑下 : 目前安裝好能上下傳的路徑只有登入後該使用者自己的目錄@@ 各位好我找到路徑了 用 xl# find /usr/local/ -name index.html | more 找到 /usr/local/www/apache22/data/ 我將phpMyAdmin上傳上去 在網址入 http:/IP/phpMyadmin/index.php 出來的是原始碼 > < ============================== 更正重開機後可以執行囉~~︿︿ 不過有錯誤訊息 #1045 - Access denied for user 'root'@'localhost' (using password: YES) 無法讀取 mcrypt 模組,<br />請檢查 PHP 設定 可以勞煩各位指導一下嗎 謝謝!! ※ 編輯: xunlu 來自: 220.133.5.175 (04/02 12:01)