• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

PLESK-cfg files individual by each user

U

unlock

Guest
Hello,

i have a PLESK 8.2 installed on FreeBSD 6.1.
After creation new account, plesk generates user conf like:
/usr/local/www/vhosts/domain.com/conf/httpd.include
I want to ask PLESK, what it need to put a new string in this file (not defaults) like:

php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]"

It can`t be placed on main config, becouse i need use an individual mail address for each domain.


So, after creation, i need to put this line to new user config automatically.
How i can do it? Any ideas?
 
If you want to add or override any domain's settings you have to create a file called vhost.conf in the domain's conf dir and run websrvmng to have Plesk include an Include statement for that vhost.conf file (use vhost_ssl.conf for https). (Search the forums for more info on vhost.conf, I have been telling this story one time too many now.)

If you want to create the file automatically you can put it in the skeleton. You can use the variable @domain_name@ in the file in the skeleton and Plesk will replace that with the domain's real name when a domain is created.
 
Back
Top