Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sesipod:linux:debian:imapphp [2018/01/20 04:45] (current)
Line 1: Line 1:
 +==== Installing and Enabling PHP IMAP extension apache2 ====
  
 +- Update all sources ​
 +
 +**Command=** ''​apt-get update''​
 +
 +- Install php imap
 +
 +**command=** ''​apt-get install php5-imap''​
 +
 +- Add php support for impa / search for php.ini
 +
 +**command=** ''​find / -name php.ini''​
 +
 +Edit both files below. ​
 +
 +   nano /​etc/​php5/​cli/​php.ini
 +   nano /​etc/​php5/​apache2/​php.ini
 +
 +adding the following to bottom of the files 
 +
 +  ;Enable Imap Support
 +  extension=imap.so
 +
 +- Now restart the apache2 service ​
 +
 +**command=** ''​service apache2 restart''​
 +
 +- Now check and see if the imap extension is loaded.
 +
 +**command=** ''​nano /​var/​www/​test.php''​
 +
 +<? phpinfo(); ?>
 +
 +http://​IPADDRESS/​test.php
 +
 +search for imap
 +
 +   imap
 +
 +  IMAP c-Client Version 2007f
 +  ​
 +  SSL Support enabled
 +  ​
 +  Kerberos Support enabled
 +  ​
 +If you see the above then you have correctly installed Imap for php!
 +
 +__Last update 03-09-2015__