Knowledgebase

How to fix an "Internal Server Error" after upgrading Magento with Magento Connect Manager

If you get Internal Server Error after you upgrade your Magento application using the built-in Connect Manager, the most likely reason for this is incorrect file and folder permissions. During the upgrade itself it's possible that the Connect Manager may change the permissions of files to 666 and those of folders to 777. You can fix this by changing the world-writable part of the permissions (represented by the last of the three digits) so that files have permissions of 664 (or 644) and folders have permissions of 775 (or 755). For more information on permissions and what each of the digits stands for check out the tutorial on file permissions.

There are a few ways you can fix permissions. We'll start with the easiest way which is available only to HostKnox customers:

  • HostKnox customers can fix the world-writable bit of the permissions of all files and folders on their Magento hosting account by using the feature Fix Incorrect Permissions of the Pixie control panel. In the Files section of the control panel there's a Fix Incorrect Permissions link in the black area on the right. Clicking on it will automatically change all 666 permissions to 664 and the 777 permissions of folders to 775.

The two basic ways to change permissions are to use an FTP client or to do it via SSH:

  • You can change file and folder permissions with an FTP client (e.g. FileZilla). For more information on how to do it check out the tutorial on file permissions.

  • Another way to change file and folder permissions is through SSH. In this particular case you can do this by executing a couple of commands. One for fixing the permissions of folders and another to fix those of files. For more information on this check out the article on changing file and folder permissions via SSH. At the bottom of the article you'll find a couple of example commands which are exactly the ones you need to fix this problem. If you don't know how to connect to your account via SSH, you may find useful the tutorial on connecting to your account via SSH for Windows users. You may also find useful the SSH articles in the knowledgebase.

Was this answer helpful?

 Print this Article

Also Read