Help - Search - Members - Calendar
Full Version: Uploading Files = 500 Internal Server Error
Movable Type Community Forum > Using Movable Type > Entries and Archives
jbrotherlove
I've seen similar posts about this but nothing that helps. I am trying to resolve an issue with Movable Type on behalf of a friend. She's been using it for years but around February, started getting a 500 Internal Server Error whenever she tries uploading files using MT Upload File.

It's the typical:

CODE
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@lynnedjohnson.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


The MT Activity Log isn't showing any errors and I haven't found anything in the server logs. I'm no expert at reading them, so I may have missed it.

The kicker: When I check via FTP, the files actually upload. However, the 500 Error prevents her from being able to copy the code so images have to be hand-coded. Does anyone know how to resolve this or know what questions I should ask the webhost? Any help you can provide is greatly appreciated.
danwolfgang
Try specifying a different TempDir. Lately, more and more hosts seem to be giving the server's temp directory insufficient permissions.

http://www.sixapart.com/movabletype/docs/3...ves/#entry-7058

Be sure to actually create the directory you list in mt-config.cgi, and be sure it has adequate permissions (777, to be safe).
jbrotherlove
Thanks for responding dwolfgang. That sounds like a good culprit but I can't get your solution to work.

I created a replacement TempDir in a few places, changed the permissions to 777 each time, and made the notation in mt-config but nothing has changed. Incidentally, if I try to upload the same file, I'm given the option to rewrite. If I answer "yes", I still get the same 500 error when it tries to upload.
carmige
I had this happen to me, a few MT versions ago. It was determined that the Image::Magick module had been removed from the server I was on with my host. My host added the module back to the server, and the 500 error went away.

Perhaps, this is something you can look into with the host. Good luck!
jbrotherlove
Thanks carmige! The host (Lunarpages) was notified and this was their response:

QUOTE
At Lunarpages, our servers are setup to use suPHP to parse
php pages as CGI instead of an Apache module. If you are
running a PHP-based script on your site and are receiving a
500 and/or 404 errors on your pages, it is likely you have
one or more of the following occurring:

1. The permissions on some of the folders or files are 777 or
666. If this is the case, change them to either 755 or 644
in Cpanel's File Manager (or using your local FTP client).

2. The files and/or folders are not owned by you. Certain
applications having been run under php as an apache module
may have files owned by the apache user of nobody. An
indication that you don't own the files would be if you are
unable to change their file permissions. To correct this,
please provide your username or domain name, and provide the
location of the folder or files that need to have your ownership.

3. Your .htaccess file has php_values or php_flags in it.
This causes a 500 Internal server error when attempting to
execute the script.

The php_values and php_flags will need to be removed from
your .htaccess file (please make a backup of the .htaccess by
copying its contents and saving it on your desktop as
htaccess.txt). Take the contents removed from .htaccess and
place it into a file you create called php.ini. Remember to
remove the php_flag and php_value part before the directives
as php.ini files do not require those in front of the values.
You can always make the changes and ask us if the changed
files are correct.

Because php.ini values are not shared across directories, you
would need a separate php.ini file in each folder that has
.htaccess or that requires the php_values or php_flags. In
order to avoid doing this, you can place a line in the
.htaccess file in your public_html folder to have all values
in your public_html php.ini to be shared across all folder.

Obviously, this isn't much help to me. I did create other directories, assigning them 755 as they suggested. And it worked... for two uploads. Then I started getting the same 500 error again.

Very frustrating.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.