• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Globally Enable PHP

MarkM

Golden Pleskian
Plesk Guru
Hello,

Is there a way to globally enable PHP as an Apache module for all domains?

Best regards,

Mark
 
Last edited:
You can use script something like:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/domain -u $i -php_handler_type=module; done
More details in

# /usr/local/psa/bin/domain --help
 
Back
Top