cancel
Showing results for 
Search instead for 
Did you mean: 

After Installation of Magento 2.4.1 - 500 Internal Server Error

After Installation of Magento 2.4.1 - 500 Internal Server Error

Hello Everyone, 

I successfully installed the Magento ver 2.4.1 via composer.

I renamed the .htacess and without renaming too, in both cases getting the internal server error while accessing the website or admin.

I tried with .htaccess.sample too after renaming as .htaccess

I already gave the file permissions via command, changed the permission of index.php 664 to 644

still no clue what is causing the problem

my url is http://dev.pretaluxe.com/

admin url is http://dev.pretaluxe.com/admin/

 

If anyone knows how to solve this please help me.

 

Thanks 

 

3 REPLIES 3

Re: After Installation of Magento 2.4.1 - 500 Internal Server Error

Hi@r k_shrivastaw2,
Are you using Apache or Nginx? Please check their logs.

Re: After Installation of Magento 2.4.1 - 500 Internal Server Error

Hi Muhib, I m using the apache server. 

My access log is following 

1.38.45.26 - - [22/May/2021:06:21:44 -0400] "GET /static/version1621678860/frontend/Magento/luma/en_US/Magento_Theme/favicon.ico HTTP/1.1" 404 - "http://dev.pretaluxe.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.45.26 - - [22/May/2021:06:21:48 -0400] "GET /admin HTTP/1.1" 404 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.45.26 - - [22/May/2021:06:23:43 -0400] "GET /admin HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.45.26 - - [22/May/2021:06:29:33 -0400] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.45.26 - - [22/May/2021:06:35:08 -0400] "GET /pub HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.45.26 - - [22/May/2021:06:35:43 -0400] "GET /pub HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.45.26 - - [22/May/2021:06:35:50 -0400] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
209.141.47.35 - - [22/May/2021:08:36:32 -0400] "GET / HTTP/1.0" 500 - "-" "-"
209.141.47.35 - - [22/May/2021:12:06:59 -0400] "GET / HTTP/1.0" 500 - "-" "-"
169.38.65.12 - - [22/May/2021:19:13:06 -0400] "GET / HTTP/1.0" 500 - "-" "-"
45.83.64.187 - - [22/May/2021:20:04:26 -0400] "GET / HTTP/1.0" 500 - "-" "-"
89.248.168.141 - - [23/May/2021:07:36:49 -0400] "GET / HTTP/1.0" 500 - "-" "-"
1.38.41.79 - - [24/May/2021:01:39:42 -0400] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.41.79 - - [24/May/2021:01:39:50 -0400] "GET /favicon.ico HTTP/1.1" 500 - "http://dev.pretaluxe.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.41.79 - - [24/May/2021:01:41:26 -0400] "GET / HTTP/1.1" 200 447 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.41.79 - - [24/May/2021:01:41:34 -0400] "GET /favicon.ico HTTP/1.1" 404 - "http://dev.pretaluxe.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
167.172.30.131 - - [24/May/2021:20:54:02 -0400] "GET / HTTP/1.0" 500 - "-" "-"
34.77.162.18 - - [25/May/2021:00:13:06 -0400] "GET / HTTP/1.1" 500 - "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com"
209.141.47.35 - - [25/May/2021:00:45:41 -0400] "GET / HTTP/1.0" 500 - "-" "-"
172.104.242.173 - - [25/May/2021:00:54:58 -0400] "GET / HTTP/1.0" 500 - "-" "-"
209.141.51.242 - - [25/May/2021:21:51:05 -0400] "GET / HTTP/1.0" 500 - "-" "-"
89.248.168.140 - - [25/May/2021:22:18:21 -0400] "GET / HTTP/1.0" 500 - "-" "-"
89.248.168.140 - - [26/May/2021:05:15:05 -0400] "GET / HTTP/1.0" 500 - "-" "-"
139.162.145.250 - - [26/May/2021:14:37:18 -0400] "GET / HTTP/1.0" 500 - "-" "-"
1.38.44.13 - - [27/May/2021:02:18:51 -0400] "GET /abc.html HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:26:00 -0400] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:26:08 -0400] "GET /favicon.ico HTTP/1.1" 500 - "http://dev.pretaluxe.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:26:08 -0400] "GET /admin HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:26:11 -0400] "GET /favicon.ico HTTP/1.1" 500 - "http://dev.pretaluxe.com/admin" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:28:30 -0400] "GET /admin HTTP/1.1" 404 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:28:38 -0400] "GET /favicon.ico HTTP/1.1" 404 - "http://dev.pretaluxe.com/admin" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:30:12 -0400] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:30:19 -0400] "GET /admin HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:31:29 -0400] "GET /admin HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:33:02 -0400] "GET /abc.html HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:36:29 -0400] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
1.38.44.13 - - [27/May/2021:02:36:39 -0400] "GET /index.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
209.141.47.35 - - [27/May/2021:03:10:07 -0400] "GET / HTTP/1.0" 500 - "-" "-"
162.243.213.195 - - [27/May/2021:04:36:48 -0400] "GET / HTTP/1.0" 500 - "-" "-"
162.243.213.195 - - [27/May/2021:04:36:48 -0400] "GET / HTTP/1.0" 500 - "-" "-"
162.243.213.195 - - [27/May/2021:04:36:48 -0400] "GET / HTTP/1.0" 500 - "-" "-"
162.243.213.195 - - [27/May/2021:04:36:48 -0400] "GET / HTTP/1.0" 500 - "-" "-"

Re: After Installation of Magento 2.4.1 - 500 Internal Server Error

Hi, 

 

Do not move to 2.4.1 without careful planning if you aren't already using the "server root is pub/" setup.

In the Magento 2.4.1 deployment the whole logic is changed to move the site document root to the pub subfolder. It is not mentioned in the changes at all (at least it wasnt 2 weeks after release) and the change is hidden in a "peformance" commit so it might be a surprise. The "installation" instructions have changed to say the pub subfolder must be the server root but there is no advice in the upgrade instructions or release notes.

Any custom rewrites that might have been in your magento main folder must be moved to the htaccess file in the pub folder

If your magento is installed in a subfolder, upgrade will break it. You either have to change your site to the new architecture (and stop using a subfolder - that's what I did in the end), experiment trial and error with rewrites to make it work, or manually revert the .htaccess out of the pub folder.

If you had other applications installed in subfolders in the site, it will also break them.

 

Your options:

  1. modify your site to use the new architecture (this means losing a path or making it virtual)

  2. revert those changes (at every upgrade)