cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix internal error 500 ?

How to fix internal error 500 ?

i have this error when i try to paster and run my controller URL. How to fix this issue i need help. Screenshot from 2022-07-14 15-40-55.png

2 REPLIES 2

Re: How to fix internal error 500 ?

Hello @annq3sivn4281 

 

Please follow below stpes:

 

php bin/magento deploy:mode:set developer


Solution 1: Change Magento File Permissions

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 chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml
chmod u+x bin/magento

Solution 2: Increase Memory Limit
For the .htaccess file, add the below lines of code
php_value memory_limit 1024M

For the php.ini file, add the below lines of code
memory_limit = 1024M

Solution 3: Disable Maintenance Mode

Solution 4: Run Magento 2 all commands 
rm -rf generated/*
rm -rf var/*
cd pub/static
rm -r adminhtml
rm -r frontend
cd ..
cd ..
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush

It may help you!
Thank you

Problem solved? Click Accept as Solution!

Re: How to fix internal error 500 ?

Hey @annq3sivn4281,

 

I have seen your query. 

 

For solving this error please refer to this blog:

https://magecomp.com/blog/fix-magento-2-500-internal-server-error/

 

This will definitely help you. 

 

Thank you.