Saturday, 29 September 2012

Parallels Plesk Panel for Windows 10

To enable the power user:
++++++++++++++++++++++++++++
In order to enable the Power User view, run the command:
C:\> "%plesk_cli%\poweruser.exe" --on

To switch the Power User view off and return to the standard panel, use this command:
C:\> "%plesk_cli%\poweruser.exe" --off


panel:- Tools & settings -->Interface Management --> Power User view or Service Provider view

++++++++++++++++++++++++++++

Directory Structure

+++++++++++++++++++++++++++++
Parallels Plesk Panel and its components are installed by default in the directory C:\Program
Files\Parallels\Plesk\ on a physical server, or C:\Program Files\Plesk\ in the
Parallels Containers environment. The default directory is referred to as %plesk_dir% in the
following list. Some of the subdirectories with corresponding components are listed below.
• %plesk_dir%\admin\ - Parallels Plesk Panel service administrator (psa) files
• %plesk_dir%\admin\plib\ - Parallels Plesk Panel PHP files
• %plesk_dir%\admin\bin\ - Binary utilities
• %plesk_dir%\bin\ - Binary utilities
• %plesk_dir%\admin\htdocs\ - Administrative site document root
• %plesk_dir%\etc\ - Configuration files
• %plesk_dir%\MailServer\ - Mail servers
• %plesk_dir%\backup\ - Domain backup files
• %plesk_dir%\dns\ - BIND name server files
• %plesk_dir%\MySql\ - admin MySQL database server
• %plesk_dir%\Databases\ -
• %plesk_dir%\admin\repository\keys\ - License key files
• %plesk_dir%\admin\logs - Log files.


++++++++++++++++++++++++++++++

Windows Registry

+++++++++++++++++++++++++++++
The Parallels Plesk Panel branch in the Registry is
• HKEY_LOCAL_MACHINE\SOFTWARE\PLESK for 32-bit system and
• HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PLESK for 64-bit system.
The configuration is located under \PLESK\PSA Config\Config
These are important registry parameters:
• IIsConfigured - REG_DWORD = 1
• mySQLDBName - REG_SZ = psa
• PLESK_DATABASE_LOGIN - REG_SZ = admin
• PLESK_DATABASE_PROVIDER_NAME - REG_SZ = may be MySQL, or MSSQL
• PLESKCP_PROVIDER_NAME - REG_SZ = iis
• PRODUCT_FULLVERSION - REG_SZ
• DEBUG - REG_DWORD = 0 or 1
++++++++++++++++++++++++++++++
Parallels Plesk Panel - Supported Databases
++++++++++++++++++++++++++++++
--- MySQL
--- Microsoft SQL

To determine database provider, you need to run regedit.exe and go to:
• HKEY_LOCAL_MACHINE\SOFTWARE\PLESK\PSA Config\Config for 32-bit system
• HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\PLESK\PSA Config\Config for
64-bit system
The value of the key "PLESK_DATABASE_PROVIDER_NAME" is the database provider which
the Panel uses for database storage.

+++++++++++++++++++++++++++++++++

MySQL Database

+++++++++++++++++++++++++++++++++
Parallels Plesk Panel uses the following locations to administer the MySQL database:

• "%plesk_dir%"\MySQL admin MySQL instance main folder.
• "%plesk_dir%"\MySQL\Data\my.ini admin MySQL configuration file.
The following command can be used to log in into the MySQL console:
C:\>"%plesk_dir%"\MySQL\bin\mysql.exe -uadmin -p<password> -P8306 psa

Useful parameters of the my.ini configuration file are:
• skip-grant-tables - log in without password.
• log=C:\\Temp\\mysql.log - enable MySQL log (you can specify another file name and
path.)
++++++++++++++++++++++++++++++++

my.ini

+++++++++++++++++++++++++++++++
C:\Program Files (x86)\Parallels\Plesk\MySQL\Data>type my.ini
[PleskSQLServer]
port=8306
basedir=C:\\Program Files (x86)\\Parallels\\Plesk\\MySQL
datadir=C:\\Program Files (x86)\\Parallels\\Plesk\\MySQL\\Data
default-character-set=latin1
default-storage-engine=INNODB
query_cache_size=8M
table_cache=32
tmp_table_size=7M
thread_cache=32
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=2M
key_buffer_size=2M
read_buffer_size=1M
read_rnd_buffer_size=256K
sort_buffer_size=256K
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=16M
innodb_log_file_size=10M
innodb_thread_concurrency=8
max_connections=300
key_buffer=4M
max_allowed_packet=1M
sort_buffer=256K
net_buffer_length=4K
old_passwords=0
tmpdir=C:\\Program Files (x86)\\Parallels\\Plesk\\MySQL\\Data
connect_timeout=20
[client]
port=8306
+++++++++++++++++++++++++++++++++++++

MS SQL Database
+++++++++++++++++++++++++++++++++++++

C:\Program Files\Microsoft SQL Server\80\Tools\Binn\osql –E

The osql utility allows you to enter Transact-SQL statements, system procedures, and script
files. This utility uses ODBC to communicate with the server.
To change the MSSQL administrator's password, start the command prompt session.
• For local server use:
C:\>osql -E -Q "exec sp_password NULL,'new_password','sa'"
• For remote server use:
C:\>osql -S servername_or_address -E -Q "exec sp_password NULL,'new_password','sa'"

Managing Databases

+++++++++++++++++++++++++++++++++++++++

%plesk_cli% contains database-server.exe  and database.exe

For example, in order to create the MySQL database server available at 10.0.20.30, with the
database server administrator's login admin and password password, enter:

C:\>database-server.exe --create-server 10.0.20.30 -type mysql -admin admin -passwd password

In order to set a new password password for the database server administrator with login
admin on the remote Microsoft SQL database server mssqlserver available at 10.0.20.40:3838,
enter:

C:\>database-server.exe --update-server 10.0.20.40:3838 -type mssql -admin admin -reset-passwd password

++++++++++++++++++++++++++++++++++++++
create a MySQL database on the domain.tst

++++++++++++++++++++++++++++++++++++++

For example, to create a MySQL database on the domain.tst domain, enter:

C:\>database.exe --create jsmithdb -domain domain.tst -type mysql

To assign the setup password for the database user jsmithdb with the login name of
JohnSmith, enter:

C:\>database.exe --update jsmithdb -update_user JohnSmith -passwd setup

+++++++++++++++++++++++++++++++++++++

Cannot Configure Client MySQL Server in Parallels Plesk Panel

++++++++++++++++++++++++++++++++++++

Failed to connect to database: Access denied for user admin@localhost

Diagnostics
• This problem occurs when Parallels Plesk Panel's connection to the MySQL server that
houses its user databases is incorrectly configured.

To configure the settings, follow the next steps.
1. Edit the MySQL configuration file my.ini located within %plesk_dir%\mysql\data.
Add parameter skip-grant-tables into the [PleskSQLServer] section.
2. Restart SQL Server.
3. Log into MySQL.
4. Type the following command.


1. Edit the MySQL configuration file my.ini located within %plesk_dir%\mysql\data.
Add parameter skip-grant-tables into the [PleskSQLServer] section.
2. Restart SQL Server.
3. Log into MySQL.
4. Type the following command.
mysql> update user set password=password('admin_password') where
user='admin';
5. Remove skip-grant-tables from within the [PleskSQLServer] section from
%plesk_dir%\mysql\data\my.ini.
6. Restart MySQL Server.
++++++++++++++++++++++++++++++++++++++


Passwords Synchronization

When trying to log in to Parallels Plesk Panel, you get an error message.
This happens if the password for admin in Parallels Plesk Panel does not match the one set in MySQL
First, you need to retrieve your current Parallels Plesk Panel password:

C:\>"%plesk_dir%\admin\bin\plesksrvclient.exe" -get

Then, you should set it up within MySQL. To do this, follow these steps:


+++++++++++++++++++++++++++++++++++++++++

How to get the plesk verion:

%plesk_dir%--> Type version


++++++++++++++++++++++++++++++++++++++

Initial  Plesk Panel Installation
++++++++++++++++++++++++++++++++++++++

There are several ways to install Parallels Plesk Panel:
• Use the Web Interface
• Use the Command Line Interface
• Use the Parallels Containers VZ Template to install the product in a container

• Downloaded packages
• The *.inf3 files
• The log file is autoinstaller3.log
• The error log file is %plesk_dir%\admin\logs\php_error.log.

The repository URL is located at: http://autoinstall-win.pp.parallels.com

If you want to specify any custom locations such as the vhosts location for the Parallels Plesk
Panel, before the installation add into the \PLESK\PSA Config\Config registry key the
following string values:

• PRODUCT_ROOT_D - panel installation path
• PRODUCT_DATA_D - panel data storage path
• HTTPD_VHOSTS_D - vhosts path



Monday, 17 September 2012

Parallels Virtuozzo Containers for Windows FAQ

Parallels Virtuozzo Containers for Windows:

http://kb.parallels.com/en/112514

How do I update Parallels Virtuozzo Containers?

Use the interactive update wizard by running the following command:
"%vz_installdir%\bin\vzupdate.exe"

Which tool manages bridged networks?

To see available bridged networks:
C:\>vznetcfg net list
To create a new bridged network:
C:\> vznetcfg net new %NETWORK_NAME% %HOST_IFACE_MAC%
To add the host interface to a bridged network:
C:\> vzctl set %CTID% --save --ipadd %IPADDR%/%NETMASK% --network %NETWORK_NAME% --nettype bridged

Which log files are available on the Parallels Virtuozzo Containers server?

Container start, stop, migration, creation, deletion, and configuration changes are logged in the main vzlog: C:\vzlog\YYYY.MM.DD-vzlog.log
Template-related operations and package installation via vzpkg are logged in the vzpkg.log: C:\vzlog\vzpkg.log
Parallels Virtuozzo Containers and template update operations are logged in the vzupdate.log: C:\vzlog\vzupdate.log
XML API, SOAP API, backup, and other PVA Agent-related operations are logged in the vzagent.log: C:\vzlog\PVA\Agent\YYYY.MM.DD-vzagent.log

How do I manage Power Panel service?

To start, stop, or restart this service, use the "pvapp" tool:
C:\> net stop pvapp
C:\> net start pvapp
To troubleshoot Power Panel-related issues, check these logs:

Application log in Event Viewer
"%USERPROFILE%\PVA\Power Panel\log\YYYY.MM.DD-agent.log"
"%USERPROFILE%\PVA\Power Panel\log\YYYY.MM.DD-vzagent.log"
"%USERPROFILE%\PVA\Power Panel\log\YYYY.MM.DD-cpcon.log"
C:\vzlog\PVA\Agent\YYYY.MM.DD-vzagent.log

How do I manage PVA Agent service?

To start, stop, or restart the service, use the "pvaagent" tool:
C:\> net stop pvaagent
C:\> net start pvaagent
To troubleshoot PVA Agent-related issues, check these logs:

C:\vzlog\PVA\Agent\YYYY.MM.DD-vzagent.log

What is the service container needed for?

On Parallels Virtuozzo Containers for Windows with PVA Agent installed, there should not be a service container instance because offline management and SOAP API services are served by corresponding sites in IIS.

How do I manage Parallels Virtuozzo Containers service?

On a non-clustered Parallels Virtuozzo Containers installation, it is not advisable to start or stop Virtuozzo management service.
To start, stop, or restart the service, use the "net" tool:
C:\> net stop vzsrv
C:\> net start vzsrv
Containers will be restarted during this procedure.

What is the difference between vzbackup and vzabackup?

There is no difference between vzbackup and vzabackup on Parallels Virtuozzo Containers for Windows. These are two different command-line interfaces for the single backup engine. The vzbackup tool is kept for backward compatibility purposes.

How do I create, enlist, and restore backups stored on a remote Parallels Virtuozzo Containers node?

To create a backup for a container and place the backup in remote storage, run the "vzabackup" command:
C:\> vzabackup --storage %USERNAME%:"%PASSWORD%"@%REMOTE_SERVER_HOSTNAME% -F localhost -e %CTID%
To enlist a container backup available in remote storage, use the "vzarestore" command:
C:\> vzarestore --list --full -e %CTID% --storage %USERNAME%:"%PASSWORD%"@%REMOTE_SERVER_HOSTNAME%
To restore a backup of a container using remote backup storage, use the "vzarestore" command:
C:\> vzarestore -B -e %BACKUP_ID% --storage %USERNAME%:"%PASSWORD%"@%REMOTE_SERVER_HOSTNAME%

How do I migrate a container and protect the source container from deletion?

Use the "vzmigrate" command with appropriate options to keep the source and destination containers:
C:\> vzmigrate --remove-area no Administrator@%DESTINATION_NODE% %CTID%

How can I check the Parallels Virtuozzo Containers version?

Check the version of Parallels Virtuozzo Containers using the "vzctl" tool:
C:\> vzctl --version

How do I check the exact PVA Agent version?

Check the version of ProductBuild in the registry:
C:\>reg query HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Parallels\PVA /v ProductBuild

How do I check whether a node is registered in PVA Management Node?

Use the "vzagroup" tool:
C:\> vzagroup list
A node is not registered in PVA Management Node if the output contains this line:
host is a slave in vzgroup, which master node address is local
If a node is a member of a PVA group, the output will show the IP address of the PVA Management Node it is registered in:
host is a slave in vzgroup, which master node address is %PVA_MN_IP_ADDRESS%

 Where can I find the PVA Agent configuration file?

All PVA Agent configuration files are located in the etc_folder defined in pva.conf.

Check "C:\Program Files (x86)\Parallels\Parallels Virtual Automation\Agent\bin\pva.conf" and find the etc_folder section:

etc_folder
C:\vz\PVA\Agent\Data\etc
This output above means that the main configuration file vzagent.conf is located in C:\vz\PVA\Agent\Data\etc.

Where can I change PVA Agent timeouts and limits?

Locate the vzagent.conf file and adjust the required limits and timeouts there.
 

Is it safe to install Microsoft updates on the Hardware Node?

Due to the design of Parallels Virtuozzo Containers for Windows, only approved Microsoft Windows updates should be installed on the Node.
To assure that only approved updates are installed, verify that the WSUS server is set to "vzwinupdate.sw-soft.com":
C:\>reg query HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate /v WUServer
Never install Windows updates inside containers!

Is .NET Framework needed for Parallels Virtuozzo Containers?

Parallels Virtuozzo Containers for Windows does not need .NET Framework for proper functioning; thus, if some particular container software needs .NET Framework, it should be installed directly from inside the container.

  .NET Framework
OS 1.x 2.0.x 3.0.x 3.5.x 4.0.x
Windows 2003 REDIST REDIST REDIST REDIST REDIST
Windows 2008 REDIST BUILTIN FEATURE REDIST REDIST
Windows 2008 R2 REDIST BUILTIN BUILTIN FEATURE REDIST

REDIST - Install via .msi package (redistributable) downloaded from the Microsoft website or create the template from this package.
BUILTIN - Some versions of .NET are built-in to the current version of Windows and MUST NOT be re-installed via .msi/redistributable package installation.
FEATURE - Install via server roles and features (as of Windows 2008).

Plesk for Linux commands and Usage:

1. For getting Plesk panel admin password in command Line:

# /usr/local/psa/bin/admin --show-password  


2. To reset the Plesk Admin password:

# /usr/local/psa/bin/init_conf -u -passwd <new_password>