Recently we ran into a strange problem. One of our customers was unable to install symfony plugins using ‘symfony plugin:install’. He was getting the following output:

-bash-3.2# symfony plugin:install sfPhpunitPlugin
>> plugin    installing plugin “sfPhpunitPlugin”
>> sfPearFrontendPlugin Could not download from
>> sfPearFrontendPlugin “http://plugins.symfony-project.org/get/sfPhpunitPlugin/sfPhpunitPlugin-1.0.3.tar”
>> sfPearFrontendPlugin (File
>> sfPearFrontendPlugin http://plugins.symfony-project.org:80/get/sfPhpunitPlugin/sfPhpunitPlugin-1.0.3.tar
>> sfPearFrontendPlugin not valid (received: HTTP/1.1 404 Not Found
>> sfPearFrontendPlugin ))
>> sfPearFrontendPlugin Invalid or missing remote package file

Plugin “sfPhpunitPlugin” installation failed: Package “http://plugins.symfony-project.org/get/sfPhpunitPlugin/sfPhpunitPlugin-1.0.3.tar” is not valid

Notice that the extension of the package is .tar The extension should be .tgz actually.

The reason for this problem, not quite easy to find, is that PHP has no zlib extension installed. So either enable the extension or recompile PHP with zlib support. For this, include ‘–with-zlib’ in your configure line.