Some install fixes

Hi,
Some fixes to the installation page.
- Protocol autodetection
- Fix issue with mysqli_fetch_all : it doesn't work on at least Debian wheezy.

To be merged in master and the 2.1.21 branch.