【问题标题】:AWS EC2 ubuntu Server permission issueAWS EC2 ubuntu 服务器权限问题
【发布时间】:2014-11-04 22:29:03
【问题描述】:

我正在使用 AWS EC2 instance as file instance and install ubuntu 14 as os and apche2 as web server and running magento system

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: 当我尝试使用以下推荐授予文件和文件夹权限时,它会显示

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

请任何人帮助我。

【问题讨论】:

    标签: .htaccess ubuntu redirect amazon-web-services amazon-ec2


    【解决方案1】:

    find 应该是这样的:find . -type d -exec chmod 755 {} \;

    另外,不要在同一个问题中发布多个问题。为每个单独的问题创建一个单独的问题。

    【讨论】:

      猜你喜欢
      • 2018-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-24
      • 2015-01-28
      • 2011-07-31
      相关资源
      最近更新 更多