Can’t open file package.xml for writing. Permission denied in Magento Connect
Sometimes when you are trying to install an extension in Magento Connect you will see the following error in the terminal window:-
Can’t open file package.xml for writing. Permission denied.
This just refers to the temporary package not being writeable and in order to resolve, you will need to set all files and folders in the following location to chmod 777.
/var/package/tmp