Hi
I have created a symlink for my_project => my_real_project, but I have the exact same error when I use the directory without symlink
Code: Select all
ls -laZ /var/www/
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 .
drwxr-xr-x. root root system_u:object_r:var_t:s0 ..
drwxr-xr-x. root root system_u:object_r:httpd_sys_script_exec_t:s0 cgi-bin
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 html
lrwxrwxrwx. root root unconfined_u:object_r:httpd_sys_content_t:s0 my_project -> my_real_project
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 my_real_project
I have created manually the storage/logs directory, and now the error is "
The stream or file "/var/www/my_project/storage/logs/laravel-2019-06-05.log" could not be opened: failed to open stream: Permission denied"
Code: Select all
ls -laZ /var/www/my_project/storage/
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 .
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 ..
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 app
drwxrwxr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 framework
drwxrwxrwx. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 logs