Questions tagged [file-permissions]
For questions relating to file read/write permissions, user groups, executable bits etc. Be sure to include a tag for the operating system (Windows or Unix) and tag for operating system version.
140 questions
1 vote
2 answers
1k views
How to set magento 2 sudo chown -R username:www-data
I'm using AWS EC2 ubuntu 22.04 to install magento2.4.6, but I'm confused about sudo chown -R user_name:www-data ., what should the user_name be, ubuntu or root. The default ssh user of ubuntu 22.04 is ...
0 votes
2 answers
3k views
Failed to open stream: Permission denied on only one module
One of our extensions give the following error message on the front page: Warning: require_once(/var/www/html/magento2/app/code/xxxVendor/xxxModule/registration.php): failed to open stream: ...
0 votes
1 answer
158 views
Magento or Apache 2 Permission?
I have a vm where I run ubuntu 18.04 , Apache 2 and Magento 2.3 every thing works fine but I think I'm doing something wrong with my permissions. So I have added to user 'dev' to the www-data group (...
1 vote
1 answer
522 views
There has been an error processing your request: "0":"Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded"
I am attempting to set up my local environment for Magento. When I try to view the front end, I get the following error on the page: There has been an error processing your request Exception printing ...
0 votes
2 answers
447 views
Cannot gather stats and Invalid template file after installing Porto theme
After setting up Magento 2 in developer mode, I am getting a couple of errors: [2021-04-19 21:39:09] report.INFO: Broken reference: the 'yotpo_bottomline' tries to reorder itself towards 'product.info....
3 votes
2 answers
7k views
"[ErrorException] chmod(): Operation not permitted" running "composer update"
I'm running Magento 2.4.2 and I'm using Composer v2.0.11. 2 days ago, after running, as usual, composer update, I suddenly received this error: [ErrorException] chmod(): Operation not permitted You ...
1 vote
1 answer
693 views
Is the Magento 2 file system allowed to be owned by www-data? + Permissions question
I work at a company where I noticed that most of our Magento 2 file system is owned by www-data and in the www-data group on our Ubuntu server.Furthermore, the docroot directory /var/www/<...
0 votes
1 answer
116 views
.pdf opening 403 Forbidden issue in Magento 2.3
I have an issue in opening .pdf file Forbidden You don't have permission to access this resource. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the ...