• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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