Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
2answers
24 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
32 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
44 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
64 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....
0
votes
1answer
52 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\...
2
votes
0answers
23 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
26 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
2answers
70 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
105 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
24 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
228 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
47 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
14 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
423 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
39 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
273 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
29 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
78 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
208 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
36 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
49 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
57 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
359 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
130 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
58 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
79 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
191 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
692 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
218 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 ...
0
votes
1answer
1k views

generated folder should be read-only file system? - Magento 2.2.2

I upgraded from Magento 2.1.11 to Magento 2.2.2. I have one critical issue that is most our extensions complain about generated folder is a read-only file system. Magento team strongly recommend ...
0
votes
1answer
76 views

Custom option file path “[fullpath] => /var/www” in magento 1.8 not able to open it on download

I have Magento 1.8 setup, if I try to print info array in this file app/code/core/Mage/Sales/controllers/DownloadContorlleres.php it is printing the full path as below /var/www/html/media/...
1
vote
2answers
5k 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] ...
0
votes
1answer
47 views

Permissions on webserver

My problem came out when we tried to install an extension...then we tried to install another two or three but none of them are working. We cannot have any working extension on our version of Magento (...
3
votes
2answers
56 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 ...
0
votes
1answer
52 views

Problems to install Magento on AWS

I'm trying to install Magento CE 2 on AWS following this tutorial: https://comtechies.com/how-to-install-magento-on-amazon-ec2.html However, I cannot go to http:///magento. I've look on Google and I ...
0
votes
1answer
44 views

On every deployment magento 2 folders and files permissions changed

I'm using Ubuntu 16.04 and installed magento 2 on it. When I'm deploying magento 2 site with Php magento setup:upgrade Php magento setup:static-content:deploy I'm getting file permissions errors ...
3
votes
3answers
798 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\...
1
vote
2answers
3k 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
2answers
127 views

Magento 2: Access Denied Error generated in report while the browser page is loading

[2017-10-06 04:20:22] main.CRITICAL: exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'xxx'@'xxx' (using password: YES)' in /home/xx-xx/public_html/vendor/...
0
votes
2answers
845 views

Magento 2 file/Folder permission :

I am trying to install fresh Magento 2 .IT gives HTTP ERROR 500 when hit the url http://localhost/m2/ I know 0777 will solve my issue but its not good to give 777 i give persmission as suggested. ...
0
votes
1answer
20 views

Problem with showing customer avator in account information page

I have added a custom image field to customer and I want to show it in customer information page. when it is uploaded it saves into pub/media/customer folder. Now I want to have its url to see the ...
3
votes
1answer
779 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
0answers
75 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', ...
1
vote
2answers
2k 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 ...
0
votes
1answer
223 views

After changing file permissions, 403 error forbidden to Admin-Categories

In Magento 1.7, I just tried accessing Admin -> Catalog -> Manage Categories, and I got a 403 Forbidden error (You don't have permission to accesson -url- on this server.). Before that, I ...
0
votes
1answer
295 views

Permission denied when try any command in magento 2.1

When I try to set permissions to folder and files using command like find . -type f -exec chmod 644 {} \; // 644 permission for files find . -type d -exec chmod 755 {} \; ...
1
vote
3answers
7k 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
1answer
85 views

Adding a custom theme for design changes

I am completely new to Magento and am having some trouble moving around in the files. I installed the Magento 2.1.7 CE with sample data. We had a company migrate all products and information from a ...
5
votes
2answers
1k 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?
0
votes
1answer
43 views

Permission file error when save options in admin panel

I have a problem with the Magento administrator, when I try to save any changes that are inside Content > Settings or Content > Blocks I get the following error and could not correct it. I ...