System Status
Buy Now
  • Email & Apps
  • Office 365
Login
  • MyRackspace Portal
  • Cloud Control Panel
  • Rackspace Webmail Login
  • Cloud Office Control Panel
  • Support Home
  • How-To
  • Developer Documentation
  •  Blogs 
    • Expert Insights Tech Blog
    • Rackspace Blog
    • Solve: Thought Leadership

Support Network

End-to-End Multicloud Solutions.   Solving Together.â„¢   Learn more at Rackspace.com

How–To Home

Cloud Servers

  • Introduction
  • FAQ
  • All Articles

Install IMAP for PHP 7.1 on the Ubuntu operating system

Last updated on:  2021-07-12

Authored by:  Alfonso Murillo


The Internet Message Access Protocol (IMAP) allows you to access email messages efficiently from anywhere. IMAP stores these messages on servers and downloads them on demand and works as an intermediary between the emails servers and clients.

PHP® offers an IMAP extension to connect to a mailbox by using POP3, IMAP, and NNTP protocols. This article covers the installation of IMAP on a server with the Ubuntu® operating system for PHP 7.1.

Verify PHP IMAP installation

To verify your installation, perform the following steps:

  1. Create a file and add the following lines:
  <?php
  phpinfo();
  ?>
  1. Save the file with any name and the php extension.

    Note: Don’t use the name: phpinfo.php. Hackers commonly search for that name.

When you access the new file, you can see all PHP information. If you don’t see IMAP information in the file, proceed to install the module.

Install IMAP

To install IMAP, perform the following steps:

  1. Enter the following command to install IMAP for PHP 7.1 on the Ubuntu operating system:

sudo apt install php7.1-imap

  1. Restart the server. If it is an Apache® server, enter the following command:

    sudo systemctl restart apache2

Use the Feedback tab to make any comments or ask questions. You can also start a conversation with us.

Share this information:

©2020 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

See license specifics and DISCLAIMER

About Rackspace
  • About
  • Customer Stories
  • Events
  • Programs
Blogs
  • The Rackspace Blog
  • Expert Insights Tech Blog
  • Solve: Thought Leadership
  • News
  • Contact Information
  • Legal
  • Careers
Site Information
  • Style Guide for Technical Content
  • Trademarks
  • Privacy Statement
  • Website Terms
Support Network
  • Support Network Home
  • Rackspace How-To
  • API Documentation
  • Developer Center
  • ©2020 Rackspace US, Inc.