Automatic import from KB #3192
How to disable pre-defined PHP modules?
Modules that are installed with PHP packages are enabled by default. To disable (or enable) a module:
Go to the directory where respective .ini file for a module is located:
# cd /hsphere/local/config/httpd/<phpversion>/php.d/
is a placeholder for php4 or php5.
Open the <module_name>.ini file for edit.
- Comment out (uncomment for enabling) the line where the necessary module is defined with ';' (semicolon) character.
Restart Apache on the Web server to apply changes:
# /etc/rc.d/init.d/httpd stop # sleep 10 # /etc/rc.d/init.d/httpd start