{"id":1095,"date":"2024-02-28T15:06:43","date_gmt":"2024-02-28T14:06:43","guid":{"rendered":"https:\/\/contecon.de\/picapportwiki\/?page_id=1095"},"modified":"2024-02-28T15:07:39","modified_gmt":"2024-02-28T14:07:39","slug":"installation-of-picapport-as-a-windows-service","status":"publish","type":"page","link":"https:\/\/contecon.de\/picapportwiki\/installation-of-picapport-as-a-windows-service\/","title":{"rendered":"Installation of PicApport as a Windows-Service"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1095\" class=\"elementor elementor-1095\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b75ad46 e-flex e-con-boxed e-con e-parent\" data-id=\"b75ad46\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6a65512 elementor-widget elementor-widget-heading\" data-id=\"6a65512\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.19.0 - 07-02-2024 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h2 class=\"elementor-heading-title elementor-size-default\">Installation of PicApport as a Windows-Service<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-ad4e14e e-flex e-con-boxed e-con e-parent\" data-id=\"ad4e14e\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1fdb93b elementor-widget elementor-widget-text-editor\" data-id=\"1fdb93b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.19.0 - 07-02-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<div class=\"confluence-information-macro confluence-information-macro-information conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"info\"><div class=\"confluence-information-macro-body\"><p>This site is not intended for beginners<\/p><\/div><\/div><p>\u00a0<\/p><p>It is possible to start the PicApport Server as a Windows-Service (Daemon). The following programs Of the Apache Commons Project are required:<\/p><ul><li>prunmgr.exe<\/li><li>prunsrv.exe<\/li><\/ul><p>Download these two programs from:\u00a0<a class=\"external-link\" href=\"http:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html\" rel=\"nofollow\">http:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html<\/a><\/p><p>For simplicity, we have packed everything you need in a zip file (<a href=\"https:\/\/wiki.picapport.com\/download\/attachments\/2261228\/PicApportServiceExample.zip?version=1&amp;modificationDate=1465223448509&amp;api=v2\" data-linked-resource-id=\"2261230\" data-linked-resource-version=\"1\" data-linked-resource-type=\"attachment\" data-linked-resource-default-alias=\"PicApportServiceExample.zip\" data-nice-type=\"Zip Archive\" data-linked-resource-content-type=\"application\/zip\" data-linked-resource-container-id=\"2261228\" data-linked-resource-container-version=\"2\">PicApportServiceExample.zip<\/a>) . Download the zip file and unpack its contents to a directory. E.g. C:\\PicApportService.<\/p><p>Further explanation can be found then in the file:<\/p><div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\"><div class=\"codeHeader panelHeader pdl\"><b>ReadMe-PicapportAsService.txt<\/b><\/div><div class=\"codeContent panelContent pdl\"><div><div id=\"highlighter_560558\" class=\"syntaxhighlighter sh-confluence nogutter  text\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"code\"><div class=\"container\" title=\"Hint: double-click to select code\"><div class=\"line number1 index0 alt2\"><code class=\"text plain\">(c) 2016 Contecon Software GmbH<\/code><\/div><div class=\"line number2 index1 alt1\"><code class=\"text plain\">How to install PicApport as a Windows Service<\/code><\/div><div class=\"line number3 index2 alt2\">\u00a0<\/div><div class=\"line number4 index3 alt1\"><code class=\"text plain\">We have successfully tested with an oracle 1.8.0_11-b12 JVM<\/code><\/div><div class=\"line number5 index4 alt2\"><code class=\"text plain\">Should also work with 1.7 Oracle or OpenJDK<\/code><\/div><div class=\"line number6 index5 alt1\">\u00a0<\/div><div class=\"line number7 index6 alt2\"><code class=\"text plain\">Unzip PicApportServiceExample.zip in the following folder-structure<\/code><\/div><div class=\"line number8 index7 alt1\">\u00a0<\/div><div class=\"line number9 index8 alt2\"><code class=\"text plain\">C:\\PicApportService\\ReadMe-PicapportAsService.txt\u00a0\u00a0\u00a0 --&gt; this file<\/code><\/div><div class=\"line number10 index9 alt1\"><code class=\"text plain\">C:\\PicApportService\\picapport-headless_v6.1.00.jar\u00a0\u00a0 --&gt; at least version 3.2.1 January 26 2015<\/code><\/div><div class=\"line number11 index10 alt2\">\u00a0<\/div><div class=\"line number12 index11 alt1\"><code class=\"text plain\">C:\\PicApportService\\.picapport\\<\/code><\/div><div class=\"line number13 index12 alt2\"><code class=\"text plain\">C:\\PicApportService\\.picapport\\picapport.properties\u00a0 --&gt; edit this file if photos are stored in a different location<\/code><\/div><div class=\"line number14 index13 alt1\"><code class=\"text plain\">C:\\PicApportService\\photos\\\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 --&gt; example directory where fotos are stored<\/code><\/div><div class=\"line number15 index14 alt2\">\u00a0<\/div><div class=\"line number16 index15 alt1\"><code class=\"text plain\">C:\\PicApportService\\ApacheLogs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 --&gt; Logfiles of Apache willl be stored here<\/code><\/div><div class=\"line number17 index16 alt2\"><code class=\"text plain\">C:\\PicApportService\\PicApportEnv.cmd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 --&gt; Used by other .cmd files to configure Environment<\/code><\/div><div class=\"line number18 index17 alt1\"><code class=\"text plain\">C:\\PicApportService\\ApachePrunsrvInstall.cmd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 --&gt; Sample batchfile to install service<\/code><\/div><div class=\"line number19 index18 alt2\"><code class=\"text plain\">C:\\PicApportService\\ApachePrunsrvUninstall.cmd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 --&gt; Sample batchfile to uninstall service<\/code><\/div><div class=\"line number20 index19 alt1\"><code class=\"text plain\">C:\\PicApportService\\ApachePrunmgrEdit.cmd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 --&gt; Sample batchfile to view\/edit service data<\/code><\/div><div class=\"line number21 index20 alt2\">\u00a0<\/div><div class=\"line number22 index21 alt1\"><code class=\"text plain\">C:\\PicApportService\\prunmgr.exe\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 --&gt; download from\u00a0<a href=\"http:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html\">http:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html<\/a><\/code><\/div><div class=\"line number23 index22 alt2\"><code class=\"text plain\">C:\\PicApportService\\prunsrv.exe\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 --&gt; download from\u00a0<a href=\"http:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html%C2%A0\">http:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html\u00a0<\/a><\/code><\/div><div class=\"line number24 index23 alt1\">\u00a0<\/div><div class=\"line number25 index24 alt2\"><code class=\"text plain\">Steps to install and verify a PicApport Service<\/code><\/div><div class=\"line number26 index25 alt1\">\u00a0<\/div><div class=\"line number27 index26 alt2\"><code class=\"text plain\">1. Make sure Java Runtime version is available<\/code><\/div><div class=\"line number28 index27 alt1\"><code class=\"text plain\">2. Create a dirctory structure as described above or similar<\/code><\/div><div class=\"line number29 index28 alt2\"><code class=\"text plain\">3. Download prunmgr and prunsrv as described above<\/code><\/div><div class=\"line number30 index29 alt1\"><code class=\"text plain\">4. Edit C:\\PicApportService\\.picapport\\picapport.properties if you have a different photo-directory<\/code><\/div><div class=\"line number31 index30 alt2\"><code class=\"text plain\">5. Change to directory\u00a0 C:\\PicApportService<\/code><\/div><div class=\"line number32 index31 alt1\"><code class=\"text plain\">6. Run C:\\PicApportService\\ApachePrunsrvInstall.cmd<\/code><\/div><div class=\"line number33 index32 alt2\"><code class=\"text plain\">7. Check if service has been installed with windows system console<\/code><\/div><div class=\"line number34 index33 alt1\"><code class=\"text plain\">8. To start the service enter: net start PicApport<\/code><\/div><div class=\"line number35 index34 alt2\"><code class=\"text plain\">9. To stop the service enter: net stop PicApport<\/code><\/div><div class=\"line number36 index35 alt1\">\u00a0<\/div><div class=\"line number37 index36 alt2\"><code class=\"text plain\">Important:<\/code><\/div><div class=\"line number38 index37 alt1\"><code class=\"text plain\">==========<\/code><\/div><div class=\"line number39 index38 alt2\"><code class=\"text plain\">Try at least one time to stop the service and check the<\/code><\/div><div class=\"line number40 index39 alt1\"><code class=\"text plain\">picapport logfiles in C:\\PicApportService\\.picapport\\logfiles<\/code><\/div><div class=\"line number41 index40 alt2\"><code class=\"text plain\">Check the log files for successful shutdown like:<\/code><\/div><div class=\"line number42 index41 alt1\">\u00a0<\/div><div class=\"line number43 index42 alt2\"><code class=\"text plain\">......<\/code><\/div><div class=\"line number44 index43 alt1\"><code class=\"text plain\">MSG\u00a0 @ 17:31:24.698 PicApport.shutdown initiated...<\/code><\/div><div class=\"line number45 index44 alt2\"><code class=\"text plain\">.........<\/code><\/div><div class=\"line number46 index45 alt1\"><code class=\"text plain\">MSG\u00a0 @ 17:31:24.806 PicApport.shutdown completed.<\/code><\/div><\/div><\/td><\/tr><\/tbody><\/table><\/div><\/div><\/div><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Installation of PicApport as a Windows-Service This site is not intended for beginners \u00a0 It is possible to start the PicApport Server as a Windows-Service (Daemon). The following programs Of the Apache Commons Project are required: prunmgr.exe prunsrv.exe Download these two programs from:\u00a0http:\/\/commons.apache.org\/proper\/commons-daemon\/procrun.html For simplicity, we have packed everything you need in a zip file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1095","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/comments?post=1095"}],"version-history":[{"count":4,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1095\/revisions"}],"predecessor-version":[{"id":1099,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1095\/revisions\/1099"}],"wp:attachment":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/media?parent=1095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}