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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Magento 2.4.5 File/Folder Permissions

I know this has been asked before and there is the magento help documents, but can someone clarify what files/folder permissions i need for magento 2.4.5. I have been running magento fine for over 2 ...
3 votes
1 answer
1k views

Permission issue when installing with nginx

I have installed different Magento sites using nginx. I have 5 sites, 4 of them use php7.1 and there's one that uses php7.0. I have created two different sites-availaible: And both of them have ...
2 votes
1 answer
1k views

How to run external script outside of magento 2 root directory?

I have made a few external php scripts to update quantity and tracking numbers,etc Right now, i'm putting them in magento root and set the permission to 640. However, it's still accessible by the ...
1 vote
2 answers
1k views

404 for pub/static files

After installing Magento 2.3 on the server, when I run the URL I am receiving 404 for pub/static. I have given proper permission to magento folders. Also set ownership to apache for the codebase. ...
1 vote
3 answers
814 views

Command line user does not have read and write permissions on generated directory. Please address this issue before using Magento command line

My Magento site is down and I see main.CRITICAL: Cannot write to the "/var/www/html/var/debug/db.log" file. Unable to write {"exception":"[object] (Magento\Framework\Exception\...
1 vote
2 answers
4k views

Magento 2: Backup failed, Error received from server

I try to install an extension and can't continue because my backup failed: Backup failed Error received from server: I setup file permission like this for shared hosting but it didn't help: http://...
1 vote
3 answers
5k views

Magento 2 File/Folder permissions

I am trying to install fresh Magento 2. It gives me HTTP ERROR 500 when hit the URL http://localhost/m2/. I know 0777 will solve my issue, but it is not good to give 777. I give permission as ...
1 vote
2 answers
75 views

Not able to access backend

My magento2 back end URL is not working, I am not able to login into the back end. When I tried to open magento2 back end URL at that time it gives 403 error.This happened after I changed permission ...
1 vote
2 answers
337 views

Magento 2 how to set proper file and folder permission in localhost ubuntu 18?

i'm using magento 2 in local setup in ubuntu 18 when every time i run cmds php bin/magento s:s:d -f php bin/magento s:up php bin/magento s:d:c the file permission changed how to give proper ...
0 votes
4 answers
2k views

Magento 2 - bin/magento Commands not working in Cpanel Terminal

I have an issue while try to run commands bin/magento in terminal. Commands not working. No command run after bin directory. You can see the below screenshot about the error. Basically yesterday I ...
0 votes
3 answers
411 views

The directory "/.....public_html/generated/code/Magento" cannot be deleted Warning!rmdir(/.../public_html/generated/code/Magento): Directory not empty

Magento 2.4.2-p1 Smartwave Porto theme extensions from Amasty We have the Smartwave Porto theme. It came with Mageplaza Layered Navigation but an old version. Since we have some problems that I ...
0 votes
2 answers
474 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
2 answers
179 views

Permission for Magento user - Magento 2.4.2

May I know the permission for the Magento user to run the cmd SSH/putty. I had checked the Magento documentation but I can't understand for which file need to give 777 and which files need to change ...
6 votes
6 answers
16k views

Readiness check fails for Found non-writable paths but they are

I'm having issues trying to run the Readiness check on Magento 2.1 It's saying "Found non-writable path(s)" with a massive list of paths what aren't writable. The thing is, they are writable, I've ...
0 votes
1 answer
34 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
3 answers
4k views

Magento 2 installation & Linux file folder permission

I am using Linux Mint. I installed a quick package of Magento 2 Theme. I tried to browse Admin Panel. But I couldn't browse. Then I found I have to change file & folder permission. I tried below ...
0 votes
1 answer
20 views

What does it mean to set file permission?

In layman's terms, what does it mean to set file permission when installing magento2? I understand it's something we need to do to make it work, but I was wondering what it is / why do we actually do ...
0 votes
1 answer
86 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
238 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....
0 votes
1 answer
151 views

Cache Clean setup is not working

After running the bin/magento cache:clean the setup gets 500 Error i saw the log means PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/var/page_cache" is not ...
0 votes
2 answers
3k views

Writeable permissions error 777 | Magento 2

I am upgrading Magento 2, and all Readiness checks are passed after giving 777 permission to pub/meda, generated folder. But during upgrade process it stops throwing error of non-writeable folder for ...
0 votes
2 answers
2k 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
245 views

Catalog Category permissions keeps on changing automatically in Magento 2.4.1 Enterprise Edition

We are using Magento 2.4.1 Enterprise Edition. Suddenly our built-in catalog category permissions keeps on changing automatically (category permissions are set to "Deny"). which caused PLP ...
0 votes
2 answers
610 views

Getting permission issue for vendor mage folder while update anything on admin

I am using magento 2.3.2 community edition. While update any setting at backend I am getting error like Warning: file_put_contents(/var/www/html/ihouzit/var/cache//mage-tags/mage---39a_MAGE): ...
0 votes
1 answer
393 views

Magento 2.4 - difficulties with permissions before install

I'm familiar with magento1 and decided to learn about magento2 so I've been trying to install it but am having some difficulties with permissions of folders and files. I've looked at lots of videos, ...
1 vote
1 answer
168 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/<...
2 votes
3 answers
11k views

Magento 2 : Permission denied with colinmollenhour module cache

I regularly get this error message: 1 exception(s): Exception #0 (Exception): Warning: file_put_contents(/var/www/html/magento/var/cache//mage-tags/mage---365_COMPILED_CONFIG): failed to open ...
0 votes
1 answer
248 views

Is it safe to permission set 777 for var?

I saw 'Never use 777 for security reason' and I also found Magento 2 recommended permission setup on Magento 2 folder/file permissions find ./var -type d -exec chmod 777 {} \; find ./pub/media -type d ...
0 votes
1 answer
54 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 ...
0 votes
2 answers
90 views

There has been an error processing your request kubernetes

I am trying to deploy Magento using Kubernetes and when I try to access the application I am getting following There has been an error processing your request Exception printing is disabled by default ...
2 votes
4 answers
18k views

Trying to install magento 2 and get page_cache is not writable

I'm trying to deploy magento 2.1.3 installed with composer on a CentOS 7 machine with apache 2.4 and it returns the error: [Mon Jul 03 17:15:55.678068 2017] [:error] [pid 16315] [client 211.159.221....
0 votes
2 answers
55 views

Site load without css after Migrating from one server to another

After migrating my magento site from one server to another, I encounter the following problem: the site loads, but without styles (css), it is as if it could not access the file. here are the ...
0 votes
1 answer
575 views

Magento /pub/static is not writable - Permissions error

So I'm fairly new to Magento, in fact, it's my first time messing with Linux permissions. I've been asked to change a few things on a website, and I can't even pass through the permissions part. I ...
0 votes
0 answers
25 views

folder system owner is getting changed in case of checkout of var/cache and var/session folder

I have set mage: mage user for my project it's working fine but whenever I am doing checkout then every time folder owner is getting changed to root: root for only var/cache/ & var/session/ folder....
0 votes
0 answers
174 views

Magneto admin Url is not working . Need to clear cache always

I am using magneto 2.2.6 . The website is working fine until i installed new extension . When the time of installation i run the following command php bin/magento setup:upgrade php bin/magento ...
-1 votes
1 answer
181 views

what are the proper chmod settings for the Media folder?

Magento 1.9.x We were troubleshooting something and changed the permissions on the Media folder. What are the proper chmod permissions on Media, var and the log (in var) folder?
0 votes
2 answers
114 views

I'm going crazy with the folder permissions! in magento 2

hello guys in my case when I want to run any command like 'bin/magento setup:upgrade && bin/magento cache:clean && bin/magento cache:flush ' or bin/magento setup:di:upgrade , it always ...
0 votes
0 answers
47 views

No-route with all magento grid/listing

I am having problem when moving to new server use Ubuntu. All my controller when loading grid/listing using UI component goes to 404 with no-route: That is example: domain.com/wondergopher/admin/...
0 votes
1 answer
155 views

Permission on OpenLiteSpeed Server localhost with Magento 2

I'm using CentOS 8 as my OS on my laptop and currently running OpenLiteServer (lsphp73) and have been successfully installed phpmyadmin and magento 2.3.4. Then, it comes with a problem that everytime ...
0 votes
2 answers
42 views

Magento 2 specific folder permisson

I have the folder path /var/www/html/stagedesign/magento_root How do I set folder permisson 777 to only stagedesign? I have tried this in the stagedesign folder but nothing happened. find . -type ...
0 votes
1 answer
3k views

Operation not permitted

I am trying to install a Magento 2 in Linux Mint 19. I am facing issue in file permission.
0 votes
1 answer
107 views

How to prevent Magento 2 from changing file permissions?

We are working on local environments to do our developments and we don't want Magento 2 to change file permissions - actually, we think that Magento 2 should never change file permissions, it's not ...
1 vote
1 answer
1k views

root is taking ownership of generated files?

I am trying to setup a new Magento 2.3 site. I keep seeing weird issues where some of the permissions have ownership set to root. It seems like some of the files are getting generated as root. I ...
1 vote
3 answers
793 views

Magento 2:Your web server is set up incorrectly and allows unauthorized access to sensitive files. Please contact your hosting provider

I'm struggling trying to solve this very annoying problem on my Magento 2.3.3 store. Today I forced the SSL on the website (I did it that by enabling the https on the unsecure URL). After 10-15 mins, ...
2 votes
2 answers
676 views

What Are the Final Production File Permissions for Magento 2.0.6

pretty much what the title says the link at the bottom of this page http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-install.html for file permissions doesnt work there is ...
0 votes
0 answers
65 views

Which files under Magento webroot should be executable?

Security best practices suggest that you should never have an executable in a public web directory. However, in a typical Magento install (in my very limited experience), this is not true. Even in ...
0 votes
1 answer
437 views

File exists but 404 for jquery-ui-1.9.3.2.js only one file

I upgraded magento 2.3.2 from 2.3.0. And getting this error in admin panel. GET https:///pub/static/adminhtml/Magento/backend/nl_NL/jquery/jquery-ui-1.9.2.js net::ERR_ABORTED 404 (Not Found). I ...
0 votes
1 answer
70 views

New/Modified files won't inherit group ownership

This is happening for the first time after months of developing. I don't know what changed. We set file permissions and then We run in Magento2 root folder: sudo chown -R user:apache . But, every ...
2 votes
2 answers
3k views

Magento - upgraded to 1.9 - admin not loading images & js because 403 error

I am going through the painstaking process of upgrading from 1.6 to 1.9 I choose to do a fresh install of 1.9 instead of each variation. I followed these steps and seem to have gotten pretty good ...
0 votes
2 answers
4k views

Permission denied error after given 0777 permission to var/ folder in Magento 2.3.1

I am using Magento 2.3.1 and I am getting that error on my Magento after given 0777 permission on my var folder i am using that command : -sudo chmod -R 0777 var/ Uncaught UnexpectedValueException: ...