I have installed php 5.6 in centos 6.7 server using
yum --enablerepo=remi,remi-php56 install -y php-mysqlnd php-gd php-mbstring php-mcrypt php-xml php-fpm
I have the following php extensions enabled :
<?php
print_r(get_loaded_extensions());
?>
[0] => Core
[1] => date
[2] => ereg
[3] => libxml
[4] => openssl
[5] => pcre
[6] => zlib
[7] => filter
[8] => hash
[9] => Reflection
[10] => SPL
[11] => session
[12] => standard
[13] => cgi-fcgi
[14] => ctype
[15] => curl
[16] => ftp
[17] => gd
[18] => mbstring
[19] => mcrypt
[20] => mysqlnd
[21] => PDO
[22] => SimpleXML
[23] => mysql
[24] => pdo_mysql
[25] => json
[26] => mhash
To save php memory usage, I disabled many php extensions in /etc/php.d folder.
I would like to disable some more like :
libxml, ereg, mhash, Reflection, SPL etc.
However, these extension files are not in /etc/php.d folder.
So, please suggest me how to disable extensions like libxml, ereg, mhash, Reflection, SPL etc.
Also, please suggest if it is safe to disable them.
Please reply if you would like to know more details.
Thanks.