{"id":2202,"date":"2015-04-28T14:09:54","date_gmt":"2015-04-28T14:09:54","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2202"},"modified":"2015-04-28T14:09:54","modified_gmt":"2015-04-28T14:09:54","slug":"managing-plesk-services-from-the-command-line-and-viewing-service-logs","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/04\/28\/managing-plesk-services-from-the-command-line-and-viewing-service-logs\/","title":{"rendered":"Managing Plesk Services from the Command Line and Viewing Service Logs"},"content":{"rendered":"<p>Source:<\/p>\n<p><a href=\"http:\/\/download1.parallels.com\/Plesk\/Doc\/en-US\/online\/plesk-linux-advanced-administration-guide\/index.htm?fileName=68885.htm\" target=\"_blank\" rel=\"noopener\">http:\/\/download1.parallels.com\/Plesk\/Doc\/en-US\/online\/plesk-linux-advanced-administration-guide\/index.htm?fileName=68885.htm<\/a><\/p>\n<p>Managing Services from the Command Line and Viewing Service Logs<\/p>\n<p>This section describes how to stop, start, and restart services managed by Panel, and access their logs and configuration files.<\/p>\n<p><!--more--><\/p>\n<p>Plesk web interface<\/p>\n<p>To start the service through the command line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/etc\/init.d\/psa start\n\n<\/pre>\n<p>To stop the service through the command line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/etc\/init.d\/psa stop\n\n<\/pre>\n<p>To restart the service through the command line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/etc\/init.d\/psa restart\n\n<\/pre>\n<p>Plesk log files are located in the following directories:<\/p>\n<p>Error Log: \/var\/log\/sw-cp-server\/error_log<br \/>\nAccess log: \/var\/log\/plesk\/httpsd_access_log<br \/>\nPanel configuration files are the following:<\/p>\n<p>php: $PRODUCT_ROOT_D\/admin\/conf\/php.ini<br \/>\nwww: \/etc\/sw-cp-server\/applications.d\/plesk.conf<br \/>\nPresence Builder<\/p>\n<p>Log files are located in:<\/p>\n<p>Error log: \/var\/log\/httpd\/sitebuilder_error.log<br \/>\nLogs: \/usr\/local\/sitebuilder\/tmp\/<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/usr\/local\/sitebuilder\/config<br \/>\n\/usr\/local\/sitebuilder\/etc\/php.ini<br \/>\nSSO<\/p>\n<p>Log files are located in:<\/p>\n<p>Error log: \/var\/log\/sw-cp-server\/error_log<br \/>\nSSO log: \/var\/log\/sso\/sso.log<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/etc\/sw-cp-server\/applications.d\/sso-cpserver.conf<br \/>\n\/etc\/sso\/sso_config.ini<br \/>\nphpMyAdmin<\/p>\n<p>The error log is located in:<\/p>\n<p>\/var\/log\/sw-cp-server\/error_log<\/p>\n<p>The configuration file is accessible at:<\/p>\n<p>\/usr\/local\/psa\/admin\/htdocs\/domains\/databases\/phpMyAdmin\/libraries\/config.default.php<\/p>\n<p>phpPGAdmin<\/p>\n<p>The error log is located in:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/var\/log\/sw-cp-server\/error_log\n\n<\/pre>\n<p>The configuration file is accessible at:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/usr\/local\/psa\/admin\/htdocs\/domains\/databases\/phpPgAdmin\/conf\/config.inc.php\n\n<\/pre>\n<p>DNS \/ Named \/ BIND<\/p>\n<p>To start the service through the command line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# etc\/init.d\/named start\n\n<\/pre>\n<p>To stop the service through the command line:<\/p>\n<p># \/etc\/init.d\/named stop<br \/>\nTo restart the service through the command line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/etc\/init.d\/named restart\n\n<\/pre>\n<p>Log files are located in:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/var\/log\/messages\n\n<\/pre>\n<p>The configuration file is accessible at:<\/p>\n<p>\/etc\/named.conf<\/p>\n<p>FTP (ProFTPD)<\/p>\n<p>Log files are located in:<\/p>\n<p>\/var\/log\/plesk\/xferlog<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>\/etc\/xinetd.d\/ftp_psa<br \/>\n\/etc\/proftpd.conf<br \/>\n\/etc\/proftpd.include<br \/>\nCourier-IMAP<\/p>\n<p>To start the service through the command line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#\/etc\/init.d\/courier-imap start\n\n<\/pre>\n<p>To stop the service through the command line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/etc\/init.d\/courier-imap stop\n\n<\/pre>\n<p>To restart the service through the command line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\/etc\/init.d\/courier-imap restart\n\n<\/pre>\n<p>Log files are located in:<\/p>\n<p>\/var\/log\/plesk\/maillog<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/etc\/courier-imap\/imapd<br \/>\n\/etc\/courier-imap\/imapd-ssl<br \/>\n\/etc\/courier-imap\/pop3d<br \/>\n\/etc\/courier-imap\/pop3d-ssl<br \/>\nQMail<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/qmail start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/qmail stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/qmail restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/plesk\/maillog<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>\/etc\/xinetd.d\/smtp_psa<br \/>\n\/etc\/xinetd.d\/smtps_psa<br \/>\n\/etc\/xinetd.d\/submission_psa<br \/>\n\/etc\/inetd.conf (Debians)<br \/>\n\/var\/qmail\/control\/<br \/>\nPostfix<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/postfix start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/postfix stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/postfix restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/plesk\/maillog<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>\/etc\/postfix\/<\/p>\n<p>SpamAssassin<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-spamassassin start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-spamassassin stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-spamassassin restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/plesk\/maillog<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>\/etc\/mail\/spamassassin\/<br \/>\n\/etc\/mail\/spamassassin\/local.cf<br \/>\n\/var\/qmail\/mailnames\/%d\/%l\/.spamassassin<br \/>\nDr.Web antivirus<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/drwebd start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/drwebd stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/drwebd restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/plesk\/maillog<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>\/etc\/drweb\/<\/p>\n<p>Kaspersky antivirus<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/aveserver start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/aveserver stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/aveserver restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/plesk\/maillog<br \/>\n\/var\/log\/kav\/5.5\/kav4mailservers\/aveserver.log<br \/>\n\/var\/log\/kav\/5.5\/kav4mailservers\/smtpscanner.log<br \/>\n\/var\/log\/kav\/5.5\/kav4mailservers\/avstats.log<br \/>\n\/var\/log\/kav\/5.5\/kav4mailservers\/kavscanner.log<br \/>\n\/var\/log\/kav\/5.5\/kav4mailservers\/kavupdater.log<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/etc\/kav\/5.5\/kav4mailservers\/<\/p>\n<p>Tomcat<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/tomcat5 start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/tomcat5 stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/tomcat5 restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/tomcat5\/<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>\/usr\/share\/tomcat5\/conf\/<\/p>\n<p>MySQL<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/mysqld start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/mysqld stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/mysqld restart<br \/>\nLog file is located in:<\/p>\n<p>\/var\/log\/mysqld.log<\/p>\n<p>The configuration file is accessible at:<\/p>\n<p>\/etc\/my.cnf<\/p>\n<p>PostgreSQL<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/postgresql start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/postgresql stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/postgresql restart<br \/>\nStartup log is located in:<\/p>\n<p>\/var\/lib\/pgsql\/pgstartup.log<\/p>\n<p>The configuration file is accessible at:<\/p>\n<p>\/var\/lib\/pgsql\/data\/postgresql.conf<\/p>\n<p>xinetd<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/xinetd start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/xinetd stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/xinetd restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/messages\/<\/p>\n<p>The configuration file is accessible at:<\/p>\n<p>\/etc\/xinetd.conf<\/p>\n<p>Watchdog (monit)<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/usr\/local\/psa\/admin\/bin\/modules\/watchdog\/wd &#8211;start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/usr\/local\/psa\/admin\/bin\/modules\/watchdog\/wd &#8211;stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/usr\/local\/psa\/admin\/bin\/modules\/watchdog\/wd &#8211;restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/plesk\/modules\/watchdog\/log\/wdcollect.log<br \/>\n\/var\/log\/plesk\/modules\/watchdog\/log\/monit.log<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/usr\/local\/psa\/etc\/modules\/watchdog\/monitrc<br \/>\n\/usr\/local\/psa\/etc\/modules\/watchdog\/wdcollect.inc.php<br \/>\nWatchdog (rkhunter)<\/p>\n<p>Log is located in:<\/p>\n<p>\/var\/log\/rkhunter.log<\/p>\n<p>The configuration file is accessible at:<\/p>\n<p>\/usr\/local\/psa\/etc\/modules\/watchdog\/rkhunter.conf<\/p>\n<p>Apache<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/httpd start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/httpd stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/httpd restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/httpd\/<br \/>\n\/var\/www\/vhosts\/\/statistics\/logs\/<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/etc\/httpd\/conf\/httpd.conf<br \/>\n\/etc\/httpd\/conf.d\/<br \/>\n\/var\/www\/vhosts\/\/conf\/httpd.include<br \/>\nMailman<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/mailman start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/mailman stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/mailman restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/mailman\/<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>\/etc\/httpd\/conf.d\/mailman.conf<br \/>\n\/usr\/lib\/mailman\/Mailman\/mm_cfg.py<br \/>\n\/etc\/mailman\/sitelist.cfg<br \/>\nAWstats<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/usr\/local\/psa\/bin\/sw-engine-pleskrun \/usr\/local\/psa\/admin\/plib\/DailyMaintainance\/script.php<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/usr\/local\/psa\/etc\/awstats\/<\/p>\n<p>Webalizer<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/usr\/local\/psa\/bin\/sw-engine-pleskrun \/usr\/local\/psa\/admin\/plib\/DailyMaintainance\/script.php<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/var\/www\/vhosts\/\/conf\/webalizer.conf<\/p>\n<p>Backup Manager<\/p>\n<p>Backup logs are located in:<\/p>\n<p>\/var\/log\/plesk\/PMM\/sessions\/\/psadump.log<br \/>\n\/var\/log\/plesk\/PMM\/sessions\/\/migration.log<br \/>\n\/var\/log\/plesk\/PMM\/logs\/migration.log<br \/>\n\/var\/log\/plesk\/PMM\/logs\/pmmcli.log<br \/>\nRestore logs are located in:<\/p>\n<p>\/var\/log\/plesk\/PMM\/rsessions\/\/conflicts.log<br \/>\n\/var\/log\/plesk\/PMM\/rsessions\/\/migration.log<br \/>\n\/var\/log\/plesk\/PMM\/logs\/migration.log<br \/>\n\/var\/log\/plesk\/PMM\/logs\/pmmcli.log<br \/>\nThe configuration file is accessible at:<\/p>\n<p>\/etc\/psa\/psa.conf<\/p>\n<p>Plesk Migration Manager<\/p>\n<p>Migration logs are located in:<\/p>\n<p>\/var\/log\/plesk\/PMM\/msessions\/\/migration.log<br \/>\n\/var\/log\/plesk\/PMM\/rsessions\/\/migration.log<br \/>\n\/var\/log\/plesk\/PMM\/rsessions\/\/conflicts.log<br \/>\n\/var\/log\/plesk\/PMM\/logs\/migration.log<br \/>\n\/var\/log\/plesk\/PMM\/logs\/pmmcli.log<br \/>\n\/var\/log\/plesk\/PMM\/logs\/migration_handler.log<br \/>\nHorde<\/p>\n<p>Log is located in:<\/p>\n<p>\/var\/log\/psa-horde\/psa-horde.log<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>Apache configuration<br \/>\n\/etc\/httpd\/conf.d\/zzz_horde_vhost.conf<br \/>\n\/etc\/psa-webmail\/horde\/conf.d\/<br \/>\nHorde configuration:<br \/>\n\/etc\/psa-webmail\/horde\/<br \/>\nAtmail<\/p>\n<p>Log files are located in:<\/p>\n<p>\/var\/log\/atmail\/<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>Apache configuration<br \/>\n\/etc\/httpd\/conf.d\/zzz_atmail_vhost.conf<br \/>\n\/etc\/psa-webmail\/atmail\/conf.d\/<br \/>\nAtmail configuration:<br \/>\n\/etc\/psa-webmail\/atmail\/atmail.conf<br \/>\n\/var\/www\/atmail\/libs\/Atmail\/Config.php<br \/>\npsa-logrotate<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/usr\/local\/psa\/bin\/sw-engine-pleskrun \/usr\/local\/psa\/admin\/plib\/DailyMaintainance\/script.php<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/usr\/local\/psa\/etc\/logrotate.conf<br \/>\n\/usr\/local\/psa\/etc\/logrotate.d\/<br \/>\nSamba<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/smb start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/smb stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/smb restart<br \/>\nLog files are located in:<\/p>\n<p>\/var\/log\/plesk\/samba\/<\/p>\n<p>Configuration files are accessible at:<\/p>\n<p>\/etc\/samba\/smb.conf<br \/>\n\/etc\/samba\/smb.conf.include<br \/>\npsa-firewall<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-firewall start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-firewall stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-firewall restart<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/usr\/local\/psa\/var\/modules\/firewall\/firewall-active.sh<br \/>\n\/usr\/local\/psa\/var\/modules\/firewall\/firewall-emergency.sh<br \/>\n\/usr\/local\/psa\/var\/modules\/firewall\/firewall-new.sh<br \/>\npsa-firewall (IP forwarding)<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-firewall-forward start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-firewall-forward stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/psa-firewall-forward restart<br \/>\nConfiguration files are accessible at:<\/p>\n<p>\/usr\/local\/psa\/var\/modules\/firewall\/ip_forward.active<br \/>\n\/usr\/local\/psa\/var\/modules\/firewall\/ip_forward.saved<br \/>\npsa-vpn<\/p>\n<p>To start the service through the command line:<\/p>\n<p>\/etc\/init.d\/smb start<br \/>\nTo stop the service through the command line:<\/p>\n<p>\/etc\/init.d\/smb stop<br \/>\nTo restart the service through the command line:<\/p>\n<p>\/etc\/init.d\/smb restart<br \/>\nThe configuration file is accessible at:<\/p>\n<p>\/usr\/local\/psa\/var\/modules\/vpn\/openvpn.conf<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: http:\/\/download1.parallels.com\/Plesk\/Doc\/en-US\/online\/plesk-linux-advanced-administration-guide\/index.htm?fileName=68885.htm Managing Services from the Command Line and Viewing Service Logs This section describes how to stop, start, and restart services managed by Panel, and access their logs and configuration files.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-2202","post","type-post","status-publish","format-standard","hentry","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2202"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2202\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}