I have a Ubuntu server running in an ESV VM emvironment and I've installed a webserver with this configuration:
- Nginx 1.0.5
- PHP 5.3.6 with PHP-FMP
- Mysql 5.1.62
I have an installation of latest version of joomla on this server and when I try to upload an install package (zip file containing joomla's extension files) I get "502 Bad Gateway" with the following error in nginx log file:
2012/05/13 11:22:21 [error] 19911#0: *20 upstream sent invalid status "-1 Copy failed" while reading response header from upstream, client: 10.10.56.70, server: localhost, request: "POST /administrator/index.php?option=com_installer&view=install HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "radio.xx.xx", referrer: "http://radio.xx.xx/administrator/index.php?option=com_installer"
I've searched all over the internet and I've changed too many parameters of php configuration, fpm config and nginx config including increasing execution times and etc but my problem still remains. I'm pretty sure it has nothing to do with my Joomla and problem is in webserver but there's no usable log messages, except above message.
Can anyone help me with this problem?
error_log = log/php-fpm.log
to your/etc/php5/fpm/php5-fpm.conf
file. PHP might yield something... but, have you checked permissions/owner of the upload directory? If the permissions/owner is off, PHP won't be able to upload the file and save it out, which would make sense because of the "-1 Copy failed" error.