Questions tagged [permissions]

This tag is ambigouos. Use "file-permissions" for questions about permissions on the file system and "acl" (Access Control List) for permission management in the Magento admin panel

Filter by
Sorted by
Tagged with
2
votes
4answers
11k 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
3answers
3k views

Install issue permission and htaccess

I'm trying to install Magento 2. I run this for permission file and folder chown -R admin:www-data /var/www/magento2 find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640 find /var/www/...
2
votes
1answer
808 views

Role based hide lifetime sales from dashboard

When you log into the Magento admin dashboard it shows the lifetime sales. We want to restrict that block to only show for the admin not for the other employees. Of course, we could just remove the ...
0
votes
0answers
13 views

User Access permission

I am developing a Store in Magento 2. I created an Admin Account at the time of installation of Magento 2. Later I tried to create another User (Who can only Use the help desk) from Admin Panel. The ...
0
votes
2answers
30 views

Magento2 - Running di:compile stops at 57% in magento 2.3.2

Class Magento\Framework\Mail\EmailMessageInterfaceFactory does not exist Class Vendor\Extension\Model\Mail\TransportBuilder\Interceptor generation error: The requested class did not generate ...
0
votes
2answers
22 views

Site load without css after Migrating from one server to another

After migrating my magento site from one server to another, I encounter the following problem: the site loads, but without styles (css), it is as if it could not access the file. here are the ...
3
votes
2answers
897 views

Shipping Templates Zend PDF Generator Permissions Denied

When I try to create a shipping label in Magento Commmunity Edition 1.9, I'm facing a permissions error in system.log: Warning: imagepng(/var/folders/f3/pd3xtxvd0y390_qjv7pryv6m0000gn/T/...
0
votes
0answers
13 views

Magento 2.3.3 admin panel unresponsive

My site has an admin panel located at http://domain.com/admin When trying to log in I get the following error in the exception log: [2020-06-10 20:08:13] main.CRITICAL: The stream or file "/var/www/...
0
votes
1answer
28 views

Magento /pub/static is not writable - Permissions error

So I'm fairly new to Magento, in fact, it's my first time messing with Linux permissions. I've been asked to change a few things on a website, and I can't even pass through the permissions part. I ...
69
votes
13answers
173k views

Magento 2 folder/file permissions

I suspect that the permissions might have gotten messed up on my Magento 2 installation. On the old versions I would run the following command to make folders 755 and files 644: find . -type f -exec ...
0
votes
2answers
20 views

Magneto 2 setup - incorrect permissions

After install magento 2.3.5-p1 i got exception on setup page (in web setup). PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/magento2/var/page_cache" is not writable in /var/...
0
votes
1answer
23 views

Add to cart functionality is not working for any product

my add to cart not working, its showing nothing in cart for 2 stores and for 1 store adding a default product everytime, doesn't matter which product we added, its showing this exception.... We can't ...
0
votes
0answers
40 views

No CSS or JS in Magento 2.3.3 on Virtualbox/Vagrant in Windows 7 Host - Text File Busy

I have a Magento 2.3.3-p1 installed in VirtualBox/Vagrant guest on a Windows 7 host. The server setup is running Ubuntu 19.10 with Apache2, PHP 7.3 MYSQL, etc. Despite all my efforts I can only get ...
1
vote
2answers
2k views

Magento users/permissions web server & group

So a prior question led me to this, I am trying to use Magento2, (very frustrating) I have a VPS, with all the proper things for Magento2 to run. I can install it but have huge permissions issues, ...
1
vote
2answers
4k views

Magento 2: Backup failed, Error received from server

I try to install an extension and can't continue because my backup failed: Backup failed Error received from server: I setup file permission like this for shared hosting but it didn't help: http://...
0
votes
1answer
2k views

magento htaccess allow access specific folder

I want to access a folder in root directory in Magento like example.com/foldername but i got a blank page. So my question: how i can allow access specific folder in root directory in Magento using ...
0
votes
0answers
56 views

Magento 2: permissions keep resetting after running cli commands

I have Magento 2.3.4 installed on a test server with Ubuntu 18.04 + nginx + php7.2. The website displays fine, until I run cli commands (e.g. setup:upgrade, setup:di:compile) that result in newly ...
-1
votes
1answer
27 views

what are the proper chmod settings for the Media folder?

Magento 1.9.x We were troubleshooting something and changed the permissions on the Media folder. What are the proper chmod permissions on Media, var and the log (in var) folder?
1
vote
4answers
2k views

Sorry, you need permissions to view this content

I have created a admin user by below command. php bin/magento admin:user:create --admin-user="admin1" --admin-password="admin@123" --admin-email="admin1@gmail.com" --admin-firstname="fname" --admin-...
0
votes
1answer
26 views

chcon -R -t httpd_sys_rw_content_t /var/www/html/magento/ SAFE?

to fix an issue in Magento I found this solution here on Stackexchange: I used this command line in Putty: So after that I could fix the issue.
0
votes
2answers
23 views

I'm going crazy with the folder permissions! in magento 2

hello guys in my case when I want to run any command like 'bin/magento setup:upgrade && bin/magento cache:clean && bin/magento cache:flush ' or bin/magento setup:di:upgrade , it always ...
0
votes
2answers
680 views

Magento 2.1.6 - cronjob only working if i run commands not by schedule

I have gone through many pages regarding setting up cron correctly, whilst magento passed the readiness check on an extension install for cron, it still does not seem to run unless i run this command: ...
0
votes
1answer
33 views

Permission on OpenLiteSpeed Server localhost with Magento 2

I'm using CentOS 8 as my OS on my laptop and currently running OpenLiteServer (lsphp73) and have been successfully installed phpmyadmin and magento 2.3.4. Then, it comes with a problem that everytime ...
2
votes
2answers
863 views

(Pre-installation) ownership and permissions problems (CentOS / NGINX)

This is my first time installing Magento and I feel quite stupid getting stuck so early in the proces. I followed the official documentation to install Magento 2.3 by the book. Fresh CentOS 7 ...
4
votes
7answers
9k views

Magento 2: Permission issue with generated directory

I'm having issues installing a theme due to the 'generated' directory not generating all of the files that need to be generated after I run command: php bin/magento setup:upgrade Which I think is ...
1
vote
0answers
27 views

Change Action from Edit to View for product in magento 2 admin panel

I have different users with different user roles. I want to change the Edit option to View only for the users who have not added this product. see attach image How can I do that? Allowing Edit ...
0
votes
2answers
31 views

How can I use ssh command using php script as root user?

I am working third party integration for which new files generating automatically when my code is running. But it required permission after creating the file. I want to give the permission as a ...
21
votes
15answers
36k views

Missing write permissions in directory pub/static when run bin/magento setup:upgrade

The day before, I updated a new module and it was working normally. Now, when I run bin/magento setup:upgrade, I receive the below Exception. I tried setting permissions to 777 (or 770) for the pub ...
2
votes
2answers
567 views

Magento 2 - Session based authentication doesn't work

I don't know if this is a bug in Magento 2 API or not, so I didn't post it on Magento 2 Github issues. According to this link: http://devdocs.magento.com/guides/v2.0/get-started/authentication/gs-...
3
votes
2answers
3k views

I am getting error of page_cache is not writable in magento 2.2.5 in linux os

I am trying to add a grid in admin side. I am getting this error Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/opt/lampp/htdocs/magento2.2.5/var/page_cache" is not writable in /opt/lampp/...
3
votes
2answers
10k views

Getting “Command line user does not have read and write permissions on var/generation directory” when trying to access php bin/magento

Trying to get a basic grasp of ssh and cli on Magento 2.1 to "easily" install themes and extensions, but I'm dead in the water from the get go. I have a working version of 2.1 running on a VPS. Ran ...
0
votes
1answer
63 views

Permanent solution for magento 2 permission issue after cache flush

Whenever i flush cache i have to give permission to the folder. what is the permanent solution for this issue.
0
votes
0answers
17 views

Error After Installing Website in magento 2 js

I just installed magento 2 and I come across a bug that won't let me get lost on my admin page i use : Nginx Php7.2 Varnish 4 and Percona Server on Debian 9 I believe the problem is in the ...
7
votes
5answers
25k views

Magento installation: Getting Fatal error

I am facing a issue while trying to install magento. I am getting the following errors. Plz can any one help me...! OS: Ubuntu 16.0.4 apache: 2.4.18 php: 7.0.8 mariaDB: 10.1.16 Fatal error: Uncaught ...
1
vote
1answer
38 views

Magento 1.9 - User Roles Permission return Fatal error

If i click System -> Permission -> Roles if i click any of roles return following error, Fatal error: Class 'Mage_Cmsmquickview_Helper_Data' not found in /home/abc/public_html/app/Mage.php on line ...
2
votes
0answers
55 views

How do I execute Magento 2 CLI commands using a custom script?

I had created a custom script which update my database. After completion of database update, I want to execute the Magento CLI commands by adding custom functions in my custom script. The script ...
1
vote
0answers
16 views

Root taking ownership of generated files. Plesk CP

I hope someone here can offer me some guidence. I have recently switched all my accounts from cPanel / WHM to Plesk and part of this was an active development of a Magento 2.3.2 site. Since moving ...
2
votes
1answer
539 views

products disappear from category page or search result, index error cluster_block_exception

Products sometimes disappear from the category pages in the frontend. It might be after reindex, or clear cache. If i go to magento admin panel->catalog-> and highlight the category, make some changes,...
1
vote
2answers
1k views

Unable to delete Magento 2.0.7 image cache

When I try to Flush catalog images cache I get the following error The file /home/shaffersuiting/public_html/project/pub/media/catalog/product/cache/1/swatch_image/30x20/...
0
votes
1answer
147 views

Magento 1 ACL - access denied even though user has ALL rights (not admin rights)

I added a new user which has ALL rights. However, he can't open the site in admin under Catalog -> Manage Attachments. URL: /fileuploader/adminhtml_fileuploader/index/key/ I already logged the ...
0
votes
1answer
55 views

Magento2 - Cron readiness check failure

Cron is not working properly showing error in /var/www/domain.com/var/log/update.log [2019-09-25 07:07:02] update-cron.ERROR: Cron readiness check failure! Found non-writable paths: /var/www/...
0
votes
0answers
29 views

Magento 1.9 : Admin How to check a user has a particular permission?

How we check an admin user has a particular permission. Am not talking about the logged-in admin user. If we have an array of user-ids For example: $users I need to do the following: foreach($users ...
1
vote
3answers
806 views

Cant access images in /pub/media/customer

I have added custom attribute for profile image upload. Now when i access customer image on front end it shows 404 error and donot access images in this folder /pub/media/customer .
0
votes
0answers
53 views

Magento 1.9 : How can I add a button in admin role edit form?

I need a custom functionality "Duplicate Role" in Admin > System > Permissions > Roles > Edit. How can I add an extra button in this form? Any help will be appreciated. Thanks in advance.
0
votes
0answers
11 views

Magento 1 : Is it possible restrict admin user view only selected store details by using observer or anything?

How can i restrict admin user view only selected store details by using observer or anything?
2
votes
1answer
290 views

Magento 2.3.2 : Site is down every time I install a new extension

Whenever I upload a new extension to my app/code folder, the site goes systematically down. I upload it using the magento user so there is no owner issue. I am in production mode. More specifically ...
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 ...
0
votes
0answers
98 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
3answers
2k views

Uncaught RuntimeException: Can't create directory

Environment: Magento2 2.2.5 / PHP 7.0.28 Fatal error: Uncaught RuntimeException: Can't create directory /opt/lampp/htdocs/Procfit-Institucional/generated/code/Magento/Framework/App/...
0
votes
0answers
13 views

Problem with menu and permission for module

Why my module is not displayed in system->permissions->roles example adminhtml.xml one of the modules (module purchasemanagement) I need them to appear in permission too Maybe I didn’t do ...

1
2 3 4 5 6