• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Enable php5-imap on Ubuntu 14.04 LTS

June 22, 2015 by Sharad Chhetri

The imap extension of PHP helps to operate with the IMAP protocol, as well as the NNTP, POP3 and local mailbox access methods. In this post, we will learn how to enable php5-imap on Ubuntu 14.04 LTS Server. The php5-imap extension basically used in mail with IMAP protocol.

Install php5-imap on Ubuntu

Use the below given command to install php5-imap extension

sudo apt-get install php5-imap

Enable php5-imap on Ubuntu

Now enable php5-imap

sudo php5enmod imap

Restart the Apache service

In Ubuntu, use the below given command to restart the Apache service

sudo service apache2 restart

Verify IMAP module is loaded

1. With command line inside server, use the below given command .

php -m|grep imap

EXAMPLE:

root@ubuntu:~# php -m|grep imap
imap
root@ubuntu:~#

2. Or you can use phpinfo() function in a file and place it in web data directory.

Create a file called in web directory called info.php

vi info.php

Paste below given code in info.php


Now open the web browser and give path upto info.php . For example, I have placed info.php file in root web directory of sharadchhetri.com , hence I will use URL https://sharadchhetri.com/info.php

Just look for IMAP in web browser.It should be look like this.

php5-imap image

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Enable ethernet in RHEL 6.0 and CentOS 6.0 : Tested In Virtual Box and VMware
  2. Linux enable or disable multiple swap space
  3. How to enable logging of haproxy in rsyslog
  4. Enable verbose mode while gem install of package
  5. How to enable direct ssh to EC2 linux instance without keypair file
  6. How to enable logging in Postgresql 9.2 and 9.1
  7. How to enable su access or switch to superuser in freebsd
  8. Upgrade Ubuntu 14.04 LTS to Ubuntu 14.04.3 LTS
  9. Install and configure elasticsearch cluster on Ubuntu 14.04 LTS
  10. Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Filed Under: Linux Tagged With: php

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

linux release renew dhcp assigned ip address

Forward all incoming emails to other SMTP server or gateway

Install libjpegtran by using yum command in CentOS 6.x

How to change login banner message in GUI mode in CentOS 6 or above version.

AttributeError: ‘WSGIRequest’ object has no attribute ‘session’ Django python web framework

Convert new line to space by using sed command

master admin password openerp 7.x

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy