0

I have a form that sends data with some files

everything works on localhost but on the server when I send files with form I get error of

The (my site) page isn’t working

(my site) is currently unable to handle this request.

HTTP ERROR 500

I've already changed my php.ini and nginx conf to handle max post size and max file size and client_max_body_size

but still get the error

what is the problem?

Community
  • 1
  • 1
mohamadreza
  • 69
  • 1
  • 3

2 Answers2

0

Follow the quick points
1 Check .env file created properly OR not.
2 Check your error log for more detail about which error 500

Probably this is because of some error exist into your site.

AddWeb Solution Pvt Ltd
  • 21,025
  • 5
  • 26
  • 57
0

The error appears because of the lower version of PHP. Upgrade your PHP version in the Cpanel and create .htacces file and paste the following code.

  AddHandler application/x-httpd-ea-php71 .php .php7 .phtml
     RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>