Title: 500 Internal Server Error &#8211; upload.php
Last modified: August 24, 2016

---

# 500 Internal Server Error – upload.php

 *  [jb_1985](https://wordpress.org/support/users/jb_1985/)
 * (@jb_1985)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/)
 * Hello,
 * trust me, I have read all of the previous threads how to deal with this. Nothing
   helped and my host says it’s a programming error. So please, please, is there
   anyone out there who can help me with the following?
 * I have installed WP 4.2.1 for the third time, including deleting and setting 
   up new databases every time. I go to themes, install themes, upload, choose the
   correct .zip (uploading it worked on other WP sites), press install, it uploads
   to 100%, reloads – 500 Internal Server Error. My errorlog says Premature end 
   of script headers.
 * So I try with different themes, all of them purchased on themeforest and happily
   running on other websites. Doesn’t work either.
 * My PHP version is 5.4, I also tried 5.5 and 5.6 without success. My .htaccess
   is fine. I have exchanged both wp-includes and wp-admin folders entirely at least
   four times by now. My PHP memory is not exceeded.
 * What on earth am I missing???
 * Thank you in advance. I am desperate.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/#post-6082086)
 * Internal server errors (error 500) are often caused by plugin or theme function
   conflicts, so if you have access to your admin panel, try deactivating all plugins.
   If you don’t have access to your admin panel, try [manually resetting your plugins](https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, try switching to the Twenty Fourteen theme
   to rule-out a theme-specific issue. If you don’t have access to your admin panel,
   access your server via [FTP or SFTP](https://codex.wordpress.org/FTP_Clients),
   navigate to `/wp-content/themes/` and rename the directory of your currently 
   active theme. This will force the default theme to activate and hopefully rule-
   out a theme-specific issue.
 * If that does not resolve the issue, it’s possible that a `.htaccess` rule could
   be the source of the problem. To check for this, access your server via FTP or
   SFTP and rename the `.htaccess` file. If you can’t find a `.htaccess` file, make
   sure that you have set your FTP or SFTP client to view invisible files.
 * If you weren’t able to resolve the issue by either resetting your plugins and
   theme or renaming your .htaccess file, we may be able to help, but we’ll need
   a more detailed error message. Internal server errors are usually described in
   more detail in the server error log. If you have access to your server error 
   log, generate the error again, note the date and time, then immediately check
   your server error log for any errors that occurred during that time period. If
   you don’t have access to your server error log, ask your hosting provider to 
   look for you.
 *  [MIHIRBABU](https://wordpress.org/support/users/mihirbabu/)
 * (@mihirbabu)
 * [11 years ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/#post-6082099)
 * Hello,
 * Once I got the same error in uploading media files to one of my word press site.
 * I just change the file name to only text (Without using any special character)
   and able to upload that.
 * I have no so much idea on working with codes. May be It will help you to solve
   your problem at this case. Then you try to search the actual problem and resolve
   that.
 * Thanks.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/#post-6082102)
 * Ah, if that were the case it could have been a server-side security filter, like
   mod_security, misinterpreting the file as code.
 *  Thread Starter [jb_1985](https://wordpress.org/support/users/jb_1985/)
 * (@jb_1985)
 * [11 years ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/#post-6082104)
 * Hi guys,
 * thanks for all the tips so far! As I said, unfortunately I have tried all of 
   your suggestions before, James. But it’s good that now there is a thread where
   all of them are in one post for others to find! 🙂
 * Mihirbabu, that’s an interesting approach, however this wasn’t my issue. The 
   author of my theme had a look at my server settings and he found out that my 
   PHP memory is too small. My client’s website runs on PHP 5.4 with only 64M memory.
   He told me that today’s standard is 128M and that he recommends at least that
   for his and other themes to run properly. 64M apparently is a very unusual configuration
   these days.
 * I managed to upload another theme via FTP and it worked. However, when working
   with it, the website constantly crashes with a 500 error. Now it seems like it
   just can’t handle the amount of data that is being uploaded when I change, for
   example, the font of my H1. So I think that’s the solution for my problem.
 * Right now, I am trying to convince my host to grant me more memory – let’s see
   how they respond.
 * Thanks everybody for your help!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/#post-6082106)
 * > As I said, unfortunately I have tried all of your suggestions before, James.
 * Ok, so what does your server error log say at the time of the error? Because 
   that’s one of the suggestions. 😉
 *  Thread Starter [jb_1985](https://wordpress.org/support/users/jb_1985/)
 * (@jb_1985)
 * [11 years ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/#post-6082188)
 * As I wrote in my original post: Premature end of script headers 🙂
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/#post-6082189)
 * Oh, that’s all it says? Nothing more specific to the error in the log?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘500 Internal Server Error – upload.php’ is closed to new replies.

## Tags

 * ["internal server error"](https://wordpress.org/support/topic-tag/internal-server-error/)
 * [premature end of script headers](https://wordpress.org/support/topic-tag/premature-end-of-script-headers/)
 * [update.php](https://wordpress.org/support/topic-tag/update-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/500-internal-server-error-uploadphp/#post-6082189)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
