- Plesk for Linux
It is possible to add additional PHP directives via Command line
Connect to the server via SSH
Create the file with all additional settings you need to apply to a domain (
vican be used or any other text editor, but this simple example shows single-line configuration file). For example, it is required to add the directive '
sendmail_path = "/dev/null':
# echo 'sendmail_path = "/dev/null"' > nomail.ini # this directive disables sending mail via PHP
Note: any directive, which is valid in
php.inican be specified, using the same format as in
Apply the settings via the command:
# plesk bin site --update-php-settings example.com -additional-settings nomail.ini
It will give the same effect as if the contents of the specified file were copied to the Additional configuration directives box in Plesk web GUI.
Note: Each time this command is run, the previous settings will be overwritten.
More information on Plesk's Linux command line utilities can be found in Plesk documentation.