Skip to main content

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
0 answers
394 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 ...
Punith's user avatar
  • 61
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
0 votes
4 answers
3k 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 ...
Shoaib Saleem's user avatar
0 votes
1 answer
61 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.
vejitha'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
1 answer
339 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 "...
Sanjay Gohil's user avatar
  • 2,200
1 vote
0 answers
33 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 ...
niceonelee's user avatar
-1 votes
3 answers
2k 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 ...
fran35's user avatar
  • 187
0 votes
2 answers
87 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: ...
prabhakaran7's user avatar
  • 1,125
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,125
0 votes
1 answer
42 views

How to give file permissions

How to give file permissions while uploading my code move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file);
trilok kumar's user avatar
0 votes
2 answers
338 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 ...
Jeppe Donslund's user avatar
1 vote
1 answer
4k views

Operation not permitted

I am trying to install a Magento 2 in Linux Mint 19. I am facing issue in file permission.
abu abu's user avatar
  • 754
0 votes
1 answer
407 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 ...
Himanshu's user avatar
  • 1,776
0 votes
1 answer
129 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 ...
Chris Oliver's user avatar
1 vote
1 answer
174 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
1k 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 ...
Jakk64's user avatar
  • 79
0 votes
1 answer
331 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 (......
ooootramas's user avatar
0 votes
0 answers
152 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 ...
Ella SG's user avatar
0 votes
2 answers
537 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')...
Tiny Dancer's user avatar
0 votes
2 answers
485 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 ...
lpFranz's user avatar
  • 689
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
0 answers
310 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 ...
Ebin Manuval's user avatar
0 votes
1 answer
3k 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 ...
Bilal Usean's user avatar
  • 10.1k
0 votes
1 answer
201 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/...
A.Srivastava's user avatar
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
0 votes
1 answer
64 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 (...
Enrico Piazza's user avatar
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
0 votes
1 answer
156 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 ...
cmsantos's user avatar
0 votes
1 answer
72 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 ...
ubakara samy'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
4 answers
13k 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
0 votes
2 answers
273 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/...
Irfan Momin's user avatar
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
0 votes
1 answer
28 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 ...
M Taheri's user avatar
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,445
2 votes
0 answers
281 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
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
0 votes
1 answer
286 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 ...
LeCodeur's user avatar
  • 366
0 votes
1 answer
342 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 {} \; ...
Velu's user avatar
  • 1
2 votes
6 answers
21k 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
0 votes
1 answer
108 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 ...
user3096584's user avatar
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
  • 526
0 votes
1 answer
69 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 ...
Sting Arroyo Hernández's user avatar
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
  • 280
0 votes
3 answers
526 views

magento 2.1.6 installation

I have some problem with the installation of magento. This is the config: Dedicated Server, CentOS Linux release 7.3.1611 (Core), Apache, Mysql, Magento CE 2.1.6 I have a user named web and the web ...
Pro-Magento's user avatar
1 vote
1 answer
692 views

Magento 2.1.6 - File permissions keep resetting some to none

So i run the necessary permission commands for my Magento installation, i then notice the permissions change by them self and some folders all of a sudden have no permissions set, for example in the /...
Mehdi Rafiai'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
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
  • 754
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,612