在 /etc/httpd/conf/httpd.conf
找到 UserDir disabled ,把它加上 # (註解掉)
找到 UserDir public_html,將後面的 public_html 改成我們想要的資料夾名稱。
找到 DirectoryIndex,改成底下的
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
用途是開首頁時會找檔案的順序。
ServerName 要設定一下,不然 restart 時會有警告訊息。
測試時不重要,但要上線的就要改一下比較好。
/etc/php.ini 視情況修改(數字自訂):
upload_max_filesize = 8M
post_max_size = 10M
memory_limit = 20M
全站熱搜