Open pilot87 opened 4 years ago
Error messages is similar to messages in #360 . Please ensure Unit PHP module uses same libphp version as it is compiled (for instance with ldd php.unit.so
).
I am not fully understand conception of php versions nor awareness how to check one but changing php version to 7.2 solved this problem. Previously I ve instlall php7.4 on my Ubuntu 18.04 throw is instracion https://www.cloudbooklet.com/how-to-install-php-7-3-on-ubuntu-18-04/
@pilot87 Unit packages in our own repositories are built with the official php packages bundled with the distribution. If you're using your own php build or some other 3-rd party packages, then you have to compile also a Unit module for this custom made php. Please note, that many 3rd-party php packages don't expect to be installed along with the official php package from the distribution. They put php library in the same directory with the same soname, as a result it's not possible for system loader to distinguish between these libraries. Since there's no ABI compatibility between php versions, loading a wrong library (not the one used to compile Unit module) can cause various problems, including the one you've observed.
@pilot87, I've just made Docker Image of NGINX Unit with PHP 7.4 and PDO MYSQL using Custom Module approach. More information in similar issue #402
May be it is not UNIT error: i've set up Wordpress with this instruction https://unit.nginx.org/howto/wordpress/ but site have response with 500 error code
My wp-config.php is
My config is
Please tell me - what I am doing wrong.