{"id":455,"date":"2012-05-06T12:02:01","date_gmt":"2012-05-06T11:02:01","guid":{"rendered":"http:\/\/biemans.org\/blog\/?p=455"},"modified":"2013-11-11T13:03:14","modified_gmt":"2013-11-11T12:03:14","slug":"qnap-web-server-wil-niet-starten","status":"publish","type":"post","link":"http:\/\/www.biemans.org\/wp\/?p=455","title":{"rendered":"QNAP- web server wil niet starten"},"content":{"rendered":"<div id=\"p260651\">\n<div>\n<div>\n<h3><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#p260651\">Re: Cannot get Multimedia Station or Web Server to Work<\/a><\/h3>\n<p><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260651#p260651\"><img loading=\"lazy\" decoding=\"async\" title=\"Post\" src=\"http:\/\/forum.qnap.com\/styles\/prosilver_se\/imageset\/icon_post_target.gif\" alt=\"Post\" width=\"11\" height=\"9\" \/><\/a>by <strong><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\">schumaku<\/a><\/strong> \u00bb Tue Apr 10, 2012 5:40 pm<\/p>\n<div>First please try to (re)start the Web server from the NAS Linux shell:<\/p>\n[~] # \/etc\/init.d\/Qthttpd.sh restart<br \/>\nShutting down Qthttpd services: Qthttpd.<br \/>\napache: Could not reliably determine the server&#8217;s fully qualified domain name, using [your-NAS-LAN-IPhere] for ServerName<br \/>\nApache httpd is stopped.<br \/>\nStarting Qthttpd services:Apache logs have been cleaned.<\/p><\/div>\n<div><\/div>\n<div><\/div>\n<div>\nWould guess it&#8217; will not be that straigt and error-free as shown here. Post your NAS shell output please.<\/div>\n<div><!--more--><\/div>\n<div>Last edited by <a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\">schumaku<\/a> on Thu Apr 12, 2012 3:47 am, edited 1 time in total.<br \/>\n<strong>Reason:<\/strong> <em>removed an error from a previous test&#8230;<\/em><\/div>\n<\/div>\n<dl id=\"profile260651\">\n<dt><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/forum.qnap.com\/download\/file.php?avatar=6298_1201706099.gif\" alt=\"User avatar\" width=\"96\" height=\"85\" \/><\/a><br \/>\n<a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\">schumaku<\/a><\/dt>\n<dd>Diamond Warrior<\/dd>\n<dd>\u00a0<\/dd>\n<dd><strong>Posts:<\/strong> 13379<\/dd>\n<dd><strong>Joined:<\/strong> Mon Jan 21, 2008 4:41 pm<\/dd>\n<dd><strong>Location:<\/strong> Kloten (Zurich), Switzerland &#8212; Skype: schumaku<\/dd>\n<dd><strong>NAS Model:<\/strong> TS-509 Pro<\/dd>\n<\/dl>\n<div><a title=\"Top\" href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#wrap\">Top<\/a><\/div>\n<\/div>\n<\/div>\n<div id=\"p260755\">\n<div>\n<div>\n<h3><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#p260755\">Re: Cannot get Multimedia Station or Web Server to Work<\/a><\/h3>\n<p><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260755#p260755\"><img loading=\"lazy\" decoding=\"async\" title=\"Post\" src=\"http:\/\/forum.qnap.com\/styles\/prosilver_se\/imageset\/icon_post_target.gif\" alt=\"Post\" width=\"11\" height=\"9\" \/><\/a>by <strong><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=57798\">Daz99<\/a><\/strong> \u00bb Wed Apr 11, 2012 4:12 am<\/p>\n<div>Hello,<br \/>\nhere is the output I get from using Putty to connect :- I hope this help.<\/p>\n[~] # \/etc\/init.d\/Qthttpd.sh restart<br \/>\nShutting down Qthttpd services: Qthttpd.<br \/>\napache: Syntax error on line 3 of \/etc\/config\/apache\/apache.conf: Syntax error o n line 1 of \/etc\/config\/apache\/extra\/apache-ssl.conf: Cannot load \/root\/daily_bu ild\/3.5.x\/Model\/TS-419\/..\/..\/NasMgmt\/HTTP\/apache_install_tmp\/modules\/mod_ssl.so into server: \/root\/daily_build\/3.5.x\/Model\/TS-419\/..\/..\/NasMgmt\/HTTP\/apache_inst all_tmp\/modules\/mod_ssl.so: cannot open shared object file: No such file or dire ctory<br \/>\nApache httpd is stopped.<br \/>\nStarting Qthttpd services:Apache logs have been cleaned.<br \/>\n[~] #<\/p><\/div>\n<\/div>\n<dl id=\"profile260755\">\n<dt><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=57798\">Daz99<\/a><\/dt>\n<dd>Cadet<\/dd>\n<dd>\u00a0<\/dd>\n<dd><strong>Posts:<\/strong> 10<\/dd>\n<dd><strong>Joined:<\/strong> Sat Mar 20, 2010 4:47 am<\/dd>\n<dd><strong>NAS Model:<\/strong> TS-119\/219<\/dd>\n<\/dl>\n<div><a title=\"Top\" href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#wrap\">Top<\/a><\/div>\n<\/div>\n<\/div>\n<div id=\"p260939\">\n<div>\n<div>\n<h3><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#p260939\">Re: Cannot get Multimedia Station or Web Server to Work<\/a><\/h3>\n<p><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260939#p260939\"><img loading=\"lazy\" decoding=\"async\" title=\"Post\" src=\"http:\/\/forum.qnap.com\/styles\/prosilver_se\/imageset\/icon_post_target.gif\" alt=\"Post\" width=\"11\" height=\"9\" \/><\/a>by <strong><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\">schumaku<\/a><\/strong> \u00bb Thu Apr 12, 2012 3:50 am<\/p>\n<div>Almost as expected &#8211; stop the Web server, restore the default Apache config file, and restart the Web server:<\/p>\n[~] # \/etc\/init.d\/Qthttpd.sh stop<br \/>\n[~] # cp \/etc\/default_config\/apache.conf \/etc\/config\/apache\/apache.conf<br \/>\n[~] # \/etc\/init.d\/Qthttpd.sh start<\/p><\/div>\n<\/div>\n<dl id=\"profile260939\">\n<dt><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/forum.qnap.com\/download\/file.php?avatar=6298_1201706099.gif\" alt=\"User avatar\" width=\"96\" height=\"85\" \/><\/a><br \/>\n<a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\">schumaku<\/a><\/dt>\n<dd>Diamond Warrior<\/dd>\n<dd>\u00a0<\/dd>\n<dd><strong>Posts:<\/strong> 13379<\/dd>\n<dd><strong>Joined:<\/strong> Mon Jan 21, 2008 4:41 pm<\/dd>\n<dd><strong>Location:<\/strong> Kloten (Zurich), Switzerland &#8212; Skype: schumaku<\/dd>\n<dd><strong>NAS Model:<\/strong> TS-509 Pro<\/dd>\n<\/dl>\n<div><a title=\"Top\" href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#wrap\">Top<\/a><\/div>\n<\/div>\n<\/div>\n<div id=\"p260950\">\n<div>\n<div>\n<h3><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#p260950\">Re: Cannot get Multimedia Station or Web Server to Work<\/a><\/h3>\n<p><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260950#p260950\"><img loading=\"lazy\" decoding=\"async\" title=\"Post\" src=\"http:\/\/forum.qnap.com\/styles\/prosilver_se\/imageset\/icon_post_target.gif\" alt=\"Post\" width=\"11\" height=\"9\" \/><\/a>by <strong><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=57798\">Daz99<\/a><\/strong> \u00bb Thu Apr 12, 2012 4:51 am<\/p>\n<div>Thanks! That seems to work at least for the standard server (port 80). However, for the SSL connection (port 8081) I still cannot connect. Do I need to do something special to connect to this port ? (I am not sure I will use it for my web site but would be good to know).<\/div>\n<\/div>\n<dl id=\"profile260950\">\n<dt><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=57798\">Daz99<\/a><\/dt>\n<dd>Cadet<\/dd>\n<dd>\u00a0<\/dd>\n<dd><strong>Posts:<\/strong> 10<\/dd>\n<dd><strong>Joined:<\/strong> Sat Mar 20, 2010 4:47 am<\/dd>\n<dd><strong>NAS Model:<\/strong> TS-119\/219<\/dd>\n<\/dl>\n<div><a title=\"Top\" href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#wrap\">Top<\/a><\/div>\n<\/div>\n<\/div>\n<div>\n<h3><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#p260961\">Re: Cannot get Multimedia Station or Web Server to Work<\/a><\/h3>\n<p><a href=\"http:\/\/forum.qnap.com\/viewtopic.php?p=260961#p260961\"><img loading=\"lazy\" decoding=\"async\" title=\"Post\" src=\"http:\/\/forum.qnap.com\/styles\/prosilver_se\/imageset\/icon_post_target.gif\" alt=\"Post\" width=\"11\" height=\"9\" \/><\/a>by <strong><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\">schumaku<\/a><\/strong> \u00bb Thu Apr 12, 2012 6:00 am<\/p>\n<div>Assume you have SSL (https) enabled in the Web server configuration. Not spotted any more strange messages on starting the Web server from the shell?<\/p>\n<p>Check if there is a &#8220;extra&#8221; folder in the apache cocnfig directory &#8211; and the nessecary files:<\/p>\n[~] # ls -ls \/etc\/config\/apache\/ | grep extra<br \/>\n4 drwxr-xr-x 2 admin administ 4096 Apr 8 11:24 extra\/<br \/>\n[~] # ls -ls \/etc\/config\/apache\/extra\/apache*<br \/>\n4 -rw-r&#8211;r&#8211; 1 admin administ 1470 Mar 8 08:13 \/etc\/config\/apache\/extra\/apache-dav.conf<br \/>\n4 -rw-r&#8211;r&#8211; 1 admin administ 184 Apr 11 20:37 \/etc\/config\/apache\/extra\/apache-msv2.conf<br \/>\n4 -rw-r&#8211;r&#8211; 1 admin administ 207 Apr 11 20:37 \/etc\/config\/apache\/extra\/apache-musicstation.conf<br \/>\n4 -rw-r&#8211;r&#8211; 1 admin administ 208 Apr 11 20:37 \/etc\/config\/apache\/extra\/apache-photo.conf<br \/>\n4 -rw-r&#8211;r&#8211; 1 admin administ 1592 Feb 6 13:10 \/etc\/config\/apache\/extra\/apache-ssl.conf<\/p>\n<p>If the folder exists, copy the default apache-*.conf files &#8211; similar as with apache.conf before. While we&#8217;re on it &#8211; also overwrite the factory default certificate in case you have no custom certificate installed:<\/p>\n[~] # \/etc\/init.d\/Qthttpd.sh stop<br \/>\n[~] # cp \/etc\/default_config\/apache-*.conf etc\/config\/apache\/extra\/<br \/>\n[~] # cp \/etc\/default_config\/stunnel\/stunnel.pem \/etc\/config\/stunnel\/<br \/>\n[~] # \/etc\/init.d\/Qthttpd.sh start<\/p>\n<p>That should do the job then&#8230;.<\/p><\/div>\n<\/div>\n<dl id=\"profile260961\">\n<dt><a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/forum.qnap.com\/download\/file.php?avatar=6298_1201706099.gif\" alt=\"User avatar\" width=\"96\" height=\"85\" \/><\/a><br \/>\n<a href=\"http:\/\/forum.qnap.com\/memberlist.php?mode=viewprofile&amp;u=6298\">schumaku<\/a><\/dt>\n<dd>Diamond Warrior<\/dd>\n<dd>\u00a0<\/dd>\n<dd><strong>Posts:<\/strong> 13379<\/dd>\n<dd><strong>Joined:<\/strong> Mon Jan 21, 2008 4:41 pm<\/dd>\n<dd><strong>Location:<\/strong> Kloten (Zurich), Switzerland &#8212; Skype: schumaku<\/dd>\n<dd><strong>NAS Model:<\/strong> TS-509 Pro<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Re: Cannot get Multimedia Station or Web Server to Work by schumaku \u00bb Tue Apr 10, 2012 5:40 pm First please try to (re)start the Web server from the NAS Linux shell: [~] # \/etc\/init.d\/Qthttpd.sh restart Shutting down Qthttpd services: &hellip; <a href=\"http:\/\/www.biemans.org\/wp\/?p=455\">Continued<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"kt_blocks_editor_width":"","footnotes":""},"categories":[34],"tags":[],"class_list":["post-455","post","type-post","status-publish","format-standard","hentry","category-qnap"],"_links":{"self":[{"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=455"}],"version-history":[{"count":2,"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/455\/revisions"}],"predecessor-version":[{"id":457,"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/455\/revisions\/457"}],"wp:attachment":[{"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=455"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biemans.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}