To allow the administrator adjusting firewall settings in Custom view: The Firewall page is shown/hidden to the administrator. Plesk bin admin -u -multiple-sessions trueĪllows/Prohibits adjusting Plesk firewall settings in Custom view. To allow multiple sessions to run simultaneously under administrator's login: To set the administrator's default interface skin to Vista:Īllows/Prohibits having several simultaneous sessions under administrator's login. Sets the default interface skin for Plesk administrator's control panel interface. To set the administrator's default interface language to German: The argument of the command must be a valid four-letter language code derived from the language code described in ISO-639-2 and the corresponding country code described in ISO-3166.įor example, the Plesk code for the Italian language code is it-IT the Plesk code for the American variant of English is en-US the Plesk code for the British variant of English is en-GB. Sets the default interface language for Plesk administrator's control panel interface. To view help page on the use of the admin utility: To view Plesk administrator’s personal information and preferences in the XML format:ĭisplays help page on the use of the utility. The synonym is -set-admin-password.ĭisplays Plesk administrator’s personal information and preferences in the XML format. Updates the Plesk administrator's password. Plesk bin admin -set-password -passwd mypassword -encrypted-password Plesk bin admin -set-admin-password -passwd mypassword -encrypted-password To change the Plesk administrator's password to mypassword: To view Plesk administrator’s personal information and preferences:ĭisplays the Plesk administrator’s password. The second line outputs the extracted list of domains and runs the php settings update command against each one of them, one at a time.Updates Plesk administrator's server preferences.ĭisplays Plesk administrator’s personal information and preferences. You should test that command by itself first as your MySQL may not have permissions to write to /tmp if you’ve changed it from the defaults Plesk installs with. The first part of that is a SQL command that will write out a list of all of your domains to /tmp/domains.dat. usr/bin/mysql -u admin -password=`cat /etc/psa/.psa.shadow` -e "select name from domains INTO OUTFILE '/tmp/domains.dat' LINES TERMINATED BY '\n'" psaĬat /tmp/domains.dat | xargs -n 1 -i /usr/local/psa/bin/domain -update-php-settings -settings settings.txt Next up, if you’re sure you want to go ahead and apply the settings to every domain on the server, here’s a sequence of commands to do that: Fortunately, if you only put the setting to be added/changed, any other custom settings already set on the given domain will be preserved, so you don’t have to worry about wiping config out when applying just one new value. Place the new setting you want to apply in a file named settings.txt and then run the second command. The first command will show you the current settings for a given domain. usr/local/psa/bin/domain -update-php-settings -settings settings.txt usr/local/psa/bin/domain -show-php-settings To do it via the command line, you’ll use two commands: Hell, it would probably take at least 15 clicks per site to make such a change if you’re running web hosting mode interface with new window pop-up enabled for hosting settings. it is a real pain in the ass to do via the horrible Plesk 10+ web interface. If you have bulk updates to the php settings that you need to run against every site on a server, such as changing safe mode, the session save directory, include paths, etc. I’ve tested this on Plesk 10.4.4 and Plesk 11.0.9 and it has worked the same on both.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |