Answer the question
In order to leave comments, you need to log in
How to give Apache permissions to a folder?
Good afternoon, ladies and gentlemen.
I want to raise the project on laravel.
Created it in: /home/rishat/workspace/web/laravelprojects/test/laravel/ Registered
local domains in Apache.
<VirtualHost laravel.local:80>
ServerName laravel.local
ServerAlias laravel.local
ServerAdmin [email protected]
DocumentRoot /home/rishat/workspace/web/laravelprojects/test/laravel/public
<Directory /home/rishat/workspace/web/laravelprojects/test/laravel/public>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Forbidden
You don't have permission to access / on this server.
Apache/2.4.18 (Ubuntu) Server at laravel.local Port 80
[email protected]:~# sudo chmod -R 777 /home/rishat/workspace/web/laravelprojects
[email protected]:~# sudo service apache2 stop
[email protected]:~# sudo service apache2 start
[email protected]:~#
Answer the question
In order to leave comments, you need to log in
Good afternoon.
I think you have apache 2.4?
In the server config file, try adding the Require all granted directive
<Directory /home/rishat/workspace/web/laravelprojects/test/laravel/public>
AllowOverride All
Require all granted
</Directory>
chown
chmod
mc
Permissions - web-data (in my opinion it is called so in Ubuntu). In principle, from whom it is possible to launch via top / htop .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question