Master da Web
Back to Blog

Installing PHP IMAP (CentOS and Debian)

LucasJuly 23, 20121 min readUpdated on November 4, 2023

PHP’s IMAP functions allow you to operate with IMAP protocols such as NNTP, POP3 and local access methods.

If you are getting the error“Fatal error: Call to undefined function imap_open()...” when trying to use the IMAP function, it means that it is not installed in your PHP.

 

How to install the IMAP function in PHP?

 

To install the PHP IMAP function on CentOS, simply run the following command in SHELL:

yum install php-imap

To install the PHP IMAP function in Debian, simply run the following command in SHELL:

apt-get install php5-imap

After installation, simply restart the Apache server:

/etc/init.d/apache2restart

Tags#centos#debian#IMAP#linux
Share

Need Hosting or Servers?

Discover our VPS, dedicated servers and professional hosting solutions

Related Articles

View all articles