如何使用home 來架站 [論壇 - 伺服器架設]
正在瀏覽:
1 名遊客
如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員一級
![]() ![]() 註冊日期:
2014/12/17 14:36 所屬群組:
已註冊使用者 等級: 3
HP : 0 / 63
![]() |
我在USERDIR設定
<IfModule mod_userdir.c> UserDir www #UserDir public_html UserDir disabled root <Directory /home/*/www> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Order allow,deny Allow from all #Require all granted </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all #Require all denied </LimitExcept> </Directory> </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet 設定後不可以
2014/12/24 20:32
|
||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2011/3/11 6:32 所屬群組:
討論區管理群 等級: 44
HP : 216 / 1084
![]() |
服務遇到問題時應優先察看該服務的運行紀錄檔,Ubuntu 軟體來源提供的 Apache Web 伺服器的運行紀錄檔位於 /var/log/apache2 目錄底下
2014/12/24 21:41
|
||||||||||
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW http://creativecommons.org/licenses/by/3.0/tw/ 「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」 by Allen Own 出處 http://www.plurk.com/p/i4uogm 自由知識創作平台介紹 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE 如何建立新的自由知識創作平台文件 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA |
|||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
版主
![]() ![]() 註冊日期:
2008/7/14 0:03 來自 螢幕的另一端
所屬群組:
網站管理員 已註冊使用者 討論區管理群 等級: 33
HP : 0 / 808
![]() |
chmod 有沒有設對?
2014/12/24 22:07
|
||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2011/3/11 6:32 所屬群組:
討論區管理群 等級: 44
HP : 216 / 1084
![]() |
我剛剛試過 userdir 模組了,沒有遇到問題
userdir 模組有啟用嗎?有重新啟動 Apache 伺服器嗎?
2014/12/24 23:00
|
||||||||||
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW http://creativecommons.org/licenses/by/3.0/tw/ 「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」 by Allen Own 出處 http://www.plurk.com/p/i4uogm 自由知識創作平台介紹 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE 如何建立新的自由知識創作平台文件 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA |
|||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員一級
![]() ![]() 註冊日期:
2014/12/17 14:36 所屬群組:
已註冊使用者 等級: 3
HP : 0 / 63
![]() |
我在var/www/html 新增一個資料夾1234 並在裡面由html的index.html
複製到1234 在http://127.0.0.1/1234 OR http://127.0.0.1/~USER無法開啟 另外用各 <?php phpinfo(); ?> 的INDEX.PHP 也是無法開啟 安裝的系統是ubuntu-mate-14.04.1-final-desktop-i386 etc/log/apach2/error.log [Mon Dec 22 23:33:30.916272 2014] [mpm_event:notice] [pid 4316:tid 3074603648] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Mon Dec 22 23:33:30.923836 2014] [core:notice] [pid 4316:tid 3074603648] AH00094: Command line: '/usr/sbin/apache2' [Tue Dec 23 01:14:04.102254 2014] [mpm_event:notice] [pid 4316:tid 3074603648] AH00491: caught SIGTERM, shutting down [Tue Dec 23 07:23:52.376174 2014] [mpm_event:notice] [pid 1519:tid 3074828928] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Tue Dec 23 07:23:52.399656 2014] [core:notice] [pid 1519:tid 3074828928] AH00094: Command line: '/usr/sbin/apache2' [Tue Dec 23 07:56:18.364322 2014] [mpm_event:notice] [pid 1519:tid 3074828928] AH00491: caught SIGTERM, shutting down [Wed Dec 24 06:13:32.172935 2014] [mpm_event:notice] [pid 1383:tid 3074448000] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Wed Dec 24 06:13:32.192626 2014] [core:notice] [pid 1383:tid 3074448000] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 19:22:53.458901 2014] [mpm_event:notice] [pid 1383:tid 3074448000] AH00491: caught SIGTERM, shutting down [Wed Dec 24 19:22:54.874312 2014] [mpm_event:notice] [pid 15031:tid 3074460288] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Wed Dec 24 19:22:54.875183 2014] [core:notice] [pid 15031:tid 3074460288] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 19:23:56.800258 2014] [authz_core:error] [pid 15034:tid 3029318464] [client 111.253.192.136:50630] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:23:58.168015 2014] [authz_core:error] [pid 15034:tid 3020925760] [client 111.253.192.136:50630] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:23:59.384396 2014] [authz_core:error] [pid 15034:tid 3012533056] [client 111.253.192.136:50630] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:31:23.650095 2014] [authz_core:error] [pid 15034:tid 3004140352] [client 111.253.192.136:50721] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:31:25.529222 2014] [authz_core:error] [pid 15034:tid 2995747648] [client 111.253.192.136:50721] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:31:26.725199 2014] [authz_core:error] [pid 15034:tid 2987354944] [client 111.253.192.136:50721] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:31:52.383501 2014] [authz_core:error] [pid 15034:tid 3046103872] [client 111.253.192.136:50722] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:31:53.178265 2014] [authz_core:error] [pid 15034:tid 3054496576] [client 111.253.192.136:50722] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:31:53.562061 2014] [authz_core:error] [pid 15034:tid 3062889280] [client 111.253.192.136:50722] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:31:53.878578 2014] [authz_core:error] [pid 15034:tid 2978962240] [client 111.253.192.136:50722] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:31:54.093840 2014] [authz_core:error] [pid 15034:tid 2970569536] [client 111.253.192.136:50722] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:38.705083 2014] [authz_core:error] [pid 15034:tid 2962176832] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:39.755238 2014] [authz_core:error] [pid 15034:tid 2953784128] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:40.690720 2014] [authz_core:error] [pid 15034:tid 2945391424] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:41.400358 2014] [authz_core:error] [pid 15034:tid 2936998720] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:42.099242 2014] [authz_core:error] [pid 15034:tid 2928606016] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:42.667659 2014] [authz_core:error] [pid 15034:tid 2920213312] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:43.052135 2014] [authz_core:error] [pid 15034:tid 2911820608] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:43.335275 2014] [authz_core:error] [pid 15034:tid 2903427904] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:32:44.718572 2014] [authz_core:error] [pid 15034:tid 2895035200] [client 111.253.192.136:50723] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:34:18.462824 2014] [authz_core:error] [pid 15034:tid 2886642496] [client 111.253.192.136:50727] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:34:19.661376 2014] [authz_core:error] [pid 15034:tid 2878249792] [client 111.253.192.136:50727] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:34:20.461178 2014] [authz_core:error] [pid 15034:tid 2869857088] [client 111.253.192.136:50727] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:34:50.024079 2014] [authz_core:error] [pid 15035:tid 3062889280] [client 111.253.192.136:50728] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:34:50.792546 2014] [authz_core:error] [pid 15035:tid 3037711168] [client 111.253.192.136:50728] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:34:51.864061 2014] [authz_core:error] [pid 15035:tid 3054496576] [client 111.253.192.136:50728] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:34:53.503482 2014] [authz_core:error] [pid 15035:tid 3046103872] [client 111.253.192.136:50728] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:35:26.204775 2014] [authz_core:error] [pid 15034:tid 2861464384] [client 111.253.192.136:50729] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:35:27.680257 2014] [authz_core:error] [pid 15034:tid 3037711168] [client 111.253.192.136:50729] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:35:51.903012 2014] [authz_core:error] [pid 15035:tid 3029318464] [client 111.253.192.136:50749] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:35:54.015001 2014] [authz_core:error] [pid 15035:tid 3020925760] [client 111.253.192.136:50749] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:36:50.112968 2014] [authz_core:error] [pid 15035:tid 3012533056] [client 111.253.192.136:50750] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:36:52.279149 2014] [authz_core:error] [pid 15035:tid 3004140352] [client 111.253.192.136:50750] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:36:53.386322 2014] [authz_core:error] [pid 15035:tid 2995747648] [client 111.253.192.136:50750] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:36:58.810511 2014] [authz_core:error] [pid 15034:tid 3029318464] [client 111.253.192.136:50751] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:37:10.615828 2014] [mpm_event:notice] [pid 15031:tid 3074460288] AH00491: caught SIGTERM, shutting down [Wed Dec 24 19:37:11.969368 2014] [mpm_event:notice] [pid 15565:tid 3074443904] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Wed Dec 24 19:37:11.970233 2014] [core:notice] [pid 15565:tid 3074443904] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 19:37:16.396203 2014] [authz_core:error] [pid 15569:tid 3029318464] [client 111.253.192.136:50752] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:37:17.492401 2014] [authz_core:error] [pid 15569:tid 3020925760] [client 111.253.192.136:50752] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:37:58.609442 2014] [mpm_event:notice] [pid 15565:tid 3074443904] AH00491: caught SIGTERM, shutting down [Wed Dec 24 19:38:00.192899 2014] [mpm_event:notice] [pid 15694:tid 3073972864] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Wed Dec 24 19:38:00.193830 2014] [core:notice] [pid 15694:tid 3073972864] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 19:38:04.157490 2014] [authz_core:error] [pid 15697:tid 3019877184] [client 111.253.192.136:50753] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:38:05.373791 2014] [authz_core:error] [pid 15697:tid 3011484480] [client 111.253.192.136:50753] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:38:06.254125 2014] [authz_core:error] [pid 15697:tid 2977913664] [client 111.253.192.136:50753] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:38:07.675880 2014] [authz_core:error] [pid 15697:tid 3003091776] [client 111.253.192.136:50753] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:38:08.533143 2014] [authz_core:error] [pid 15697:tid 2994699072] [client 111.253.192.136:50753] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:38:09.272739 2014] [authz_core:error] [pid 15697:tid 2986306368] [client 111.253.192.136:50753] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:38:09.738808 2014] [authz_core:error] [pid 15697:tid 2969520960] [client 111.253.192.136:50753] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:39:31.035151 2014] [authz_core:error] [pid 15698:tid 3053448000] [client 111.253.194.157:52867] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:39:32.743555 2014] [authz_core:error] [pid 15698:tid 3045055296] [client 111.253.194.157:52867] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:39:34.388541 2014] [authz_core:error] [pid 15698:tid 3036662592] [client 111.253.194.157:52867] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:42:41.161594 2014] [mpm_event:notice] [pid 15694:tid 3073972864] AH00491: caught SIGTERM, shutting down [Wed Dec 24 19:42:42.553019 2014] [mpm_prefork:notice] [pid 17484] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Wed Dec 24 19:42:42.553806 2014] [core:notice] [pid 17484] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 19:42:44.999045 2014] [mpm_prefork:notice] [pid 17484] AH00169: caught SIGTERM, shutting down [Wed Dec 24 19:42:46.664636 2014] [mpm_prefork:notice] [pid 17572] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 19:42:46.665104 2014] [core:notice] [pid 17572] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 19:43:12.309759 2014] [authz_core:error] [pid 17575] [client 111.253.194.157:52869] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:43:14.599458 2014] [authz_core:error] [pid 17575] [client 111.253.194.157:52869] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:43:18.006000 2014] [authz_core:error] [pid 17575] [client 111.253.194.157:52869] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:44:25.208153 2014] [authz_core:error] [pid 17576] [client 111.253.192.136:50775] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:44:57.568232 2014] [authz_core:error] [pid 17577] [client 111.253.192.136:50776] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:44:59.046126 2014] [authz_core:error] [pid 17577] [client 111.253.192.136:50776] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:45:00.813878 2014] [authz_core:error] [pid 17577] [client 111.253.192.136:50776] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:45:10.236162 2014] [authz_core:error] [pid 17578] [client 111.253.194.157:52871] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:45:11.679784 2014] [authz_core:error] [pid 17578] [client 111.253.194.157:52871] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:45:47.936312 2014] [authz_core:error] [pid 17579] [client 125.64.35.67:40044] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:46:03.424137 2014] [authz_core:error] [pid 17621] [client 111.253.194.157:52872] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:46:15.668333 2014] [mpm_prefork:notice] [pid 17572] AH00169: caught SIGTERM, shutting down [Wed Dec 24 19:46:16.997887 2014] [mpm_prefork:notice] [pid 17806] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 19:46:17.002268 2014] [core:notice] [pid 17806] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 19:46:20.177618 2014] [authz_core:error] [pid 17809] [client 111.253.194.157:52873] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:46:21.129355 2014] [authz_core:error] [pid 17809] [client 111.253.194.157:52873] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:46:22.044729 2014] [authz_core:error] [pid 17809] [client 111.253.194.157:52873] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:46:23.385796 2014] [authz_core:error] [pid 17809] [client 111.253.194.157:52873] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:46:24.642623 2014] [authz_core:error] [pid 17809] [client 111.253.194.157:52873] AH01630: client denied by server configuration: /home/iya/public_html [Wed Dec 24 19:47:17.844336 2014] [mpm_prefork:notice] [pid 17806] AH00169: caught SIGTERM, shutting down [Wed Dec 24 19:47:19.681310 2014] [mpm_prefork:notice] [pid 17882] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 19:47:19.681620 2014] [core:notice] [pid 17882] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 19:48:14.290295 2014] [mpm_prefork:notice] [pid 17882] AH00169: caught SIGTERM, shutting down [Wed Dec 24 19:48:15.658558 2014] [mpm_prefork:notice] [pid 17968] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 19:48:15.658858 2014] [core:notice] [pid 17968] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 20:02:31.639612 2014] [mpm_prefork:notice] [pid 17968] AH00169: caught SIGTERM, shutting down [Wed Dec 24 20:02:33.098117 2014] [mpm_prefork:notice] [pid 18448] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 20:02:33.098554 2014] [core:notice] [pid 18448] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 20:07:44.171951 2014] [mpm_prefork:notice] [pid 18448] AH00169: caught SIGTERM, shutting down [Wed Dec 24 20:07:45.572211 2014] [mpm_prefork:notice] [pid 18640] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 20:07:45.572546 2014] [core:notice] [pid 18640] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 20:11:09.466628 2014] [mpm_prefork:notice] [pid 18640] AH00169: caught SIGTERM, shutting down [Wed Dec 24 20:11:10.815801 2014] [mpm_prefork:notice] [pid 18802] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 20:11:10.816073 2014] [core:notice] [pid 18802] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 20:13:41.529649 2014] [mpm_prefork:notice] [pid 18802] AH00169: caught SIGTERM, shutting down [Wed Dec 24 20:13:42.903074 2014] [mpm_prefork:notice] [pid 18905] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 20:13:42.903502 2014] [core:notice] [pid 18905] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 20:14:35.519092 2014] [mpm_prefork:notice] [pid 18905] AH00169: caught SIGTERM, shutting down [Wed Dec 24 20:14:36.939154 2014] [mpm_prefork:notice] [pid 18983] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 20:14:36.939548 2014] [core:notice] [pid 18983] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 20:55:37.617834 2014] [mpm_prefork:notice] [pid 18983] AH00169: caught SIGTERM, shutting down [Wed Dec 24 20:56:28.177846 2014] [mpm_prefork:notice] [pid 1314] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 20:56:28.231067 2014] [core:notice] [pid 1314] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 21:47:05.009147 2014] [mpm_prefork:notice] [pid 1314] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [Wed Dec 24 21:47:06.398529 2014] [mpm_prefork:notice] [pid 1314] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Dec 24 21:47:06.398708 2014] [core:notice] [pid 1314] AH00094: Command line: '/usr/sbin/apache2' [Wed Dec 24 21:55:42.693787 2014] [core:error] [pid 5257] (13)Permission denied: [client 111.253.192.136:51396] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:55:42.694142 2014] [core:error] [pid 5257] (13)Permission denied: [client 111.253.192.136:51396] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:55:42.694288 2014] [core:error] [pid 5257] (13)Permission denied: [client 111.253.192.136:51396] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:55:42.694385 2014] [core:error] [pid 5257] (13)Permission denied: [client 111.253.192.136:51396] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:55:42.694477 2014] [core:error] [pid 5257] (13)Permission denied: [client 111.253.192.136:51396] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:55:42.694568 2014] [core:error] [pid 5257] (13)Permission denied: [client 111.253.192.136:51396] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 21:57:23.713733 2014] [core:error] [pid 4802] (13)Permission denied: [client 127.0.0.1:60453] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:57:23.714003 2014] [core:error] [pid 4802] (13)Permission denied: [client 127.0.0.1:60453] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:57:23.714099 2014] [core:error] [pid 4802] (13)Permission denied: [client 127.0.0.1:60453] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:57:23.714188 2014] [core:error] [pid 4802] (13)Permission denied: [client 127.0.0.1:60453] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:57:23.714340 2014] [core:error] [pid 4802] (13)Permission denied: [client 127.0.0.1:60453] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:57:23.714448 2014] [core:error] [pid 4802] (13)Permission denied: [client 127.0.0.1:60453] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 21:58:44.895970 2014] [core:error] [pid 5312] (13)Permission denied: [client 127.0.0.1:60456] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:58:44.896254 2014] [core:error] [pid 5312] (13)Permission denied: [client 127.0.0.1:60456] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:58:44.896349 2014] [core:error] [pid 5312] (13)Permission denied: [client 127.0.0.1:60456] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:58:44.896438 2014] [core:error] [pid 5312] (13)Permission denied: [client 127.0.0.1:60456] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:58:44.896526 2014] [core:error] [pid 5312] (13)Permission denied: [client 127.0.0.1:60456] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:58:44.896615 2014] [core:error] [pid 5312] (13)Permission denied: [client 127.0.0.1:60456] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 21:59:48.276916 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:59:48.277207 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:59:48.277302 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:59:48.277391 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:59:48.277480 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:59:48.277567 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 21:59:51.210914 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:59:51.211349 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:59:51.211412 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:59:51.211462 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:59:51.211514 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:59:51.211819 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 21:59:52.050019 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:59:52.050145 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:59:52.050242 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:59:52.050315 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:59:52.050366 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:59:52.050415 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 21:59:53.198605 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:59:53.198800 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:59:53.198854 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:59:53.198904 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:59:53.198956 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:59:53.199082 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 21:59:54.657988 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:59:54.658223 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:59:54.658317 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:59:54.658405 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:59:54.658494 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:59:54.658581 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 21:59:56.202306 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 21:59:56.202458 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 21:59:56.202547 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 21:59:56.202666 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 21:59:56.202756 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 21:59:56.202842 2014] [core:error] [pid 4803] (13)Permission denied: [client 127.0.0.1:60457] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 22:02:06.784940 2014] [core:error] [pid 4804] (13)Permission denied: [client 127.0.0.1:60461] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 22:02:06.785255 2014] [core:error] [pid 4804] (13)Permission denied: [client 127.0.0.1:60461] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 22:02:06.785346 2014] [core:error] [pid 4804] (13)Permission denied: [client 127.0.0.1:60461] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 22:02:06.785498 2014] [core:error] [pid 4804] (13)Permission denied: [client 127.0.0.1:60461] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 22:02:06.785586 2014] [core:error] [pid 4804] (13)Permission denied: [client 127.0.0.1:60461] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 22:02:06.785710 2014] [core:error] [pid 4804] (13)Permission denied: [client 127.0.0.1:60461] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 22:03:52.835219 2014] [core:error] [pid 5257] (13)Permission denied: [client 61.224.156.18:37311] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Wed Dec 24 22:03:52.835442 2014] [core:error] [pid 5257] (13)Permission denied: [client 61.224.156.18:37311] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Wed Dec 24 22:03:52.835537 2014] [core:error] [pid 5257] (13)Permission denied: [client 61.224.156.18:37311] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Wed Dec 24 22:03:52.835626 2014] [core:error] [pid 5257] (13)Permission denied: [client 61.224.156.18:37311] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Wed Dec 24 22:03:52.835715 2014] [core:error] [pid 5257] (13)Permission denied: [client 61.224.156.18:37311] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Wed Dec 24 22:03:52.835914 2014] [core:error] [pid 5257] (13)Permission denied: [client 61.224.156.18:37311] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Wed Dec 24 22:33:55.154063 2014] [mpm_prefork:notice] [pid 1314] AH00169: caught SIGTERM, shutting down [Thu Dec 25 05:55:45.149645 2014] [mpm_prefork:notice] [pid 1378] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Thu Dec 25 05:55:45.168001 2014] [core:notice] [pid 1378] AH00094: Command line: '/usr/sbin/apache2' [Thu Dec 25 06:01:26.698504 2014] [core:error] [pid 1427] (13)Permission denied: [client 36.235.10.228:49459] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Thu Dec 25 06:01:26.698747 2014] [core:error] [pid 1427] (13)Permission denied: [client 36.235.10.228:49459] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Thu Dec 25 06:01:26.698808 2014] [core:error] [pid 1427] (13)Permission denied: [client 36.235.10.228:49459] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Thu Dec 25 06:01:26.698861 2014] [core:error] [pid 1427] (13)Permission denied: [client 36.235.10.228:49459] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Thu Dec 25 06:01:26.698914 2014] [core:error] [pid 1427] (13)Permission denied: [client 36.235.10.228:49459] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Thu Dec 25 06:01:26.699033 2014] [core:error] [pid 1427] (13)Permission denied: [client 36.235.10.228:49459] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path [Thu Dec 25 06:15:26.090612 2014] [core:error] [pid 1423] (13)Permission denied: [client 36.235.10.228:49666] AH00035: access to /1234/index.html denied (filesystem path '/var/www/html/1234/index.html') because search permissions are missing on a component of the path [Thu Dec 25 06:15:26.090780 2014] [core:error] [pid 1423] (13)Permission denied: [client 36.235.10.228:49666] AH00035: access to /1234/index.cgi denied (filesystem path '/var/www/html/1234/index.cgi') because search permissions are missing on a component of the path [Thu Dec 25 06:15:26.090878 2014] [core:error] [pid 1423] (13)Permission denied: [client 36.235.10.228:49666] AH00035: access to /1234/index.pl denied (filesystem path '/var/www/html/1234/index.pl') because search permissions are missing on a component of the path [Thu Dec 25 06:15:26.090971 2014] [core:error] [pid 1423] (13)Permission denied: [client 36.235.10.228:49666] AH00035: access to /1234/index.php denied (filesystem path '/var/www/html/1234/index.php') because search permissions are missing on a component of the path [Thu Dec 25 06:15:26.091063 2014] [core:error] [pid 1423] (13)Permission denied: [client 36.235.10.228:49666] AH00035: access to /1234/index.xhtml denied (filesystem path '/var/www/html/1234/index.xhtml') because search permissions are missing on a component of the path [Thu Dec 25 06:15:26.091155 2014] [core:error] [pid 1423] (13)Permission denied: [client 36.235.10.228:49666] AH00035: access to /1234/index.htm denied (filesystem path '/var/www/html/1234/index.htm') because search permissions are missing on a component of the path
2014/12/25 6:29
|
||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2009/1/10 10:33 所屬群組:
已註冊使用者 等級: 14
HP : 0 / 340
![]() |
顏姒 網友,
請問為何不依循慣例使用 /var/www ?
2014/12/25 9:59
|
||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2011/3/11 6:32 所屬群組:
討論區管理群 等級: 44
HP : 216 / 1084
![]() |
@swwei
預設站台根目錄於 Ubuntu 14.04 已經搬到 /var/www/html 目錄中囉
2014/12/25 10:36
|
||||||||||
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW http://creativecommons.org/licenses/by/3.0/tw/ 「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」 by Allen Own 出處 http://www.plurk.com/p/i4uogm 自由知識創作平台介紹 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE 如何建立新的自由知識創作平台文件 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA |
|||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 37
HP : 0 / 901
![]() |
Ubuntu 14.04 使用的 「apache」版本是「2.4.*」
$ apache2 -v 設定上,「2.4.*」和「2.2.*」會有些差異。 我之前從「12.04」變換到「14.04」,就有這樣的經驗。 請參考「這篇」或是「這篇」的說明。 所以初步猜測是下面這一段的關係 顏姒 寫到: 預設的「/etc/apache2/mods-available/userdir.conf」 ======================================================= <IfModule mod_userdir.c> UserDir public_html UserDir disabled root <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Require all granted </Limit> <LimitExcept GET POST OPTIONS> Require all denied </LimitExcept> </Directory> </IfModule> ======================================================= 你想要的,應該只是要把「public_html」改成「www」,所以應該改成下面的設定 ======================================================= <IfModule mod_userdir.c> #UserDir public_html UserDir www UserDir disabled root #<Directory /home/*/public_html> <Directory /home/*/www> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Require all granted </Limit> <LimitExcept GET POST OPTIONS> Require all denied </LimitExcept> </Directory> </IfModule> ======================================================= 然後執行下面的指令,啟用「userdir」這個模組 $ sudo a2enmod userdir 這時候就會產生一個檔 「/etc/apache2/mods-enabled/userdir.conf」Symbolic link到「/etc/apache2/mods-available/userdir.conf」 再來就是要讓「apache」「重新載入」 $ sudo service apache2 reload 或是「重新啟動」 $ sudo service apache2 restart 假設你的帳號是「cook」 就可以在「~/www/」也就是「/home/cook/www/」下放置你自己的網頁檔案。 $ echo test > ~/www/test.htm 然後在瀏覽器輸入「http://localhost/~cook/test.htm」,應該就可以看到網頁了 $ lynx http://localhost/~cook/test.htm ![]() 顏姒 寫到: 您該不會是因為「這篇」而被誤導了,不過裡面有寫註解,分別「2.2」和「2.4」的使用方法,呵呵! ![]()
2014/12/25 12:19
|
||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 37
HP : 0 / 901
![]() |
swwei 寫到: V字龍 寫到: ## 回答 這種方式,每個使用者都可以在自己的家目錄開一個網頁的資料夾,預設是「public_html」。 然後網址是「http://localhost/~user/」。 上面的locahost可以置換,user隨不同的帳號而定。 另外「~/public_html」的擁有者,也不像「/var/www/html」是「root」,擁有者是「該帳號」。 另外在Ubuntu的「apache2」在使用上,有一個專屬的使用者「www-data」和群組「www-data」。 $ cat /etc/passwd | grep www $ cat /etc/group | grep www 當你用「php」來產生檔案的時候,就會看到檔案的所屬的「使用者」和「群組」,都是「www-data」。 $ vi ~/public_html/test.php 貼入下面的內容,存檔 <?php file_put_contents(__DIR__ . '/test.txt', 'test'); ?> 然後再瀏覽器輸入網址「http://localhost/~user/test.php」執行。 $ lynx http://localhost/~user/test.php 觀看檔案所屬的「擁有者」和「群組」 $ ls ~/public_html/test.txt -l 應該就會看到 ... www-data www-data ... 若是使用 $ php ~/public_html/test.php # (注意執行這行前,先把剛剛產生的「test.txt」先刪除,不然會因為權限的關係,無法寫入。) 則產生的檔案,則是該帳號的「擁有者」和「群組」,因為是透過「php」這支程式來執行的,而非apache的模組。 ## 更多參考 * 鳥哥的 Linux 私房菜 / 第二十章、WWW 伺服器 / 20.3.1 啟動用戶的個人網站 * Ubuntu Server Guide / Web Servers / HTTPD - Apache2 Web Server * Ubuntu / CommunityHelpWiki / ApacheMySQLPHP * Apache Module mod_userdir * 查詢「ubuntu userdir 」 * UbuntuTW Wiki UbuntuTW Guide ch14 * 回覆: 關於phpmyadmin的問題
2014/12/25 13:03
|
||||||||||
![]() |
回覆: 如何使用home 來架站 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
管理員
![]() ![]() 註冊日期:
2011/3/11 6:32 所屬群組:
討論區管理群 等級: 44
HP : 216 / 1084
![]() |
沒猜錯的話預設 Apache Web 伺服器是以 www-user 的身份執行的,所以網頁檔案都要能被 www-user 存取 Web 伺服器才讀得到
2014/12/25 13:54
|
||||||||||
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW http://creativecommons.org/licenses/by/3.0/tw/ 「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」 by Allen Own 出處 http://www.plurk.com/p/i4uogm 自由知識創作平台介紹 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE 如何建立新的自由知識創作平台文件 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA |
|||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.