How to remove PHP 7.4

gigaboy

New Member
#1
I have moved and tested all sites from PHP 7.4 to 8.1.
Removed all entries in OLS Server referencing 7.4 (for example script extensions, etc)

Still get this warning message in stderr.log:
Code:
PHP Warning:  PHP Startup: Unable to load dynamic library 'imap.so' (tried: /usr/local/lsws/lsphp74/lib/php/20190902/imap.so (/usr/local/lsws/lsphp74/lib/php/20190902/imap.so: cannot open shared object file: No such file or directory), /usr/local/lsws/lsphp74/lib/php/20190902/imap.so.so (/usr/local/lsws/lsphp74/lib/php/20190902/imap.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
In the directory "/usr/local/lsws/" I still have the directory of php74 with associated subdirectories.

How can I safely remove all of php74 without impact to the server?

Thanks!
 

Cold-Egg

Administrator
#2
Does the warning happen when you visit OLS web admin? If the current OLS version/package depends on PHP 7.4, you might want to keep it.
 

Cold-Egg

Administrator
#4
If you installed the OLS v1.8.3 Debian package on the Ubuntu/Debian server, it should depend on php 8.3, and the 7.4 can be removed. Have you verified which URL or in which case you triggered the "PHP Warning"?
 
Top