imap php on ubuntu install -How to

How to install imap php on ubuntu


sudo aptitude install php5-imap

The following NEW packages will be installed:
  libc-client2007e{a} mlock{a} php5-imap
The following packages will be REMOVED:
  sendmail-base{u} sendmail-cf{u} sensible-mda{u}
0 packages upgraded, 3 newly installed, 3 to remove and 1 not upgraded.
Need to get 784 kB of archives. After unpacking 1122 kB will be freed.
Do you want to continue? [Y/n/?] y
Get: 1 http://us.archive.ubuntu.com/ubuntu/ precise/universe mlock amd64 8:2007e~dfsg-3.2ubuntu1 [12.9 kB]
Get: 2 http://us.archive.ubuntu.com/ubuntu/ precise/universe libc-client2007e amd64 8:2007e~dfsg-3.2ubuntu1 [730 kB]
Get: 3 http://us.archive.ubuntu.com/ubuntu/ precise/universe php5-imap amd64 5.3.5-0ubuntu2 [41.0 kB]
Fetched 784 kB in 4s (195 kB/s)
(Reading database ... 86007 files and directories currently installed.)
Removing sendmail-base ...
Cleaning up the queues...done.
Removing sendmail-cf ...
Removing sensible-mda ...
Processing triggers for man-db ...
Selecting previously unselected package mlock.
(Reading database ... 85658 files and directories currently installed.)
Unpacking mlock (from .../mlock_8%3a2007e~dfsg-3.2ubuntu1_amd64.deb) ...
Selecting previously unselected package libc-client2007e.
Unpacking libc-client2007e (from .../libc-client2007e_8%3a2007e~dfsg-3.2ubuntu1_amd64.deb) ...
Selecting previously unselected package php5-imap.
Unpacking php5-imap (from .../php5-imap_5.3.5-0ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for libapache2-mod-php5 ...
 * Reloading web server config apache2                                                                                                                           [ OK ]
Setting up mlock (8:2007e~dfsg-3.2ubuntu1) ...
Setting up libc-client2007e (8:2007e~dfsg-3.2ubuntu1) ...
Setting up php5-imap (5.3.5-0ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

For reflecting the changes in your web server issue the command.
sudo apache2ctl graceful