apache virtual host在/home下出錯 - Linux

Daph Bay avatar
By Daph Bay
at 2012-01-03T18:55

Table of Contents

小弟在設apache vhost時,這樣寫啟動apache時會出現警告

DocumentRoot "/home/user/"

Warning: DocumentRoot [/home/user/] does not exist

但這樣寫就不會

DocumentRoot "/var/www/test/"

上網查了一下,好像是apache對/home目錄沒有存取權限

但我/home都設755了
drwxr-xr-x. 5 root root 4096 2012-01-03 17:36 /home/

請問要怎麼解決呢?

--
Tags: Linux

All Comments

Oliver avatar
By Oliver
at 2012-01-06T15:18
SELinux?
按到噓字,歹勢原po
Valerie avatar
By Valerie
at 2012-01-08T17:47
應該是你沒有 user 這個使用者吧 /home/ 底下真有 user
這個資料夾?
ls /home; 把結果貼出來看看
Susan avatar
By Susan
at 2012-01-11T04:51
確定有/home/user/這個目錄 但是錯誤訊息就是那樣 >"<
Candice avatar
By Candice
at 2012-01-11T17:42
ls -l /home/user
Gilbert avatar
By Gilbert
at 2012-01-14T18:36
http://ppt.cc/Rwon SELinux的放行,有沒有可能是
Dinah avatar
By Dinah
at 2012-01-18T00:15
個人網頁沒有開啟功能
Candice avatar
By Candice
at 2012-01-20T22:47
那/home/user/的權限呢?
Callum avatar
By Callum
at 2012-01-24T02:09
是 SELinux的放行,謝謝tj大大,/home/user/ 一樣755

Win7 OEM 隨機版?

Edwina avatar
By Edwina
at 2012-01-03T17:49
因為這似乎和 Linux User 比較有關係,所以先來這裡提問, 若您覺得發錯版請告知,敝人會立即刪文。 敝人最近想買一台 NB,看中了 Toshiba R850,賣點在於霧面螢幕。 不過我問過幾家代理商,都說這一款筆電強制搭載 Win7 Pro。 問題是我是要買來灌 Linux 的,Win7 啥的我用 ...

g4l轉換問題

Tristan Cohan avatar
By Tristan Cohan
at 2012-01-03T17:47
請問 我使用g4l把一顆6GB的vhd(hyperv)轉到另一個50GB VHD上, 轉完後開機fdisk -l發現轉換結果成功,但使用df -h時顯示 的資訊仍是未轉換前的狀態。 1.請問是不是漏掉什麼步驟? 2.VHD間互轉 ...

gvim 選取失效

Andrew avatar
By Andrew
at 2012-01-03T17:06
之前只要長按shift,再配合方向鍵就可以任意選取範圍 但不知動了什麼設定後,現在此功能消失了 想請問要再設定什麼讓它恢復嗎 - ...

不小心關掉screen分頁

Agatha avatar
By Agatha
at 2012-01-03T15:44
我在工作站開了一個背景執行的process在screen分頁( sh xxx.sh andamp; ) 因為它是個server程式,平常用top也看不到它的pid 結果一時手殘按exit把該分頁關掉了 打ps或jobs也查不到pid,結所以砍不掉 = = 請問該如何清除?謝謝! - ...

libreoffice 沒有辦法叫出 scim 輸入法

Ingrid avatar
By Ingrid
at 2012-01-03T13:35
我的 ubuntu 10.04 lucid AMD64 , gnome 2.30.2 灌了libreoffice 3.4.4 中文版 中文顯示都沒問題, 開檔讀取也都ok 但就是沒辦法叫出 scim 中文輸入法 但scim在其他軟體與視窗都是正常的 google了一堆資料, 好像都沒有解決的方法 請問有高 ...