QNAP- web server wil niet starten

posted in: QNAP | 0

Re: Cannot get Multimedia Station or Web Server to Work

Postby schumaku » 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: Qthttpd.
apache: Could not reliably determine the server’s fully qualified domain name, using [your-NAS-LAN-IPhere] for ServerName
Apache httpd is stopped.
Starting Qthttpd services:Apache logs have been cleaned.

Would guess it’ will not be that straigt and error-free as shown here. Post your NAS shell output please.
Last edited by schumaku on Thu Apr 12, 2012 3:47 am, edited 1 time in total.
Reason: removed an error from a previous test…
User avatar
schumaku
Diamond Warrior
 
Posts: 13379
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland — Skype: schumaku
NAS Model: TS-509 Pro

Re: Cannot get Multimedia Station or Web Server to Work

Postby Daz99 » Wed Apr 11, 2012 4:12 am

Hello,
here is the output I get from using Putty to connect :- I hope this help.

[~] # /etc/init.d/Qthttpd.sh restart
Shutting down Qthttpd services: Qthttpd.
apache: 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
Apache httpd is stopped.
Starting Qthttpd services:Apache logs have been cleaned.
[~] #

Daz99
Cadet
 
Posts: 10
Joined: Sat Mar 20, 2010 4:47 am
NAS Model: TS-119/219

Re: Cannot get Multimedia Station or Web Server to Work

Postby schumaku » Thu Apr 12, 2012 3:50 am

Almost as expected – stop the Web server, restore the default Apache config file, and restart the Web server:

[~] # /etc/init.d/Qthttpd.sh stop
[~] # cp /etc/default_config/apache.conf /etc/config/apache/apache.conf
[~] # /etc/init.d/Qthttpd.sh start

User avatar
schumaku
Diamond Warrior
 
Posts: 13379
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland — Skype: schumaku
NAS Model: TS-509 Pro

Re: Cannot get Multimedia Station or Web Server to Work

Postby Daz99 » Thu Apr 12, 2012 4:51 am

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).
Daz99
Cadet
 
Posts: 10
Joined: Sat Mar 20, 2010 4:47 am
NAS Model: TS-119/219

Re: Cannot get Multimedia Station or Web Server to Work

Postby schumaku » Thu Apr 12, 2012 6:00 am

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?

Check if there is a “extra” folder in the apache cocnfig directory – and the nessecary files:

[~] # ls -ls /etc/config/apache/ | grep extra
4 drwxr-xr-x 2 admin administ 4096 Apr 8 11:24 extra/
[~] # ls -ls /etc/config/apache/extra/apache*
4 -rw-r–r– 1 admin administ 1470 Mar 8 08:13 /etc/config/apache/extra/apache-dav.conf
4 -rw-r–r– 1 admin administ 184 Apr 11 20:37 /etc/config/apache/extra/apache-msv2.conf
4 -rw-r–r– 1 admin administ 207 Apr 11 20:37 /etc/config/apache/extra/apache-musicstation.conf
4 -rw-r–r– 1 admin administ 208 Apr 11 20:37 /etc/config/apache/extra/apache-photo.conf
4 -rw-r–r– 1 admin administ 1592 Feb 6 13:10 /etc/config/apache/extra/apache-ssl.conf

If the folder exists, copy the default apache-*.conf files – similar as with apache.conf before. While we’re on it – also overwrite the factory default certificate in case you have no custom certificate installed:

[~] # /etc/init.d/Qthttpd.sh stop
[~] # cp /etc/default_config/apache-*.conf etc/config/apache/extra/
[~] # cp /etc/default_config/stunnel/stunnel.pem /etc/config/stunnel/
[~] # /etc/init.d/Qthttpd.sh start

That should do the job then….

User avatar
schumaku
Diamond Warrior
 
Posts: 13379
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland — Skype: schumaku
NAS Model: TS-509 Pro