cancel
Showing results for 
Search instead for 
Did you mean: 

New installation magento 2.3 error 500

SOLVED

New installation magento 2.3 error 500

I have just installed Magento 2.3 on my server.

php version 7.3

I get an error 500 when i try to view site or access the admin

If i rename the htaccess file i get a page displayed but without any layout, its just text.

The debug log file says

lidate:  {"method":"GET","url":"https://markhuyton.co.uk/magento2/","invalidateInfo":{"identifier":"LOCKED_RECORD_INFO_BLOCK_198a535145bd34b3c50606dbeaed1542379744a1"}} []

web addess is https://markhuyton.co.uk/magento2/

 

thanks in advance

 

Mark

1 ACCEPTED SOLUTION

Accepted Solutions

Re: New installation magento 2.3 error 500

@markwhenwea946 

 

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 188416 bytes) in /home/mark/public_html/magento2/vendor/magento/framework/View/Model/Layout/Merge.php on line 804

 

 

 

Follow this for remove version

https://www.manishmittal.com/how-to-remove-deployment-version-number-from-static-content-file-paths-...

then run below commands:

php bin/magento deploy:mode:set developer
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f en_US
php bin/magento c:f

 

 

Manish Mittal
https://www.manishmittal.com/

View solution in original post

10 REPLIES 10

Re: New installation magento 2.3 error 500

Hi @markwhenwea946 ,

 

Your static content is not deployed properly.

Just run below commands in your ssh panel

 

1. php bin/magento setup:upgrade

2. rm -rf generated/* pub/static/frontend/*

3. php bin/magento setup:static-content:deploy -f

 

Hope this helps you!

Problem Sollved! Click Kudos & Accept as Solution!

Re: New installation magento 2.3 error 500

@markwhenwea946 

 

You will find below shared line in .htacess:

 

#RewriteBase /magento/

Just uncomment this line and change it to like:

RewriteBase /magento2/

After that just run below commands:

php bin/magento c:f
php bin/magento setup:static-content:deploy -f
Manish Mittal
https://www.manishmittal.com/

Re: New installation magento 2.3 error 500

Hi

 

Thanks for the reply, the htaccess file was renamed so i think this is why the content displayed as it did, i have changed it back and still get the error 500 message

 

Mark

Re: New installation magento 2.3 error 500

Please revert back .htaccess as it was earlier same and then change in htaccess same what i recommend.

 

Thanks

Manish Mittal
https://www.manishmittal.com/

Re: New installation magento 2.3 error 500

Hi Maish

 

That line was already in the htaccess file, without the #, does it need the #?

Re: New installation magento 2.3 error 500

@markwhenwea946 

 

Just replace magento to magento2, here magento2 is your folder name.

Manish Mittal
https://www.manishmittal.com/

Re: New installation magento 2.3 error 500

This is the line, it is already in the htaccess file i have not changed it

 

############################################
## you can put here your magento root folder
## path relative to web root

    RewriteBase /magento2/

############################################

Re: New installation magento 2.3 error 500

@markwhenwea946 

 

Looks good, still same issue?

Manish Mittal
https://www.manishmittal.com/

Re: New installation magento 2.3 error 500

yes, same issue