Reputation: 1285
i got an error like
PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_imap.dll' - /usr/lib/php/20151012/php_imap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Aug 20 17:56:35 2018] Failed to listen on 127.0.0.1:8000 (reason: Address already in use)
I tried and comment out extension=php_imap.dll
from php.ini.but bad luck still the error.How can i solve the issue?Any help would be appreciated
Upvotes: 1
Views: 5165
Reputation: 2671
Run sudo apt-get install php-imap
. That should fix your it.
If that doesn't work, try this:
Go to your php.ini file, look for php_imap.dll and comment it out. Your .ini file should be in /etc/php/your-php-version/cli/php.ini
and /etc/php/your-php-version/apache/php.ini
. Comment out the said line by adding semi-colon before it like so ;extension=php_imap.dll
. Then restart apache by doing so sudo service apache2 restart
Upvotes: 2