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

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Global PHP settings across all domains?

yabado

Regular Pleskian
IS there a simple way to set the following php.ini config items across ALL domains? I ask because each domain has it's own PHP version AND settings.

mail.force_extra_parameters =
mail.add_x_header =
mail.log =
 
Create file myfile with content like

Code:
mail.force_extra_parameters =
mail.add_x_header = 
mail.log =

Then run update script:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/domain --update-php-settings $i -additional-settings myfile; done
 
Create file myfile with content like

Code:
mail.force_extra_parameters =
mail.add_x_header =
mail.log =

Then run update script:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/domain --update-php-settings $i -additional-settings myfile; done


Thanks Igor. Will see how this works out.
 
Back
Top