I am getting an http 500 error when using uploadify on Ubuntu.
The server has write permissions on the folder. Same code works on windows local machine.You can see the html and the actua开发者_如何学运维l error here: beta DOT my-calendar DOT gr/calendar/upload-photos
I think you should look at your webserver's log for explanations of the 500 (Internal Server Error) error. On Ubuntu this log can be found at /var/log/apache2/error.log
.
As far as I could see it's Zend Framework's error, not uploadify. It returns 500 even when trying to upload using plain input type="file"
It is possible that the Apache / Zend server on the Ubuntu system has been confined with the AppArmor mandatory access control mechanism; perhaps the server is not allowed to write files due to the AppArmor policy, even if the standard Unix discretionary access control policy would otherwise allow the file write.
In a root shell, run aa-status
to see which profiles are loaded, and which programs currently running are confined. Perhaps your Apache is confined, perhaps Zend is confined. (I'm pretty unfamiliar with zend, so if it is an Apache module, just check for Apache. :)
Check with phpinfo() if mod_security is enabled. If so, that's a probable cause, you can disable it in a .htaccess file:
SecFilterEngine Off
SecFilterScanPOST Off
In case there was a usage of 3rd party libraries (e.g. GD for image manipulation using PHP) in the method handling the POST on the server side, please make sure that you have appropriate extensions loaded (e.g. yum install php-gd
for RHEL/CENTOS).
精彩评论