If you are seeing errors like this with PHP 7.x:
Dec 21 14:53:18 web kernel: PAX: terminating task: /opt/plesk/php/7.2/sbin/php-fpm(php-fpm):63667, uid/euid: 10000/10000, PC: 00000349116fc010, SP: 000003a221f93d18
This means that PHP is trying to violate the kernels memory protection features. Unfortunately, PHP 7 needs to operate in this insecure manner. To allow PHP to operate this way, follow the steps below:
1) stop your web server and php handlers
For example, on a Plesk system you would shut down apache and the php handlers for the system. If the system only had a php 7.2 handler, then you would run these command:
service httpd stop
service plesk-php72-fpm stop
If you are running additional php handlers, you will need to stop them as well.
2) Configure the system to allow php to run insecurely
Using the example log message above, the php handler is " /opt/plesk/php/7.2/sbin/php-fpm". Run this command as root:
paxctl -m /opt/plesk/php/7.2/sbin/php-fpm
If you get this message when you run that command:
does not have a PT_PAX_FLAGS program header, try conversion
Or something similar, then run this command:
paxctl -c /opt/plesk/php/7.2/sbin/php-fpm
Then run:
paxctl -m /opt/plesk/php/7.2/sbin/php-fpm
3) start apache and your php handler again
service httpd start
service plesk-php72-fpm start