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
0
votes
3answers
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 ...
0
votes
2answers
70 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: ...
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 ...
0
votes
1answer
32 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
197 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
2k 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
187 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
90 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
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
1answer
902 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
200 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
136 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
191 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
308 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
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
0answers
295 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
2k 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
127 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
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] ...
0
votes
1answer
49 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 (...
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 ...
0
votes
1answer
110 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
49 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
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\...
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 ...
0
votes
2answers
195 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/...
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 ...
0
votes
1answer
25 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
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 ...
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', ...
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 ...
0
votes
1answer
275 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
329 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 {} \; ...
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....
0
votes
1answer
96 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 ...
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?
0
votes
1answer
66 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 ...
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 ...
0
votes
3answers
497 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 ...
1
vote
1answer
575 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 /...
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 -...
0
votes
2answers
3k 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 ...
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 ...
1
vote
1answer
217 views

Readiness check didn't have a problem, but update.log complains about non-writable paths

I'm running Magento 2 CE on Ubuntu 16.04. I followed the setup guide pretty closely and everything seems to be working fine from a usability standpoint, but I discovered today that var/log/update.log ...
0
votes
1answer
39 views

Can't upload any files to the admin dashboard?

for some reason I can't seem to save extension configuration with files attached. I'm attempting to update the logo for our PDF extension, when I browse for the file and save it confirms it was saved ...
1
vote
2answers
1k views

Can't install Magento 2 due to permissions issue

I am stuck in the installation of new copy of Magento 2.1.3. I downloaded tar.bz2 archive from the site into the apache root folder of my CentOS 7 machine. I extracted it with the command tar jxf ...
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 ...
-1
votes
3answers
17k views

How to re-run the file permission check during installation?

I accidentally screwed up the folder permissions of the Magento root directory. Is it possible to re-run the folder permissions check during installation to have Magento verify that everything is ...
0
votes
1answer
454 views

Magento can't open a file outside its base dir with fopen

For some reason to me unknown, Magento doesn't want to open file for writing with: $fp = fopen("/Users/vlado/Desktop/f.txt", 'a+'); , apparently because it is outside of the Magento base directory. ...
1
vote
0answers
544 views

what is the best permissions scheme for 1.9.3 after upgrade with magento connect (which requires 777)

I will be using Magento Connect to upgrade to 1.9.3 via the server. It is a shared server so the "www-data" user does not have owner privileges on our files. Many threads recommend setting all files ...