PHP fatal error permission denied

Hi, I have followed the instructions from the Mega Menu installation files but I am returning the following error

2019/09/18 12:29:54 [error] 29168#0: *3304016 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/var/www/vhosts/beta/app/code/Ubertheme/Base/registration.php): failed to open stream: Permission denied in /var/www/vhosts/beta/app/etc/NonComposerComponentRegistration.php on line 29
PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/beta/app/code/Ubertheme/Base/registration.php' (include_path='/var/www/vhosts/beta/vendor/magento/zendframework1/library:.:/usr/share/pear:/usr/share/php') in /var/www/vhosts/beta/app/etc/NonComposerComponentRegistration.php on line 29" while reading response header from upstream, client: 94.175.247.34, server: beta.xxxx.co.uk, request: "GET /admin_4676yy HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/beta-php-fpm.sock:", host: "beta.xxxx.co.uk"

 
I am assuming there’s a permission issue for one of the directories. Any help would be appreciated. Thanks

1 answer

Profile photo of Mall Staff 184060.00 $tone September 18, 2019
Public

Hi there,

It seems you got the issue with folders/files permission in your M2 folder. Please open your SSH terminal, go to M2 folder and run these commands:

find . -type d -exec chmod 755 {} +;
find . -type f -exec chmod 644 {} +;

Regards,
Mall.

#1

Please login or Register to Submit Answer

Written By

Comments