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
1
vote
3answers
37 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, ...
0
votes
1answer
31 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
0answers
26 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
0answers
20 views

linux file permissions on webroot for Magento-2 when 755 and 644 are not good enough

We want a better approach to filesystem permissions. I find no existing question that fully addresses this issue to my satisfaction. As background, I have consulted the usual references, including: ...
0
votes
1answer
26 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
1answer
12 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 ...
0
votes
0answers
32 views

Vagrant on Windows10 - files connat be deleted

Vagrant on Windows 10 - shared folder vagrant@magento2vm:/var/www/magento-demo$ php /var/www/magento-demo/bin/magento deploy:mode:set developer The directory "/var/www/magento-demo/var/cache/mage--f"...
0
votes
0answers
51 views

Running Magento 2 in a Docker container - problem with permissions on setup:upgrade, files generated as root despite setting the user via sudo

I'm having a problem with my Magento2 & Docker setup. It's basically the same issue as outlined in this question: Magento 2: How to fix incorrect permissions after executing setup:upgrade and/or ...
0
votes
2answers
191 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 ...
0
votes
3answers
185 views

How to set permisions for var/cache folder?

I can't able to remove var/cache folder. I'm using local server and accessed through ssh. How can I remove the var/cache folder by setting permission? I have run chmod 755 -R var/* and getting the ...
0
votes
2answers
191 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 ...
1
vote
1answer
49 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\...
0
votes
0answers
38 views

Command line user does not have read and write permissions on generated directory. Magento ver 2.3 cloud environment

I am using Magento cloud. When I try to run setup:di:compile command in one of my development branch. I am getting Command line user does not have read and write permissions on generated ...
2
votes
1answer
209 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 ...
0
votes
1answer
31 views

Forbid access to a file by url but allow through browser

how can I prevent the user to access my /v folder in my website where I have some video, but allow them to be display on frontend thanks to the <\video> tag from HTML 5 ? I tried this and other ...
0
votes
0answers
119 views

Magento 2 Installation Error In Docker - File Cannot Be Renamed

I'm using docker-compose to build a Magento 2.3.1 development environment (Docker for Windows with Linux containers enabled). The stack is based on PHP:7.2-apache with all Magento required ...
1
vote
2answers
60 views

Set the correct magento permissions

What are the correct Magento permissions and how can one set them correctly?
0
votes
1answer
98 views

Changing file permissions to 777 breaks website

I am trying to install a theme to a magento site, but running setup:upgrade after the files are transferred breaks all css and javascript. I read that the file permissions may be an issue, so after ...
0
votes
1answer
70 views

How to Increase file size of Importing Products to Magento 2 [duplicate]

I'm looking to import product into M2 but the allowed size is 2MB and my file has 2.33 MB how can I increase the size? Thanks in advance.
0
votes
0answers
79 views

Magento 2 installation in GoDaddy shared hosting

Just installed Magento in my GoDaddy shared hosting and getting this error: Can't create directory /home/xxx/public_html/xxx.com/ecommerce/generated/code/Magento/Catalog/Controller/Adminhtml/...
0
votes
2answers
45 views

Magento 2 + Permissions issue in Ubntu 16.04

Every time i run setup upgrade or static-content deploy command, I need to assign permissions to var, generated, pub/static etc in Ubuntu. Is there any permanent solution for that so every time we ...
2
votes
0answers
38 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
0answers
158 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
342 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....
1
vote
2answers
173 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\...
3
votes
0answers
192 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 ...
1
vote
1answer
95 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
214 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 ...
0
votes
2answers
426 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. ...
0
votes
2answers
477 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
1answer
27 views

Magento 2.2.6 Installation

I'm trying to install magento 2.2.6 on my local server but i'm facing permission issues. How to set read write permissions to generated folder in windows7 with command line. Thank you.
1
vote
1answer
857 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
66 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 "...
1
vote
0answers
22 views

File permission

Using Linux,centos7,cloud server.having 3 accouts. About file permission, sometime getting warning can't inside the website, need to refresh 2~3 times. How to fix file permission, we don't want every ...
0
votes
3answers
1k views

how do I set folder permissions on windows Magento 2.2 install?

I'm using laragon in a windows 10 machine for a 2.2.3 Magento install. What folder permissions do I have to set? By default, all folders are read-only (or so it seems). Currently, I set writable ...
0
votes
2answers
57 views

How to solve Unable to load CSS and JS after setup magento 2

My using Ubuntu 18 and apache2 I downloaded magento2 zip file and extract uploaded to my /var/www/html/ but always shows the above image I already setup htaccess file Already tried comments: ...
1
vote
1answer
860 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 ...
0
votes
1answer
31 views

How to give file permissions

How to give file permissions while uploading my code move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file);
0
votes
2answers
145 views

Wrong folder permission

I know this has been asked a million times, but I can't find the right answer. I have a Magento 1.9 on a shared server. Images keeps failing to show. I can change the folder permissions through ...
0
votes
1answer
793 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
1answer
61 views

Magento 2 Custom module installation time create media directory

I want to create media directory with 777 recursive permission on custom module installation time, So I have created createDirectory function in InstallSchema. But currently directory is created with ...
0
votes
1answer
67 views

Can't Save Product Changes

I have been having some problems with my Magento 1.9.0 installation which seem to be related to access permissions mainly in the var and media directories. I have had the host reset the permissions to ...
1
vote
1answer
72 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
1answer
709 views

Magento2 | Docker files permissions on Windows volume

I'm trying to set up correctly a magento2 project with Docker on Windows 10 and I'm mounting 2 volumes (one with magento2 files and one to save db files). When I'm trying to get in the admin dashboard ...
0
votes
1answer
161 views

M2 Set permissions and groups to auto-generated files and folders

Every time I installed new extensions or do something that generates files and folders, it's like I lose the group, permissions, or magento generate a bad URL, like the cache and the double slash (......
0
votes
0answers
98 views

Magento 2 Permissions messed up

I have got myself into a bit of a pickle managing a magento site for a new business venture. I am pretty out of my depth and am very much a beginner in command line and server management. I have a ...
0
votes
1answer
136 views

Magento 2 - Make log file accessible from browser

I created a custom log file like this: $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/my_oh_my.log'); $logger = new \Zend\Log\Logger(); $logger->addWriter($writer); $logger->info('TikTok')...
0
votes
2answers
217 views

What is the recomended file system permissions for magento 2 installation?

My environment is an AWS EC2 machine, with only one magento 2.2.3 store, with apache and Mysql. I've followed a few posts here from stackoverflow (here and here) and oficial documentation, but I'm not ...
1
vote
1answer
1k 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
0answers
268 views

Cron script readiness check failed while updating the Module

When I tried to update my module, Readiness check fails. My cron job is already running. Error from Updater Application Cron Script: Found non-writable path(s): generated/code/Magento/Cron ...