As the website itself works as expected and the issue is connected with accessing Magento Admin dashboard, I would recommend you contact Magento Support
Please clarify with them which parameters should be fine-tuned in Plesk in case of a similar issue with 500 Internal Server Error, and provide me with their answer. I will assist you with applying the recommended steps
Solved! Go to Solution.
Hi @gloria_ lozinsk
you can run the following commands to start fixing the problem:
rm -rf var/page_cache var/cache var/composer_home var/generation var/di var/view_preprocessed php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento indexer:reindex php bin/magento indexer:clean
Give correct permissions to your directories:
All directories have 770 permissions. 770 permissions give full control (that is, read/write/execute) to the owner and to the group and no permissions to anyone else. All files have 660 permissions. 660 permissions mean the owner and the group can read and write but other users have no permissions.
Try to run these commands in SSH and your permissions should be sorted:
cd <your Magento install dir> find . -type f -exec chmod 644 {} \; // 644 permission for files find . -type d -exec chmod 755 {} \; // 755 permission for directory find ./var -type d -exec chmod 777 {} \; // 777 permission for var folder find ./pub/media -type d -exec chmod 777 {} \; find ./pub/static -type d -exec chmod 777 {} \; chmod 777 ./app/etc chmod 644 ./app/etc/*.xml chown -R :<web server group> . chmod u+x bin/magentoSet below values with php.ini file:
max_execution_time = 1800 max_input_time = 1800 memory_limit = 1024MIt may help you!
Hi @gloria_ lozinsk
you can run the following commands to start fixing the problem:
rm -rf var/page_cache var/cache var/composer_home var/generation var/di var/view_preprocessed php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento indexer:reindex php bin/magento indexer:clean
Give correct permissions to your directories:
All directories have 770 permissions. 770 permissions give full control (that is, read/write/execute) to the owner and to the group and no permissions to anyone else. All files have 660 permissions. 660 permissions mean the owner and the group can read and write but other users have no permissions.
Try to run these commands in SSH and your permissions should be sorted:
cd <your Magento install dir> find . -type f -exec chmod 644 {} \; // 644 permission for files find . -type d -exec chmod 755 {} \; // 755 permission for directory find ./var -type d -exec chmod 777 {} \; // 777 permission for var folder find ./pub/media -type d -exec chmod 777 {} \; find ./pub/static -type d -exec chmod 777 {} \; chmod 777 ./app/etc chmod 644 ./app/etc/*.xml chown -R :<web server group> . chmod u+x bin/magentoSet below values with php.ini file:
max_execution_time = 1800 max_input_time = 1800 memory_limit = 1024MIt may help you!