cancel
Showing results for 
Search instead for 
Did you mean: 

Error 500 after installing magento

Error 500 after installing magento

 I've installed Magento OpenSource/Commerce 2.2.3 with Sample Data on a GoDaddy VPS solution. Installatron continually failed at the DB creation phase, so I uploaded the zip to the public_html folder and manually unzipped it.  No errors in the extraction process.

Now I get a 500 internal server error, even when I attempt to manually go to the setup URL to complete the installation/setup wizard.

A check of my cPanel Errors file returns this error:

"[Mon Mar 26 17:37:47.953235 2018] [core:alert] [pid 27278] [client 66.249.69.41:61375] /dir-snipped/public_html/.htaccess: Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration, referer: http://www.ibuildthings.com/"  

 

The ", referer: http..." portion doesn't always show up in the error."  I'm just typing the domain, or www(dot)domain, or domain/setup in my attempt to invoke the setup wizard for Magento.

Of course I'll be appreciative of any assistance that can be offered. Thanks!

1 REPLY 1

Re: Error 500 after installing magento

Hello steven_burns,

 

Magento internal server error 500 is a general HTTP status code in which something has gone wrong with the site's server, but the server could not identify the exact issue.

 

If you're facing Error 500 after installing magento, it can be because the server can't return the requested page. However, here are some causes for the error to occur,

 

  • Permission issues 
  • Memory limitation 
  • Issues in the .htaccess file 
  • Missing modules
  • Third-party plugin issues

 

To fix the error, you can follow the steps below:

 

For Magento 2, the Developer Mode will be enabled when you run the following command,

php bin/magento deploy:mode:set developer

Permission issues:

Misconfigured permissions are one of the most common reasons for the Magento server error 500,

 

  • Firstly, access the file manager of your Magento website.
  • Then, adjust the permission of the index.php file in the root.
  • Next, set index.php file permission from 664 to 644.
  • Now, change the permission of another index.php located in downloader/index.php
  • Lastly, modify its permission to 644

Increase PHP_VALUE MEMORY_LIMIT:

 

The error appears when your server lacks the resources to run Magento. Thus, Increase your PHP memory limit to resolve the issue,

 

  • Firstly, open the .htaccess file and find the following string:
php_value memory_limit 256M
  • Next, ensure that the value is at least 256M or better, 512M
  • Lastly, save the .htaccess file if edited the string value.

 

Rename .htaccess File:

 

If you find issues in the .htaccess file that caused the Magento 2 Error 500 on your website, try renaming the .htaccess file. Lastly, check the error logs in /var/log/httpd or /var/log/apache2. If there are other issues, you must correct the configurations to fix the issue. 

 

Install the CURL Extension:

One of the errors that you usually encounter is the missing CURL extension. It can also cause Magento 500 Internal Server Error. 

  • Installing the CURL extension is the easiest way to fix the error by running the following command:
yum install curl libcurl3 libcurl3-dev php5-curl
  • Lastly, restart httpd to confirm the changes.

 

Thus, I hope the above ways help you to fix Error 500 after installing magento.

 

-----------------------

Regards,
Rex M

VPS Hosting | Magento Hosting