Keith2 / lowendscript-ng

20 stars 10 forks source link

Error in connection to webserver #6

Closed gtom closed 11 years ago

gtom commented 11 years ago

Hi Keith2, your script to install friendica automatically is nice work. But I have some issues: I installed a VM on a XEN-Server in a private LAN for testing purposes as I always do.

First: To use wget without certificate-errors, I have to add an option, perhaps you should add that in your README: For script-downloading use: wget --no-check-certificate https://raw.github.com/Keith2/lowendscript-ng/master/setup-debian.sh

OK, first I tried to use wheezy (the config-file mentioned that it is ok to use wheezy).

This happens running the script with bash setup-debian.sh all (excerpt) WARNING: The following packages cannot be authenticated! libfcgi0ldbl spawn-fcgi fcgiwrap E: There are problems and -y was used without --force-yes fcgiwrap installed for fcgiwrap setup-debian.sh: line 398: /etc/nginx/fcgiwrap.conf: No such file or directory

Then I setup a new VM with squeeze according to your README: bash setup-debian.sh all bash setup-debian.sh friendica test.lan

this is the output (excerpt): ... Receiving objects: 100% (8222/8222), 38.26 MiB | 1.77 MiB/s, done. Resolving deltas: 100% (3015/3015), done. nginx: invalid option: "=" Restarting nginx: nginx. Enter admin email:

Don't know whether the invalid option causes a problem.

After finishing installation I tried to access friendica2.test.lan from another VM within same lan:

root@testen:~# ping friendica2.test.lan -c 4 PING friendica2.test.lan (10.1.2.24) 56(84) bytes of data. 64 bytes from 10.1.2.24: icmp_req=1 ttl=64 time=0.538 ms 64 bytes from 10.1.2.24: icmp_req=2 ttl=64 time=0.204 ms 64 bytes from 10.1.2.24: icmp_req=3 ttl=64 time=0.210 ms 64 bytes from 10.1.2.24: icmp_req=4 ttl=64 time=0.198 ms

--- friendica2.test.lan ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 0.198/0.287/0.538/0.145 ms root@testen:~#

Everything seems to be ok, next test:

root@testen:~# nmap friendica2.test.lan

Starting Nmap 5.00 ( http://nmap.org ) at 2013-04-02 02:16 CEST Interesting ports on 10.1.2.24: Not shown: 996 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 80/tcp open http 443/tcp open https MAC Address: 00:16:3E:09:1F:1F (Xensource)

Nmap done: 1 IP address (1 host up) scanned in 0.29 seconds root@testen:~#

Webserver seems to be running, now try to access webserver:

root@testen:~# lynx friendica2.test.lan Looking up 'friendica2.test.lan' first

Looking up friendica2.test.lan first Looking up friendica2.test.lan Making HTTP connection to friendica2.test.lan Sending HTTP request. HTTP request sent; waiting for response. Alert!: Unexpected network read error; connection aborted. Can't Access `http://friendica2.test.lan/' Alert!: Unable to access document.

lynx: Can't access startfile root@testen:~#

Same happens, if I try to access through a gui-webbrowser. Do you know what's going wrong?

Keith2 commented 11 years ago

nginx: invalid option: "=" wat the problem & fi in the wrong place. Update the script with wget --no-check-certificate --timestamping https://raw.github.com/Keith2/lowendscript-ng/master/setup-debian.sh

You should have run bash setup-debian.sh friendica friendica2.test.lan Not bash setup-debian.sh friendica test.lan