lsphp84-pecl-imap and lsphp85-pecl-imap installed but imap_ functions not available

#1
Hello,

I have installed lsphp84-pecl-imap and lsphp85-pecl-imap and restarted lsws, however the various imap_ functions (listed here https://www.php.net/manual/en/ref.imap.php) are not available in the relevant PHP versions.

Is this a bug or am I missing an important step somewhere?

If it's running I'm running OpenLiteSpeed 1.8.5 on AlmaLinux 9.7.

Thank you,
Paul
 

Cold-Egg

Administrator
#2
Do you see imap package in the phpinfo? If not, restart the PHP process (killall lsphp)
You can also try listing the imap functions with
Code:
<?php
print_r(get_extension_funcs("imap"));
 
#3
killall lsphp sorted it. imap wasn't showing in phpinfo() before and is after.

I'm pleased it was something simple that I missed my end. I'll add that command to my notes.

Feel free to move this form bug reports to somewhere more appropriate.

Thank you,
Paul
 

Cold-Egg

Administrator
#4
You're welcome. The reason is that the newer OLS version runs PHP in detached mode, so you need to reload PHP whenever you add a new module or make changes to php.ini.
 
Top