Magento: How to Solve 500 Internal Server Errors

When trying to take back-up many of us face Magento 500 Internal Server Error (Error type 500). We will try to list most easiest solutions for your to solve the Magento 500 Internal Server Error quickly.

Magento 500 Internal Server Error is caused when we are trying to take back-up via Magento admin panel. Backup system in Magento 1.6 and later has an unfortunate feature which changes certain file/folder permissions which cause this issue.

These errors are not always caused by the same reason. You should try to take a look at your server’s error logs to get some help about this error.

You can get additional info about the errors by Turning on Developer Mode. Look in the Magento bootstrap file (index.php), you’ll see lines similar to the following

#Mage::setIsDeveloperMode(true);
#ini_set(‘display_errors’, 1);

Uncomment these. In a production system, you’d never want to have your errors display to the browser, but while developing having an errors and warnings thrown immediately in your face is invaluable. This way, you will see the actually problem which lead to the Internal Error Server. In almost cases, the reason is that there is an exception throw after output is sent to browser.

Solution #1

This error might be caused because you have not set the correct permissions for the magento folders. To solve this go to File Manager and then change the file permission of index.php file from 664 to 644.  Also change the permissions of downloader/index.php file to 644 as well otherwise when you will try to access System > Magento Connect >Magento Connect Manager (after magento installation) by logging to magento admin,  you will get 500 Internal Server Error.

You can also try this tool, it’s a magento cleanup utility. It will set the correct permissions for your complete magento installation:

  1. Download it
  2. Unzip magento-cleanup.php to the root directory of your magento installation
  3. Browse to http://yourdomain.com/magento/magento-cleanup.php

Solution #2

Your server does not support some of the magento specifications. You can easily test this using the magento check utility. Follow the steps below to check your server’s software, if there is an incompatibility this utility will show it.

  1. Download it
  2. Unzip magento-check.php to the root directory of your magento installation
  3. Browse to http://yourdomain.com/magento/magento-check.php

Solution #3

If you are getting weird 500 internal server errors on specific pages of your site, it might be a matter of resources. I was getting internal server erros on some product pages and on the http://yourdomain.com/checkout/onepage. I found out that the .htacess file of my magento installation was somehow reset and the php_value memory_limit value was set to 32M as soon as I raised it, the internal server errors vanished! You should use at least 256M for over 600-700 SKUs. Magento is very resource hungry and it is easy to get these kind of errors if you try to save some bucks from the hosting.

Solution #4

Htaccess file which is located at Magento root folder. It will be this case if you meet Internal Server Error on every page. Try to remove it for testing purpose
If your website was running file for a long time, then it must be a change at Server side, just submit a ticket to Hosting Company.

Solution #5 (Comment from Huberto)

If the curl extension is missing you can get 500 Internal server error. You can install it using the command below:
apt-get install curl libcurl3 libcurl3-dev php5-curl

Magento: How to remove “index.php” from the URL

When we build a new Magento site, we see all urls with “Index.php” in it. Often times it gets frustrating and people cant find a simple way of removing it to make url more tidy and SEO friendly. Today we are going to learn the easy way of removing “index.php” from Magento website url.

Now, let’s learn how to remove ‘index.php’ from the website URL:

  1. Go to System->Configuration tab:
  2. Then click “Web” tab under “General” on the left hand side of your admin panel. 
  3. Now set the “Use Web Server Rewrites” option under “Search Engines Optiomization” to “Yes”.
  4. Then, set the “Use Secure URLs in Frontend” option under “Secure” to “Yes”. Click “Save Config” button in the top right:
  5. Now we need to create an .htaccess file with the rewrite directives in the root of your Magento installation. Using FTP software (Filezilla), login to your website FTP and look for .htaccess file, once found, open it:  

PLEASE MAKE SURE TO BACK-UP YOUR .htaccess FILE BEFORE MAKING ANY CHANGES.

Now put the following code in the created file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

In case your Magento is installed in sub-folder, e.g. ‘shop’, you should use the following code:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /shop/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /shop/index.php [L]
</IfModule>


Save the file and check your website.

The “index.php” from Magento website url should be removed now.

OptinMonster Review: Increase your email opt-ins by 495%

OptinMonster-Review

Do you know what it takes to build an email list?

It comes down to this:

Enable your readers to easily subscribe and offer your readers a valuable thing (it can be anything, a report, an ebook, etc) for free

Here is the most important part that people miss:

The unknown truth is that however if you are willing to make it easy for your readers, it should be easy for you too.

There is no point of messing around and spending hours of your valuable time tinkering with email optins that are not out dated and difficult to handle, when you have everything that you need in one place

This is where OptinMonster comes in, a powerful platform that could just make everything easier for both you and your readers. (more…)

How To Make SEO Friendly URL In Opencart

In this tutorial, we are going to learn howto make SEO friendly url in OpenCart. A lot of folks out there are facing issues with Opencart SEO urls, so today I have written a post for you. Lets jump in :)

Step 1 : Rename your OpenCart .htaccess.txt file

“.htaccess.txt” file is named as “.htaccess.txt” by default for servers that might not support .htaccess file, or for those who simply don’t wish to activate it.

You need to activate your .htaccess.txt file. To do this, you simply have to remove the “.txt” file extension from the file name, so it will be “.htaccess” only.

Once done, you are one step done to your Opencart SEO friendly URLs.

(more…)

How To Build An Online Store For Free

If you are starting out and you are not sure how to start your own online store for free, this tutorial is for you :)

 

Open Source E-commerce Solutions

1. OpenCart :

Opencart is by far the best open-source eCommerce solution for you if you are looking to start out to something around a fairly medium sized eCommerce store. When I say medium sized, Opencart is capable of handling thousands of products with tons of categories.

The reason why I prefer Opencart over other open source eCommerce solutions is, Opencart offers a very easy to use interface or would be more precised if I say a easy to use administration back-end.  (more…)