# Managing Services from the Command Line and Viewing Service Logs

This section describes how to stop, start, and restart services managed by Plesk, and access their logs and configuration files.

## Plesk web interface

To stop the service through command line:

    net stop plesksrv

To start the service through command line:

    net start plesksrv
    net start poppassd

To restart the service through command line:

    net stop plesksrv
    net start plesksrv
    net start poppassd

Plesk’s log file is located in:

`%plesk_dir%admin\logs\W3SVC<IIS site ID>\ex<date>.log`

Plesk’s PHP configuration file is located in:

`%plesk_dir%admin\php.ini`

Internet Information Services log file is accessible at:

IIS manager > Sites or Application Pools > PleskControlPanel

## phpMyAdmin

Log files are located in:

`%plesk_dir%admin\logs\W3SVC<IIS site ID>\ex<date>.log`

Configuration files are accessible at:

`%plesk_dir%admin\htdocs\domains\databases\phpMyAdmin\config.inc.php`

## ASP.Net Enterprise Manager

Configuration files are accessible at:

IIS manager > Sites > sqladmin(default)\ mssql

## MailEnable

To stop the service through command line:

    net stop meimaps && net stop melcs && net stop memtas && net stop mepops && net stop mepocs && net stop mesmtpcs

To start the service through command line:

    net start meimaps && net start melcs && net start memtas && net start mepops && net start mepocs && net start mesmtpcs

To restart the service through command line:

    net stop meimaps && net stop melcs && net stop memtas && net stop mepops && net stop mepocs && net stop mesptpcs && net start meimaps && net start melcs && net start memtas && net start mepops && net start mepocs && net start mesmtpcs

Log files are located in:

`%plesk_dir%Mail Servers\Mail Enable\Logging`

Configuration files are accessible at:

`%plesk_dir%Mail Servers\Mail Enable\Bin\MailEnable.msc`

## DNS

To stop the service through command line:

    net stop named

To start the service through command line:

    net start named

To restart the service through command line:

    net stop named && net start named

Log files are accessible through Windows Event Viewer.

Configuration files are accessible at:

`%plesk_dir%dns`

## MySQL/MariaDB

To stop the service through command line:

    net stop plesksqlserver

To start the service through command line:

    net start plesksqlserver

To restart the service through command line:

    net stop plesksqlserver && net start plesksqlserver

Log files are accessible through Windows Event Viewer.

Configuration file is accessible at:

`%plesk_dir%MySQL\Data\my.ini`

## SpamAssassin

Log files are accessible through Windows Event Viewer.

Configuration files are accessible at:

`%plesk_dir%Additional\Perl\site\var\spamassassin\3.003001`

## Plesk Premium Antivirus

To stop the service through command line:

    net stop DrWebCom

To start the service through command line:

    net start DrWebCom

To restart the service through command line:

    net stop DrWebCom && net start DrWebCom

Log file is located in:

`%plesk_dir%DrWeb\drcom.log`

## FTP service

To stop the service through command line:

    net stop iisadmin

To start the service through command line:

    net start iisadmin

To restart the service through command line:

    net stop iisadmin && net start iisadmin

Log files are located in:

`%plesk_vhosts%Servers\<ID>\logs`

Configuration files are accessible at:

IIS Manager > FTP sites > <IP address>

## Internet Information Services

To stop the service through command line:

    net stop iisadmin

To start the service through command line:

    net start iisadmin

To restart the service through command line:

    net stop iisadmin && net start iisadmin

Web server log file is accessible through Windows Event Viewer.

Website logs are available at:

`%plesk_vhosts%<domain>\statistics\logs\<SITE ID>`

Configuration is available through IIS Manager.

## Webalizer

Configuration file is accessible at:

`%plesk_dir%Additional\Webalizer\conf\webalizer.conf`

## Plesk Backup Manager

Backup log files are located in:

`%plesk_dir%PMM\<session>\psadump.log`

`%plesk_dir%PMM\<session>\migration.log`

`%plesk_dir%PMM\logs\migration.log`

`%plesk_dir%PMM\logs\pmmcli.log`

Restoration log files are located in:

`%plesk_dir%PMM\rsessions\<session>\conflicts.log`

`%plesk_dir%PMM\rsessions\<session>\migration.log`

`%plesk_dir%PMM\logs\migration.log`

`%plesk_dir%PMM\logs\pmmcli.log`

## Plesk Migration Manager

Log files are located in:

`%plesk_dir%PMM\msessions\<session>\migration.log`

`%plesk_dir%PMM\rsessions\<session>\migration.log`

`%plesk_dir%PMM\rsessions\<session>\conflicts.log`

`%plesk_dir%PMM\logs\migration.log`

`%plesk_dir%PMM\logs\pmmcli.log`

`%plesk_dir%PMM\logs\migration_handler.log`

## Atmail

Error log is located in:

`%plesk_dir%tmp\atmail`

Configuration files are accessible at:

Web interface - IIS manager > Sites > webmail (atmail)

Application settings - `%plesk_vhosts%\webmail\atmail\libs\Atmail\config.php`