You need to install the 5.4 versions of those packages to match the version of php you are using.
]]>php-imap-5.3.3-49.el6.x86_64
php-ldap-5.3.3-49.el6.x86_64
You don't say what distro you are using.
If you are using Ubuntu or Debian, you will need to install the php-ldap and php-imap packages.
If you are using something else, you need to install the equivalent packages.
]]>The LDAP extension of your PHP parser isn't installed
Unable to use LDAP as external source of connection
Your PHP parser was compiled without the IMAP functions
Unable to use email server as external source of connection
I already install php 5.4
]]>