PHP

PHP Handler

/usr/local/cpanel/bin/rebuild_phpconf --current

Find custom php.ini

for i in $( ll /var/cpanel/users/ | egrep -v '\.|total' | awk '{print $NF}'); do find /home/$i/ -type f -name php.ini; done

Find custom php.ini setting under a given value

(echo;read -p "What is the php setting?: " set1;echo;read -p "What is the value?(do not include M): " set2; echo -e "\n"|for FILE in $(find /home/*/public_html/ -type f -name php.ini -name .user.ini); do if [ $(grep $set1 $FILE|awk -F"=" '{print$2}'|awk -F"M" '{print$1}') -lt "$set2" ]; then echo -e "$FILE\n" ;fi ; done)