After I compiled apache 2.4 and php 7.0.20 ( this is my configure line :
./configure' '--with-libdir=lib64' '--prefix=/usr/local' '--with-layout=PHP' '--with-pear' '--with-apxs2' '--enable-calendar' '--enable-bcmath' '--with-gmp' '--enable-exif' '--with-mcrypt' '--with-mhash' '--with-zlib' '--with-bz2' '--enable-zip' '--enable-ftp' '--enable-mbstring' '--with-iconv' '--enable-intl' '--with-icu-dir=/usr' '--with-gettext' '--with-pspell' '--enable-sockets' '--with-openssl' '--with-curl' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib-dir=/usr' '--with-xpm-dir=/usr' '--with-freetype-dir=/usr' '--with-libxml-dir=/usr' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--enable-soap' '--with-xmlrpc' '--with-xsl' '--with-tidy=/usr' '--with-readline' '--enable-pcntl' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-shmop' '--enable-maintainer-zts' '--with-tsrm-pthreads')
installed pthreads with pecl , added the extension to my php.ini file , restarted apache and then apache crashed and not starting anymore. apache error log messege :
PHP Fatal error: The apache2handler SAPI is not supported by pthreads in Unknown on line 0 PHP Fatal error: Unable to start pthreads module in Unknown on line 0
My question is what are the steps to install pthreads on the best practice way. I have tried everything but no luck ..
Thanks'.