Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

677
Views
Fatal Error: Call to undefined function imap_open PHP

I have followed the steps below to enable IMAP and still things are not working.


    sudo apt-get install php5-imap
    sudo apt-get install php5-cli
    sudo php5enmod imap 
    service php5-fpm restart
    sudo service nginx restart


I can see the IMAP extension enabled under phpinfo and also can see the extension is loaded using command dpkg -l | grep php5-imap

Server: Linux and using nginx

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This should be a comment, but I haven't got the reps for comment, so...

  1. Try to check your extension file, i.e. make sure that in /etc/php5/mods-enabled/imap.ini, the keyword extension=/path/to/imap.so is not commented (having ; or # as its beginning of line) and your /path/to/imap.so file exists.

  2. Try to check if you had multiple php-fpm services running. Use systemctl list-unit-files | grep php to check. If you had multiple php-fpm services, make sure you had installed imap extension to the correct php-fpm instance.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!