S
S
SoulSeiken2017-02-27 10:01:12
PHP
SoulSeiken, 2017-02-27 10:01:12

How to connect the facedetect module to PHP-FPM?

Hello. Please help, I can't connect the facedetect module.

  1. Compiled by opencv
  2. Assembled by Facedetect
  3. I created a file /etc/php.d/facedetect.ini and added extension=facedetect.so to it

I checked the module itself, it is in /lib64/php/modules/facedetect.so

opencv version 3.1
apache2 version - 2.4.6
PHP-FPM version

Logs:

Feb 27 09:48:34 local.dev systemd[1]: Starting The PHP FastCGI Process Manager...
Feb 27 09:48:34 local.dev php-fpm[1059]: [27-Feb-2017 09:48 :34] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/facedetect.so' - libopencv_objdetect.so.3.1: cannot enable executable stack as shared object requires: Permission denied in Unknown on line 0
Feb 27 09:48:34 local.dev systemd[1]: Started The PHP FastCGI Process Manager.

I work as root.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SoulSeiken, 2017-02-28
@SoulSeiken

Solution: Disable SELinux

S
Sergey Doniy, 2017-02-27
@doniys_a


PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/facedetect.so' - libopencv_objdetect.so.3.1: cannot enable executable stack as shared object requires: Permission denied
Php can't open the module, it doesn't have permissions. Add permissions to the module and directory with the module for the user that runs php-fpm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question