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
2answers
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?
5
votes
4answers
14k 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 ...
5
votes
1answer
21k 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 ...
5
votes
3answers
5k 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 ...
5
votes
1answer
4k 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/...
4
votes
1answer
739 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?
3
votes
5answers
25k 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 ...
3
votes
3answers
2k 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\...
3
votes
5answers
4k 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/...
3
votes
1answer
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....
3
votes
1answer
610 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
654 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
3answers
7k 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 ...
2
votes
1answer
9k 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 ...
2
votes
4answers
15k 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....
2
votes
3answers
2k 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 ...
2
votes
1answer
571 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 ...
2
votes
1answer
621 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....
2
votes
2answers
64 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 ...
2
votes
7answers
5k 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 -...
2
votes
2answers
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 ...
2
votes
0answers
50 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 ...
2
votes
1answer
531 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 ...
2
votes
1answer
2k 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 ...
2
votes
0answers
186 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', ...
2
votes
2answers
664 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 ...
1
vote
2answers
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?
1
vote
2answers
7k 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] ...
1
vote
2answers
1k 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\...
1
vote
1answer
111 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/...
1
vote
2answers
3k 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
2answers
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-...
1
vote
2answers
18 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
3answers
410 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, ...
1
vote
2answers
160 views

Set the correct magento permissions

What are the correct Magento permissions and how can one set them correctly?
1
vote
1answer
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
1answer
2k 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 ...
1
vote
2answers
4k 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 ...
1
vote
3answers
852 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. ...
1
vote
1answer
3k views

How to hide/ disable notices or warning in magento

How to hide/ disable notices or warning in magento 1.8 ?
1
vote
1answer
710 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 ...
1
vote
1answer
559 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/...
1
vote
1answer
41 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/<...
1
vote
1answer
184 views

How to Get all Product Images From pub/media/catalog/product

I want to Get All Product Images From Catalog/Product Images Directory I am trying this but not getting Success use Magento\Framework\Filesystem\Io\File; use Magento\Store\Model\...
1
vote
2answers
420 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
1answer
201 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 ...
1
vote
0answers
278 views

Due to permission issue Not able to insert the images using wysiwyg editor in Magento 2.2.7

Due to permission issue Not able to insert the image using WYSIWYG editor in page or block creation. Insert file and create folders buttons are not working. Suggest me with suitable permissions. We ...
1
vote
2answers
824 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
1answer
112 views

How to solve newly generated magento 2 file permission issue in ubantu 18.04?

I have install and configured magento 2 in ubantu 18.04. Everything work fine but when i am run magento2 command using cli than every time it will display file permission issue in "cache_dir" and "...