I have to configure PHP to work together with HTTPD.
I have compared configuration of files from other servers already configured with PHP and HTTPD.
This is the output when I grep the fpm service (on the working server) :
[root@www2b aigini]# ps -ef | grep fpm
root 3561 1 0 Jan16 ? 00:08:28 php-fpm: master process (/etc/opt/rh/rh-php71/php-fpm.conf)
apache 8419 3561 0 16:36 ? 00:00:09 php-fpm: pool www
apache 9642 3561 1 16:42 ? 00:00:07 php-fpm: pool www
apache 9683 3561 1 16:42 ? 00:00:06 php-fpm: pool www
apache 10909 3561 0 16:47 ? 00:00:02 php-fpm: pool www
apache 11039 3561 1 16:48 ? 00:00:03 php-fpm: pool www
apache 11137 3561 0 16:48 ? 00:00:02 php-fpm: pool www
apache 11393 3561 1 16:49 ? 00:00:02 php-fpm: pool www
apache 11907 3561 1 16:52 ? 00:00:00 php-fpm: pool www
apache 11968 3561 1 16:52 ? 00:00:00 php-fpm: pool www
apache 12100 3561 1 16:52 ? 00:00:00 php-fpm: pool www
root 12201 12075 0 16:53 pts/0 00:00:00 grep --color=auto fpm
[root@www2b aigini]#
In my server, when I grep fpm, I get this :
[root@login.int.myassist.my php-fpm.d]#ps -ef | grep fpm
root 6690 1 0 16:32 ? 00:00:00 php-fpm: master process (/etc/opt/rh/rh-php71/php-fpm.conf)
root 6974 5806 0 16:35 pts/0 00:00:00 grep --color=auto fpm
[root@login.int.myassist.my php-fpm.d]#
These are all the php related packages I installed in the server :
rh-php71.x86_64 1-1.el7 @centos-sclo-rh-7
rh-php71-php-bcmath.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-cli.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-common.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-fpm.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-gd.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-json.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-mbstring.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-mysqlnd.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-pdo.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-pear.noarch 1:1.10.4-1.el7 @centos-sclo-rh-7
rh-php71-php-pgsql.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-process.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-soap.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-xml.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-xmlrpc.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-php-zip.x86_64 7.1.30-2.el7 @centos-sclo-rh-7
rh-php71-runtime.x86_64 1-1.el7 @centos-sclo-rh-7
How and what do I have to configure in my server to make the output as the working server?