CentOS lacks a tool for enabling and disabling PHP extensions in a scripted way. Follow Debian example and implement it: - php5enmod - php5dismod