linux下個人許可權的Apache伺服器的php的yii搭建

來源:互聯網
上載者:User

標籤:http   io   ar   檔案   問題   log   on   linux   c   

首先我聲明我擁有的非root許可權,但是我有sudo許可權,Apache的許可權都是Apache
1.我在~/yii搭建
出現問題:(瀏覽器顯示)You don‘t have permission to access / on this server.
error_log:Permission denied: /home/xxx/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
我沒有解決問題,但是我感覺:apache沒有許可權訪問我個人許可權下檔案 即使我給它Apache許可權,因為它連~這裡的目錄進不去
2.我把我這個yii檔案夾,軟串連過去
又出現問題:(瀏覽器依然顯示)You don‘t have permission to access / on this server.
error_log:Symbolic link not allowed or link target not accessible: /home/apache/yii-master
解決: 上網找 各種chmod +x,檢查設定檔,httpd.conf中,已經添加了Options FollowSymLinks都沒用
3.我直接把yii檔案放在/home/apache下,ok!
總結:我特別高興 我整了一上午 由於第一次用非root許可權(其實以前用root)感覺各種不舒服,也是第一次用apache,還感覺不錯,現在我發現探索的確很開心,內心就是屌絲的IT男(哈哈!)

linux下個人許可權的Apache伺服器的php的yii搭建

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.