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
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 ...
ohpls's user avatar
  • 61
6 votes
2 answers
3k views

Permission change after setup:upgrade

For some reason every time I compile or setup:upgrade the file permissions on my server change and my site's layout is affected. Does anyone know what can be causing this?
DevAnd's user avatar
  • 516
5 votes
1 answer
22k views

Internal Server Error (500) in Installation of magento 1.9.2.1 on aruba hosting [closed]

I have uploaded all files to server (aruba.it) and saw below errors when browse the folder to install magento: Internal server error The server encountered an internal error or ...
Jarnail S's user avatar
  • 4,697
5 votes
3 answers
6k views

Magento 2: modules are not listing in admin panel

On my test server, every installed extensions are not listing in admin panel under Stores > Settings > Configuration > Advanced > Advanced. And if the extension has configuration parameters ...
WaPoNe's user avatar
  • 1,590
5 votes
1 answer
6k views

Magento 2: How to fix incorrect permissions after executing setup:upgrade and/or setup:di:compile

After running setup:upgrade and di compile from the bin directory, permission and ownership is reset and the magento store stops working. It works if I manually reset the permission. When the var/...
Sohaib Khan's user avatar
4 votes
5 answers
33k views

PHP Fatal error: Uncaught Zend_Cache_Exception

SOLVED - see my answer below. I changed my theme and all pages showed only html without any styling. Then I ran sudo php bin/magento setup:static-content:deploy and after website doesnt work and ...
rits's user avatar
  • 753
4 votes
1 answer
762 views

Magento 2 Permission Issues

During development of a magento 2 site I keep getting permission issues. When I move from modes I get "Cannot change permissions for path." Is there something else that I should be doing?
Matthew McLennan's user avatar
3 votes
3 answers
3k views

Cant run commands in terminal magento 2

When try run command in terminal example php bin setup:upgrade show like these error messages. Not only that but also all commands -[ReflectionException] Class Magento\Config\Console\...
RUC...'s user avatar
  • 161
3 votes
5 answers
5k views

Magento2 Missing write permissions to the following directories: 'site/public_html/pub/static'

unfortunately i get this error when I try to do a magento2 setup upgrade arredeom@chronos [~]# php public_html/bin/magento setup:upgrade Cache cleared successfully File system cleanup: /home/arredeom/...
LaurenFrida's user avatar
3 votes
3 answers
3k views

Magento still writing in system /tmp

I've read several threads about this, but still can't resolve the issue. We use apache + PHP-FPM. In Magento tree files are owned by apache-user:dev. Now, using 775 / 664 for dirs and files. Also, we ...
Marc's user avatar
  • 383
3 votes
1 answer
2k views

'php magento setup:di:compile' generated cache file with wrong user groups

Suppose user-a run the command php magento setup:di:compile, it generated cache file with wrong user group, the wrong user group is user-a(the primary group of user-a), in fact it should be apache(the ...
Key Shang's user avatar
  • 3,415
3 votes
1 answer
2k views

Product image missing from backend after updating to magento 1.9.2.3

I recently updated several sites running Magento CE 1.9.2.2 to 1.9.2.3. I noticed that product images (when uploaded now) are no longer visible in the backend - though they are visible on the frontend....
vito's user avatar
  • 141
3 votes
1 answer
1k views

while saving admin cms pages getting 404 not found only for files in magento 2

while saving admin cms pages getting 404 not found page in magento 2 already permission for pub/media 777 var 777 how i can solve this i'm using magento 2.1.11 Edit1: I created new cms page when i ...
prabhakaran7's user avatar
  • 1,077
3 votes
1 answer
2k 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 ...
Mage Explorer's user avatar
3 votes
1 answer
2k 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 ...
Raül's user avatar
  • 790
2 votes
4 answers
12k 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 ...
DevonDahon's user avatar
2 votes
4 answers
20k 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....
Alex's user avatar
  • 811
2 votes
1 answer
10k views

www.mySITE.com is currently unable to handle this request. 500

Magento 1.9.1.0 Something happened and customers are getting the following Error when clicking on the CHECK-OUT button: The www.mySITE.com page isn’t working www.mySITE.com is currently unable to ...
Allysin's user avatar
  • 250
2 votes
2 answers
5k 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 ...
KaMZaTa's user avatar
  • 205
2 votes
1 answer
594 views

Files and Folders permission issue after I copied all files

I recently copied all files to other directory and it seems all files and folder permission changed so I run find . -type f -exec chmod 644 {} ; find . -type d -exec chmod 755 {} ; and I still got ...
Yohan's user avatar
  • 1,610
2 votes
1 answer
737 views

Magento 2 : Error 500 after installing

[Ubuntu 18.04 / Apache 2.4 / PHP 7.2.17 / Magento 2.3.1] After successful installing, magento show blank page. I found following error in apache error.log: [php7:error] [pid 29252] [client 127.0.0....
mashuxa's user avatar
  • 23
2 votes
2 answers
73 views

How to work localhost correctly? (Magento 2)

Edited: My problem is: Sometimes I need to run: find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; find ./var -type d -exec chmod 777 {} \; find ./pub/media -type d -exec ...
Pedro Lima's user avatar
2 votes
7 answers
7k views

Magento 2 permission issue for cache folder

Everytime I install a new module on my Magento 2, I got an error that the cache cannot be created because of the permission. All what I need to do is to run the following command to fix it. chmod -...
Magento Learner's user avatar
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 ...
MuhuPower's user avatar
  • 205
2 votes
0 answers
58 views

www.domain.com/pub/ shows the web page without css/javascript loaded

I can access my site correctly like www.domain.com ( with all the content loads correctly), but if I type in www.domain.com/pub/ it is still accessible ( without js & css loaded). How do I fix ...
Mage Explorer's user avatar
2 votes
3 answers
2k 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. ...
user72530's user avatar
2 votes
1 answer
3k views

How to give proper file and directory permission for magento localhost [duplicate]

Hi i am using Ubuntu 18 and apache2 when i setup magento 2 on localhost always have file permission problems and also whenever i run sudo php bin/magento setup:di:compile it will cancel all ...
prabhakaran7's user avatar
  • 1,077
2 votes
0 answers
257 views

Uploaded image blocked by client Magento 2

i created an extension to upload image, the way i save the image is like this: $uploader = $this->_uploaderFactory->create(['fileId' => 'image']); $uploader->setAllowedExtensions(['jpg', ...
Hunter's user avatar
  • 1,484
2 votes
2 answers
683 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 ...
Chris's user avatar
  • 181
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 ...
abu abu's user avatar
  • 744
1 vote
3 answers
6k 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 ...
inrsaurabh's user avatar
  • 1,676
1 vote
2 answers
2k views

Error from Updater Application Cron Script

Error from Updater Application Cron Script Found non-writable path(s): /home/USERNAME/public_html/.htaccess.sample Any Solutions?
Bob123's user avatar
  • 135
1 vote
2 answers
697 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 ...
Angelo's user avatar
  • 89
1 vote
2 answers
8k views

Can't create directory

[2018-01-12 11:58:16] main.CRITICAL: Can't create directory /home/hortbrascom/public_html/generated/code/Magento/Framework/App/Http/. in [Magento\Framework\App\Http\Interceptor] {"exception":"[object] ...
Kauan's user avatar
  • 83
1 vote
2 answers
2k views

Magento 2 cutom theme is not deployed

I have created a custom theme for Magento 2 production version. I have selected my theme from the back-end. But it renders only HTML. I deployed the static content but my theme is not in the pub\...
Janaka Dombawela's user avatar
1 vote
1 answer
166 views

What are the correct file permission settings for magento 2.2 on a single-user production environment?

I am setting up a Magento 2.2.5 instance on a production environment (single-user / shared hosting). When it comes to file permissions, I found two documentation pages: https://devdocs.magento.com/...
user125661's user avatar
1 vote
1 answer
3k views

Magento 2 Not getting JS and CSS after server change

I am working on magento 2.1.10 It is working fine on local server, each time I make any changes in CSS or add any custom modules the changes are online on frontend after I upgrade, content deploy and ...
Wasiq Shahrukh's user avatar
1 vote
2 answers
77 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 ...
Navin Bhudiya's user avatar
1 vote
2 answers
2k views

File permission change to 640 after uploading via Wysisyg - [Patch 7882 fixes]

UPDATE: Since the duplicate ticket on this doesn't actually answer this question I have posted this patch SUPEE-7882 https://github.com/brentwpeterson/magento-patches/blob/master/EE1.14/PATCH_SUPEE-...
brentwpeterson's user avatar
1 vote
2 answers
1k 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 ...
Sabareesh's user avatar
  • 358
1 vote
3 answers
1k 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, ...
Gerardo Siano's user avatar
1 vote
2 answers
547 views

Set the correct magento permissions

What are the correct Magento permissions and how can one set them correctly?
Huzan Forbes's user avatar
1 vote
1 answer
2k 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 ...
sam msft's user avatar
  • 183
1 vote
2 answers
6k views

failed to open stream: Permission denied on magento

I want to add a new module for export attributes in magento, so this is the module. When I upload this module, I have this error in my system.log and I don't understand why it speaks to me of ...
user avatar
1 vote
3 answers
992 views

Product images are uploaded in admin panel but cant be seen in the front view

I have magento 1.8.1.0, when adding products the images are uploaded in the admin panel but can't be seen in front view of shop. Have checked the images are stored in media/catalog/product/ folder. ...
priyanka_rahi's user avatar
1 vote
1 answer
4k views

How to hide/ disable notices or warning in magento

How to hide/ disable notices or warning in magento 1.8 ?
Sarfaraz Alam's user avatar
1 vote
1 answer
711 views

Magento 2.0.0, very slow, paths not good

I installed magento 2.0.0 on my computer. OS: Windows 10 I downloaded ZIP archive with sample data from: https://www.magentocommerce.com/download. Also, followed installation instructions from their ...
Александар Пламенац's user avatar
1 vote
1 answer
745 views

Unable to enable the Apache2 user www-data

After completing the Magento 2.0.0 rc and creating the user 'www-data' for the root installation drive /var/www/html I was unable to run the following command. Enable Apache user ->sudo chsh -s /bin/...
George Ng's user avatar
  • 101
1 vote
1 answer
441 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 ...
Bilal Amjad's user avatar
1 vote
1 answer
519 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/<...
audio-engineer's user avatar