簡體   English   中英

AWS EC2 ubuntu服務器權限問題

[英]AWS EC2 ubuntu Server permission issue

我使用AWS EC2 instance as file instanceinstall ubuntu 14 as osapche2 as web server運行magento系統

Info1: i do not create any apache user group from myself.

Info2: 運行magento系統

Info3: 我沒有htaccess文件

問題1: permission is not work when i am trying using below code step文件permission is not work when i am trying using below code step命令給出文件和文件夾權限時表示它顯示

sudo find . -type d -exec chmod 775 {} ;

顯示錯誤:

find: missing argument  to '-exec'

在此輸入圖像描述

問題2: Apache mod rewrite is not working :嘗試代碼sudo su -c "a2enmod rewrite"並通過推薦檢查它的工作原理。 我已經編輯了這個文件

/etc/apache2/sites-available/000-default.conf

 ServerName server_domain_name_or_IP
    <Directory /data/>
        AllowOverride All
    </Directory>

it site goes to 500 Internal error

問題3: how to enable htacess

請幫助我。

find應該是這樣的: find . -type d -exec chmod 755 {} \\; find . -type d -exec chmod 755 {} \\;

另外,不要在同一個問題中發布多個問題。 為每個問題創建一個單獨的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM