PHP IMAP

I test some webmail scripts and i have this error:

PHP module imap is required ..

Installing package php55-php-imap ..
Installing package(s) with command /bin/yum -y install php55-php-imap ..

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.airenetworks.es
 * extras: mirror.airenetworks.es
 * updates: mirror.airenetworks.es
No package php55-php-imap available.
Error: Nothing to do

.. install failed!

Installing package php55-imap ..
Installing package(s) with command /bin/yum -y install php55-imap ..

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.airenetworks.es
 * extras: mirror.airenetworks.es
 * updates: mirror.airenetworks.es
No package php55-imap available.
Error: Nothing to do

.. install failed!

Module is not available even after installation!

Is it possible that some repository is missing?

Status: 
Active

Comments

Howdy -- I believe you had migrated your domains from another server.

On that other server, had you setup alternate PHP versions?

If so, it sounds like your domains are still attempting to use that other PHP version. You could always reconfigure them to use the PHP version available on your CentOS server.

Alternatively, you could also setup the same PHP version(s) that you had on your previous server.

I create a new domain called "test" and the result is the same...

PHP module imap is required ..

Enabling module in PHP configuration ..
.. done

Installing package php55-php-imap ..
Installing package(s) with command /bin/yum -y install php55-php-imap ..

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.airenetworks.es
 * extras: centos.uvigo.es
 * updates: mirror.airenetworks.es
No package php55-php-imap available.
Error: Nothing to do

.. install failed!

Installing package php55-imap ..
Installing package(s) with command /bin/yum -y install php55-imap ..

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.airenetworks.es
 * extras: centos.uvigo.es
 * updates: mirror.airenetworks.es
No package php55-imap available.
Error: Nothing to do

.. install failed!

I'm not a linux expert but i think the command say that can not install packages php-imap because not find in the repository,

Do you want us to look at something else ??

And they say me virtualmin when check the config -> The following PHP versions are available : 5.4.16 (/bin/php-cgi), 5.5.21 (/opt/rh/php55/root/usr/bin/php-cgi)

What is the output of these two commands:

yum search php55
ls /etc/yum.repos.d

[root@hosting ~]# yum search php55 Complementos cargados:fastestmirror Loading mirror speeds from cached hostfile * base: mirror.airenetworks.es * extras: centos.uvigo.es * updates: mirror.airenetworks.es ============================== N/S matched: php55 ============================== php55-php-debuginfo.x86_64 : Debug information for package php55-php php55-php-pecl-jsonc-debuginfo.x86_64 : Debug information for package : php55-php-pecl-jsonc php55-php-pecl-memcache-debuginfo.x86_64 : Debug information for package : php55-php-pecl-memcache php55-php-pecl-mongo-debuginfo.x86_64 : Debug information for package : php55-php-pecl-mongo php55-runtime.x86_64 : Package that handles php55 Software Collection. php55-scldevel.x86_64 : Package shipping development files for php55 php55.x86_64 : Package that installs PHP 5.5 php55-build.x86_64 : Package shipping basic build configuration php55-php.x86_64 : PHP scripting language for creating dynamic web sites php55-php-bcmath.x86_64 : A module for PHP applications for using the bcmath : library php55-php-cli.x86_64 : Command-line interface for PHP php55-php-common.x86_64 : Common files for PHP php55-php-dba.x86_64 : A database abstraction layer module for PHP applications php55-php-devel.x86_64 : Files needed for building PHP extensions php55-php-enchant.x86_64 : Enchant spelling extension for PHP applications php55-php-fpm.x86_64 : PHP FastCGI Process Manager php55-php-gd.x86_64 : A module for PHP applications for using the gd graphics : library php55-php-gmp.x86_64 : A module for PHP applications for using the GNU MP : library php55-php-intl.x86_64 : Internationalization extension for PHP applications php55-php-ldap.x86_64 : A module for PHP applications that use LDAP php55-php-mbstring.x86_64 : A module for PHP applications which need multi-byte : string handling php55-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL : databases php55-php-odbc.x86_64 : A module for PHP applications that use ODBC databases php55-php-opcache.x86_64 : The Zend OPcache php55-php-pdo.x86_64 : A database access abstraction module for PHP applications php55-php-pear.noarch : PHP Extension and Application Repository framework php55-php-pecl-jsonc.x86_64 : Support for JSON serialization php55-php-pecl-jsonc-devel.x86_64 : JSON developer files (header) php55-php-pecl-memcache.x86_64 : Extension to work with the Memcached caching : daemon php55-php-pecl-mongo.x86_64 : PHP MongoDB database driver php55-php-pgsql.x86_64 : A PostgreSQL database module for PHP php55-php-process.x86_64 : Modules for PHP script using system process : interfaces php55-php-pspell.x86_64 : A module for PHP applications for using pspell : interfaces php55-php-recode.x86_64 : A module for PHP applications for using the recode : library php55-php-snmp.x86_64 : A module for PHP applications that query SNMP-managed : devices php55-php-soap.x86_64 : A module for PHP applications that use the SOAP protocol php55-php-xml.x86_64 : A module for PHP applications which use XML php55-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC : protocol rhscl-php55-epel-7-x86_64.noarch : PHP 5.5.21 Repository Configuration

Nombre y resumen que coinciden con y sólo , use "buscar todo" para todo.

[root@hosting ~]# ls /etc/yum.repos.d CentOS-Base.repo CentOS-Media.repo virtualmin.repo CentOS-CR.repo CentOS-Sources.repo webmin.repo CentOS-Debuginfo.repo CentOS-Vault.repo CentOS-fasttrack.repo rhscl-php55-epel-7-x86_64.repo

Its better option update php to php7 ??

Ah, it looks like the issue is that there isn't an IMAP module in that alternate repo.

If that's the case, it's unlikely that there would be an IMAP module for PHP 7 either.

Is it an option to use the version of PHP that comes with your distro for this particular application? Your distro would have a PHP IMAP module available to it.

Yes i think too before but how can i solve that ??? I have Centos 7 x64 last version update, what repo can i add or other solution ??? PLEASEE !!!

Were you able to try my suggestion above? That is, can you use the standard version of PHP that comes with CentOs 7?

Using that should enable you to install the PHP IMAP module.

You can change the PHP version being used by this domain by going into Server Configuration -> PHP Versions.

I change 5.5.21 to 5.4.16 default and this is the result :-(

Found http://scripts.virtualmin.com:80/hordewebmail-1.2.11.tar.gz in cache ..

Installing PHP Pear module Mail .. .. installation complete.

Installing PHP Pear module Mail_Mime .. .. installation complete.

Installing PHP Pear module DB ..

WARNING: "pear/DB" is deprecated in favor of "pear/MDB2" pear/DB requires package "pear/PEAR" (version >= 1.10.0), installed version is 1.9.4 No valid packages found install failed

.. failed to install!

Ah, I have bad news about Horde.

It's very unlikely to work, especially on a newer distribution.

We're looking into removing it entirely as an Install Script.

The problem is that after version 3.3, they made some changes so that it wasn't able to install into a particular domain as an Install Script. They're instead expecting it to be installed system wide, which isn't compatible with our install Script system.

Unfortunately, version 3.3 was over 5 years ago now, and that version is very old. There are compatibility issues with more modern software, along with the potential for security issues to exist.

My suggestion would be to either use a different webmail app, such as RoundCube, or if you really want Horde, you could always manually install it in the system wide manner that it's looking for.

Thank you andreycheck, i am trying some scripts to have a "little-exchange server" option, i want it share my calendar, contacts and tasks with my phone or with my mail client software like Outlook, do you have any other recommendation ???

Horde blacklisted ;-)

We don't dislike Horde, and a lot of people do enjoy using it, it's just not able to install into a specific domain.

A lot of people like using Zimbra, but that's designed to run on a dedicated server.

I know some users have discussed exactly what you're looking into, but I don't recall what they settled on. You could always post a note in the Forums though asking if folks there have software suggestions.