Internal server error 500


landervs
Asked:
2013-05-21 3:17 pm EST

Hits: 744
Hi guys,

I'm the webmaster of the eargroup.net, i made the site on my own test server, but when i moved the site to the realtime server i was'nt able to upload any images anymore with jQuery axuploader.

I checked the error logs in cPanel, they give me an internal 500 error. I debugged with chrome, and the error occurs on this line: xhr.send(chunk);//send request of file

I also experimented with the permissions of the folders and scripts, without succes. Most of permissions are 755 or 644.

I hope you're able to read more detailled error logs and maybe help us to find the bug.

Sincerly,

Lander

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Thanks James, that was the solution! I removed the test scripts from both servers. Good job to you guys.

Lander
landervs
17 Points
2013-05-28 03:30 pm EST

OTHER ANSWERS

0

Arn
Staff
18,399 Points
2013-05-21 4:27 pm EST
Hello Landervs,

Typically, when you see a 500 internal server error there are a few common causes. Review the article I have linked for more specific information. Since you are moving files from one server to another, the issue may be either a permissions or ownership problem. I have run a script on the issue to see if it will fix your permissions issues. Check it now and let us know if the problem continues.

If you require further assistance, please let us know the exact steps for us to replicate issue and we will review it again on your site and server.

Regards,

Arnel C.

You must login before you can post a comment about this answer.

Yeah, like i mentioned in my first post, i already tried different chmod permissions without any succes. I rode your article before I posted this :).

I maded an duplicate of the script, you can find it here: http://eargroup.net/admin/test.php feel free to edit the script if needed.

The error occurs when you upload one or more images. (JPEG).

Sincerely,

Lander
landervs
17 Points
2013-05-22 2:40 pm EST
Hello Landervs,

I was reviewing the link that you sent, but I do not see any way to upload images when I use the link, unless I'm manually uploading with FTP or using the Cpanel file manager. Can you please provide the exact steps that you are taking to duplicate the issue that your'e facing?

Provide further information on this issue and we will be glad to further troubleshoot.

Thanks for your patience as we review this issue,

Arnel C.
Arn
18,399 Points
Staff
2013-05-22 3:55 pm EST
At the top of the page you have a button 'kies bestanden' to chose your jpg images, after you selected one or more images click on 'alles uploaden'. And the script will upload al the images. But for each Ajax post (for each image one ajax request) the server will return a 500 error.

Sincerely,

Lander
landervs
17 Points
2013-05-22 4:04 pm EST
Hi, did you already checked it?

Thanks,

Lander
landervs
17 Points
2013-05-26 9:24 am EST
Sorry for the delay in responding landervs.

I checked the code of your test.php and on line 26 the path is as follows.

return '../../../wwwuploads/albums/123456';

Try changing it to:

return '../wwwuploads/albums/123456';

The ../ is going to a folder location that does not exist. Also, the path on line 21 is missing also.

url:'includes/uploader/upload.php',

The includes/uploader/upload.php file is missing from the server. If you can upload that file and change the other path, assuming the code is correct, it should work.

Best Regards,
James R
jamesr
5,889 Points
Staff
2013-05-28 10:23 am EST
Dear,

I'm very sorry but all you suggestions I already tried before i was contacting those helpdesk. I'm scared the problem is server sided. To prove this, i uploaded a copy of test.php to anoter server supporting the same upload tool. If you upload any images from http://www.protolan.be/admin/test.php you will see them listed in http://www.protolan.be/wwwuploads/albums/123456

So the script works, but if i use the debug mode the servers repons a 500 internal error.

I used those script on many servers before, but it seems it won't work on your server.. I think you'll have to search for the bug somewhere server sided.

Keep me posted,

thanks,

Lander
landervs
17 Points
2013-05-28 12:26 pm EST
Sorry for the back and forth on this. The Internal Server Error turned out to be a Mod_Security error. You can disable Mod_security through your Modsec Manager in cPanel. We were able to get your script working. The other server you are on Must have mod_security disabled by default.

Best Regards,
James R
jamesr
5,889 Points
Staff
2013-05-28 3:16 pm EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!