- php8.1-imap on Debian 10 (Buster)
- 2. Uninstall / Remove php8.1-imap package
- 3. Details of php8.1-imap package
- 4. References on Debian 10 (Buster)
- php-imap on Debian 11 (Bullseye)
- 2. Uninstall / Remove php-imap package
- 3. Details of php-imap package
- 4. References on Debian 11 (Bullseye)
- 5. The same packages on other Linux Distributions
- Install PHP IMAP on Debian
- Check Out These Related posts:
- How To Install php-imap on Debian 9
- What is php-imap
- Install php-imap Using apt-get
- Install php-imap Using apt
- Install php-imap Using aptitude
- How To Uninstall php-imap on Debian 9
- Uninstall php-imap And Its Dependencies
- Remove php-imap Configurations and Data
- Remove php-imap configuration, data, and all of its dependencies
- Dependencies
- References
- Summary
- Installation
- Install php dependencies
- Option 1: Install with composer
- Option 2: Install from GitHub
- Legacy support
php8.1-imap on Debian 10 (Buster)
This guide let you learn how to install php8.1-imap package:
2. Uninstall / Remove php8.1-imap package
Please follow the instructions below to uninstall php8.1-imap package:
3. Details of php8.1-imap package
Package: php8.1-imap
Source: php8.1
Version: 8.1.9-1+0~20220815.24+debian10~1.gbp4d5b5a
Architecture: amd64
Maintainer: Debian PHP Maintainers
Installed-Size: 136
Depends: php-common (>= 1:81~), ucf, php8.1-common (= 8.1.9-1+0~20220815.24+debian10~1.gbp4d5b5a), libc-client2007e, libc6 (>= 2.14), libcom-err2 (>= 1.43.9), libgssapi-krb5-2 (>= 1.6.dfsg.2), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.6.dfsg.2), libpam0g (>= 0.99.7.1), libssl1.1 (>= 1.1.0)
Provides: php-imap
Homepage: http://www.php.net/
Priority: optional
Section: php
Filename: pool/main/p/php8.1/php8.1-imap_8.1.9-1+0~20220815.24+debian10~1.gbp4d5b5a_amd64.deb
Size: 32504
SHA256: abed7c1a5742e390a0234ac697b25c453cc6046149a33f98bab40c57cf2caf1a
SHA1: 3897085526a04b02cedb61411837112ba284d122
MD5sum: 88ca483ea6e7f3d0e9453d6a55489c57
Description: IMAP module for PHP
This package provides the IMAP module(s) for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Description-md5: 73ce2e5dbb1377bc41524b600892883b
4. References on Debian 10 (Buster)
antlr3-doc (3.5.2-9)
vim-snippets (1.0.0-4)
python3-flask-bcrypt (0.7.1-1)
libeigenbase-resgen-java (1.3.0.13768-4)
libghc-gi-xlib-dev (2.0.2-1)
gnome-shell-timer (0.3.20+20171025-2)
python-pybiggles (1.6.6-3)
libtest-lectrotest-perl (0.5001-3)
libmetrohash1 (1.1.3-4)
multimedia-drums (0.7)
iceweasel-l10n-sl (1:91.13.0esr-1~deb10u1)
kreversi (4:18.04.1-1)
libn32gfortran5-mips64r6-cross (8.3.0-2cross2)
erlang-os-mon (1:21.2.6+dfsg-1)
svxreflector (17.12.2-4)
swath-data (0.6.1-1)
php-imap on Debian 11 (Bullseye)
Please follow the step by step instructions below to install php-imap package:
2. Uninstall / Remove php-imap package
This guide let you learn how to uninstall php-imap package:
3. Details of php-imap package
Package: php-imap
Source: php-defaults (92+0~20220117.43+debian11~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 14
Depends: php-common, php8.1-imap
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-imap_8.1+92+0~20220117.43+debian11~1.gbpe0d14e_all.deb
Size: 7428
SHA256: 59da3919896d1b7596d5c6148db320ec4c0f519cebefbf21105dbbe79822e180
SHA1: eaddb179f86279fc93b5e7d5be6145c607c228a4
MD5sum: 7a75e44478e2a97c9a644c021130dcbc
Description: IMAP module for PHP [default]
This package provides a IMAP module for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on Debian’s default
PHP version (currently 8.1).
Description-md5: 3c05bb6e12aaded0290e640fd6775c86
Package: php-imap
Source: php-defaults (76)
Version: 2:7.4+76
Installed-Size: 13
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php7.4-imap
Description: IMAP module for PHP [default]
Description-md5: a9c7653dcf51f3739bec4483fec94f48
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-imap_7.4+76_all.deb
Size: 6364
MD5sum: 2855b37f66067335e0332e79c3aeb86c
SHA256: e58beed8dd5d0c596a4039172b5231859fbdb755c497aa0338582cbdbd624303
4. References on Debian 11 (Bullseye)
5. The same packages on other Linux Distributions
php-imap (2:8.1+92+ubuntu18.04.1+deb.sury.org+2) Ubuntu 18.04 LTS (Bionic Beaver)
php-imap (1:7.0+35ubuntu6.1) Ubuntu 16.04 LTS (Xenial Xerus)
php-imap (2:8.0+85+ubuntu21.10.1+deb.sury.org+1) Ubuntu 21.10 (Impish Indri)
php-imap (2:8.1+92+ubuntu22.04.1+deb.sury.org+1) Ubuntu 22.04 LTS (Jammy Jellyfish)
php-imap (2:8.1+92+0~20220117.43+debian10~1.gbpe0d14e) Debian 10 (Buster)
Install PHP IMAP on Debian
If you are getting the «Fatal error: Call to undefined function imap_open()» error in PHP when using the IMAP functions then they are not installed with your installation of PHP. This post looks at how to install the PHP IMAP functions on Debian and should also work for Ubuntu/Kubuntu/etc and other Debian derived Linux distros.
I have previously posted about this for CentOS/RHEL/Fedora and have added this post because the command to install PHP IMAP is different for Debian, and I’ve recently moved from CentOS with PHP 5.1.6 to Debian with PHP 5.2.6.
To install the PHP IMAP extension on Debian, run the following from the command line either as root or using the sudo command:
aptitude install php5-imap
You’ll see something along the lines of this:
Reading package lists. Done Building dependency tree Reading state information. Done Reading extended state information Initializing package states. Done Reading task descriptions. Done The following NEW packages will be installed: libc-client2007b mlock php5-imap 0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 841kB of archives. After unpacking 1810kB will be used. Do you want to continue? [Y/n/?]
Type in «y» and then and you’ll see something along the lines of this:
Writing extended state information. Done Get:1 http://ftp.nz.debian.org lenny/main mlock 7:2007b~dfsg-4+lenny3 [30.8kB] Get:2 http://ftp.nz.debian.org lenny/main libc-client2007b 7:2007b~dfsg-4+lenny3 [772kB] Get:3 http://ftp.nz.debian.org lenny/main php5-imap 5.2.6.dfsg.1-1+lenny2 [38.1kB] Fetched 841kB in 2s (322kB/s) Selecting previously deselected package mlock. (Reading database . 19854 files and directories currently installed.) Unpacking mlock (from . /mlock_7%3a2007b~dfsg-4+lenny3_amd64.deb) . Selecting previously deselected package libc-client2007b. Unpacking libc-client2007b (from . /libc-client2007b_7%3a2007b~dfsg-4+lenny3_amd64.deb) . Selecting previously deselected package php5-imap. Unpacking php5-imap (from . /php5-imap_5.2.6.dfsg.1-1+lenny2_amd64.deb) . Processing triggers for man-db . Setting up mlock (7:2007b~dfsg-4+lenny3) . Setting up libc-client2007b (7:2007b~dfsg-4+lenny3) . Setting up php5-imap (5.2.6.dfsg.1-1+lenny2) . Reading package lists. Done Building dependency tree Reading state information. Done Reading extended state information Initializing package states. Done Writing extended state information. Done Reading task descriptions. Done
You’ll be able to immediately access the IMAP functions from the command line interface but will need to gracefully restart Apache to access the functions in your web based scripts by running the following either as root or using the sudo command:
apache2ctl graceful OR /usr/sbin/apache2ctl graceful
Now you should be able to use the PHP IMAP functions.
Check Out These Related posts:
How To Install php-imap on Debian 9
In this tutorial we learn how to install php-imap on Debian 9.
What is php-imap
This package provides a IMAP module for PHP.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
This package is a dependency package, which depends on Debian’s default PHP version (currently 7.0).
There are three methods to install php-imap on Debian 9. We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.
Install php-imap Using apt-get
Update apt database with apt-get using the following command.
After updating apt database, We can install php-imap using apt-get by running the following command:
Install php-imap Using apt
Update apt database with apt using the following command.
After updating apt database, We can install php-imap using apt by running the following command:
Install php-imap Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.
After updating apt database, We can install php-imap using aptitude by running the following command:
How To Uninstall php-imap on Debian 9
To uninstall only the php-imap package we can use the following command:
Uninstall php-imap And Its Dependencies
To uninstall php-imap and its dependencies that are no longer needed by Debian 9, we can use the command below:
Remove php-imap Configurations and Data
To remove php-imap configuration and data from Debian 9 we can use the following command:
Remove php-imap configuration, data, and all of its dependencies
We can use the following command to remove php-imap configurations, data and all of its dependencies, we can use the following command:
Dependencies
References
Summary
In this tutorial we learn how to install php-imap package on Debian 9 using different package management tools: apt , apt-get and aptitude .
Installation
Installation of php-imap is a trivial process. In fact, there is no real installation.
You have two options for installing php-imap. The first — and simplest — way is to install with Composer. The second way is to clone the source project directly from GitHub, and then run an included script command to install needed dependencies.
Install php dependencies
php-imap requires two common php modules mbstring and mcrypt.
sudo apt-get install php*-mbstring php*-mcrypt sudo apache2ctl graceful
Option 1: Install with composer
The easiest way to install php-imap is to require it using Composer.
composer require webklex/php-imap
If you want to check out a different version of php-imap, add the desired version as an additional parameter:
composer require webklex/php-imap:2.2.5
Option 2: Install from GitHub
Another method is to clone php-imap from the GitHub repository, and then run a simple dependency installation script:
- Clone the php-imap repository from GitHub to a folder in the webroot of your application, e.g. ~/webroot. Launch a terminal or console and navigate to the webroot folder:
cd ~/webroot git clone https://github.com/Webklex/php-imap.git
cd php-imap composer install
Legacy support
If you plan to use legacy protocols such as pop3 or nntp you also have to install the native php php-imap module:
sudo apt-get install php*-imap sudo apache2ctl graceful