Report this

What is the reason for this report?

How to enable PHP Exteions?

Posted on June 20, 2019

Hi

I am trying to install php-imap.

I used command:

yum install php70-php-imap

And it installed it.

After that i restart my httpd service by

systemctl restart httpd.service

And I used command

php -m

and there’s no extenion named “imap”.

Cant believe it.

I tried to install again and it says

Package php70-php-imap-7.0.33-9.el7.remi.x86_64 already installed and latest version Nothing to do


On my server I have old php 5.4 and 5.6 too.

Can it be about that? How can I enable that extenion?

Im looking for php.ini file and there’s no line about “imap”.

Need some help. Thanks.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there @cagkana9f5cd873f5b8188e469,

I believe you’ll need to enable the extension by running sudo phpenmod imap. Let me know if that helps :)

- Matt.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.