To find User Name of any particular domain

read -p $’\n\033[4;31mName Of The Domain:-\033[0m ‘ domain; printf “User Name\t”;grep SuexecUserGroup /etc/httpd/conf/plesk.conf.d/*/$domain.conf | head -1 | cut -d ‘”‘ -f 2

To find webserver configuration path for any particular domain

read -p $’\n\033[4;31mName Of The Domain:-\033[0m ‘ domain; printf “Configuration File\t”; ls -ld /etc/httpd/conf/plesk.conf.d/*/$domain.conf | head -1 | cut -d “>” -f 2

To find DocumentRoot path for any particular domain

read -p $’\n\033[4;31mName Of The Domain:-\033[0m ‘ domain; grep DocumentRoot /etc/httpd/conf/plesk.conf.d/*/$domain.conf | head -1 | cut -d “:” -f 2

To find ErrorLog file path for any particular domain

read -p $’\n\033[4;31mName Of The Domain:-\033[0m ‘ domain; grep ErrorLog /etc/httpd/conf/plesk.conf.d/*/$domain.conf | head -1 | cut -d “:” -f 2

To create phpinfo file with correct ownership

echo “<? phpinfo (); ?>” > info.php ; for i in `grep SuexecUserGroup /etc/httpd/conf/plesk.conf.d/*/$(pwd | cut -d “/” -f 5).conf | head -1 | cut -d ‘”‘ -f 2`;do chown $i.psacln info.php;done

Few handmade commands for Plesk 12