AWS EC2 ubuntu server resolution issue

I am using AWS EC2 instance as file instance and install ubuntu 14 as os and apche2 as web server and running purple system

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

Info2: Magento System Launch

Info3: I do not have a htaccess file

Problem 1: File permission is not work when i am trying using below code step : When I try to grant file and folder permission using below, refrain, show

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

Show error:

 find: missing argument to '-exec' 

enter image description here

Problem 2: Apache mod rewrite is not working : try the sudo su -c "a2enmod rewrite" code, and to be honest, check sudo su -c "a2enmod rewrite" it works. I have editing in this file

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

and

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

and it site goes to 500 Internal error

Problem 3: how to enable htacess

Please help me.

+5
source share
1 answer

find should look like this: find . -type d -exec chmod 755 {} \; find . -type d -exec chmod 755 {} \;

Also, do not post multiple questions to the same question. Create a separate question for each individual problem.

+1
source

Source: https://habr.com/ru/post/1202305/


All Articles