0
I’m using a Linux (Ubuntu) virtual machine to develop a Cakephp project. I’ve installed everything he needs (Apache, PHP, Mysql, Curl, Git, INTL and Composer).
So far, so good, until I tried to create the Cakephp project with Composer. It simply stops and shows the message below:
[Composer\Downloader\TransportException]
Content-Length mismatch
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
I’ve researched several places, but it seems to be a kind of generic Composer problem, and so far I haven’t found anything that could help me. If anyone knows anything, please give me a hand. I appreciate.
Follow screenshot of Terminal error:
what version of php? checks if the mbstring extension is installed.
– Oliveira
I am using version 5.6 of PHP. I did not find the mbstring package to install by apt-get. How do I know if it is installed?
– André Ferraz
Executes the command
php -i | grep mbstring
orphp --re mbstring
orphp --ri mbstring
.– Oliveira
Seems to be installed. When I run the above command it shows several lines with values for
mbstring.detect_order
, mbstring.encoding..`, etc.– André Ferraz