Closed Hwurzburg closed 5 years ago
had to add the old apache2 stuff...created a PR to the readme to update it
I think you just did not get the point about different instructions for stretch, and you just have to follow only the texts saying for stretch
I admit, there should be a more clear difference between the "normal" instructions, and the differnce instructions that you have to follow, or the instructions should only contain the steps for raspbian stretch
But anyway it is syntactically totally clear formulated, that "for stretch" parts are the replacement instructions, and no one in the world would say to you that you have to install php5 and php7 in parallel.
If there is no apache in stretch, why the heck would someone want you to edit a config that does not exist? In fact no one does.
I distilled the readme, as you should have read, to get the right steps:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get -y install git lighttpd php7.0 php7.0-fpm php7.0-curl php7.0-gd php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-readline php7.0-xml php7.0-zip php-pear expect geoip-bin shellinabox
sudo sed -i -e "s/^max_execution_time =.*/max_execution_time = 300/g" /etc/php/7.0/fpm/php.ini
echo "www-data ALL=(ALL) NOPASSWD: ALL" | sudo tee --append /etc/sudoers.d/010_pi-nopasswd
sudo lighttpd-enable-mod fastcgi-php
sudo service php7.0-fpm force-reload
sudo service lighttpd force-reload
Then run: sudo sed -i -e "s/SHELLINABOX_ARGS=.*/SHELLINABOX_ARGS=\"--no-beep -t\"/g" /etc/default/shellinabox
Then run: sudo service lighttpd force-reload
EXTRA NOTE: Here you should test that lighttpd is running and listens on port 80
sudo apt-get install net-tools; sudo netstat -tlpn | grep :80
Steps 4-8 are universal.
That is exactly what I did the first time....it would not connect...doing everything including Apache worked....it connects from all local machines ...I'll restart from a clean system once again and report
Its essential to understand what the components do, and how they relate: Both lighttpd and apache are webservers, and they open port 80 to provide the http:// access. They cannot use the port 80 at the same time, but if one of them is installed and working, you should see this port open.
In Debian Stretch the services' control is done by systemd, and the tool that helps you control their start/stop is systemctl
You can check a single service by issuing:
systemctl status lighttpd
The most important part of the response:
lighttpd.service - Lighttpd Daemon Loaded: loaded Active: active (running) Process: 593
Since you faced the issue, that lighttpd seemed not to serve on port 80, the output of the above command could be a great help.
Then, PHP is the part that generates the content: you can have PHP working with apache2, and lighttp too. The way PHP receives the job, and replies the content makes a difference: with apache2 you have a php-module as easy way to use PHP, but you can use fastcgi too, while with lighttpd you have the fastcgi protocol. And in this case the newer is better, so no matter which webserver you choose, the PHP7 is the version for you.
Also if you can connect to the webserver, but the php does not generate the right content, then there are possible error logs in /var/log/apache2, or /var/log/lighttpd , and if you have php-fpm there may be /var/log/php..-fpm.log (depending on the php version the .. may contain that)
restarted from scratch on new system disk.....same issue....lighttpd is not running: lighttpd.service - Lighttpd Daemon Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2018-10-28 13:08:30 UTC; 5min ago Process: 14092 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status Process: 14079 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, st Main PID: 14092 (code=exited, status=255)
Oct 28 13:08:30 RPI3B systemd[1]: lighttpd.service: Unit entered failed state. Oct 28 13:08:30 RPI3B systemd[1]: lighttpd.service: Failed with result 'exit-code'. Oct 28 13:08:30 RPI3B systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart. Oct 28 13:08:30 RPI3B systemd[1]: Stopped Lighttpd Daemon. Oct 28 13:08:30 RPI3B systemd[1]: lighttpd.service: Start request repeated too quickly. Oct 28 13:08:30 RPI3B systemd[1]: Failed to start Lighttpd Daemon. Oct 28 13:08:30 RPI3B systemd[1]: lighttpd.service: Unit entered failed state. Oct 28 13:08:30 RPI3B systemd[1]: lighttpd.service: Failed with result 'exit-code'.
This seems to be a configuration issue, so examine further, lets look what the config-test says:
lighttpd -t -f /etc/lighttpd/lighttpd.conf
@Hwurzburg Please contact me via the means on my site so we can work closely on this and get this issue resolved and readme updated.
@mitchellurgero could you find out what exactly caused the config problem ?
what exactly caused the config problem ?
Honestly sounds like they might not be following the instructions fully, or debian/raspbian updated their packages and the names we are using are currently outdated.
Followed exactly....I will post a complete installation capture from the terminal later today maybe it i will help diagnose
Followed exactly....I will post a complete installation capture from the terminal later today maybe it i will help diagnose
Hello, yes I was not saying you didn't it was just a theory. the instructions are written poorly to say the least.
That said, any logs you have, and even output of the install would really help!
Instructions only a little unclear...first time thru, I followed what you intended...only when it failed did I load Apache2...Here it is...from scratch...configure Raspian, load Pivpn, load Openrsd... On Tuesday, October 30, 2018, 11:08:07 AM CDT, Mitchell Urgero notifications@github.com wrote:
Followed exactly....I will post a complete installation capture from the terminal later today maybe it i will help diagnose
Hello, yes I was not saying you didn't it was just a theory. the instructions are written poorly to say the least.
That said, any logs you have, and even output of the install would really help!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
login as: pi pi@192.168.0.5's password: Linux raspberrypi 4.14.71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Oct 9 12:44:27 2018
SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
pi@raspberrypi:~ $ sudo raspi-config Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
Current default time zone: 'US/Central' Local time is now: Tue Oct 30 10:34:18 CDT 2018. Universal Time is now: Tue Oct 30 15:34:18 UTC 2018.
Created symlink /etc/systemd/system/multi-user.target.wants/vncserver-x11-serviced.service → /usr/lib/systemd/system/vncserver-x11-serviced.service. pi@raspberrypi:~ $ ^C pi@raspberrypi:~ $ sudo reboot login as: pi pi@192.168.0.5's password: Linux raspberrypi0W 4.14.71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Oct 30 10:36:29 2018 pi@raspberrypi0W:~ $ sudo apt-get update && sudo apt-get upgrade Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB] Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB] Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB] Get:4 http://archive.raspberrypi.org/debian stretch/main armhf Packages [181 kB] Get:5 http://raspbian.raspberrypi.org/raspbian stretch/non-free armhf Packages [95.2 kB] Fetched 12.0 MB in 35s (338 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: libjavascriptcoregtk-4.0-18 libruby2.3 libssh-gcrypt-4 libwebkit2gtk-4.0-37 python-rpi.gpio python3-rpi.gpio ruby2.3 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 14.8 MB of archives. After this operation, 2,301 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.raspberrypi.org/debian stretch/main armhf python-rpi.gpio armhf 0.6.4~stretch-1 [23.4 kB] Get:3 http://archive.raspberrypi.org/debian stretch/main armhf python3-rpi.gpio armhf 0.6.4~stretch-1 [23.5 kB] Get:2 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libwebkit2gtk-4.0-37 armhf 2.18.6-1~deb9u1+rpi1 [9,709 kB] Get:5 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf libruby2.3 armhf 2.3.3-1+deb9u3+rpi1 [2,865 kB] Get:6 http://raspbian.phirephly.design/raspbian stretch/main armhf libssh-gcrypt-4 armhf 0.7.3-2+deb9u1 [144 kB] Get:4 http://raspbian.mirror.constant.com/raspbian stretch/main armhf libjavascriptcoregtk-4.0-18 armhf 2.18.6-1~deb9u1+rpi1 [1,846 kB] Get:7 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf ruby2.3 armhf 2.3.3-1+deb9u3+rpi1 [188 kB] Fetched 14.8 MB in 27s (541 kB/s) Reading changelogs... Done (Reading database ... 105923 files and directories currently installed.) Preparing to unpack .../0-libwebkit2gtk-4.0-37_2.18.6-1~deb9u1+rpi1_armhf.deb ... Unpacking libwebkit2gtk-4.0-37:armhf (2.18.6-1~deb9u1+rpi1) over (2.16.6-0+deb9u1+rpi1) ... Preparing to unpack .../1-libjavascriptcoregtk-4.0-18_2.18.6-1~deb9u1+rpi1_armhf.deb ... Unpacking libjavascriptcoregtk-4.0-18:armhf (2.18.6-1~deb9u1+rpi1) over (2.16.6-0+deb9u1+rpi1) ... Preparing to unpack .../2-libruby2.3_2.3.3-1+deb9u3+rpi1_armhf.deb ... Unpacking libruby2.3:armhf (2.3.3-1+deb9u3+rpi1) over (2.3.3-1+deb9u1+rpi1) ... Preparing to unpack .../3-libssh-gcrypt-4_0.7.3-2+deb9u1_armhf.deb ... Unpacking libssh-gcrypt-4:armhf (0.7.3-2+deb9u1) over (0.7.3-2) ... Preparing to unpack .../4-python-rpi.gpio_0.6.4~stretch-1_armhf.deb ... Unpacking python-rpi.gpio (0.6.4~stretch-1) over (0.6.3~stretch-1) ... Preparing to unpack .../5-python3-rpi.gpio_0.6.4~stretch-1_armhf.deb ... Unpacking python3-rpi.gpio (0.6.4~stretch-1) over (0.6.3~stretch-1) ... Preparing to unpack .../6-ruby2.3_2.3.3-1+deb9u3+rpi1_armhf.deb ... Unpacking ruby2.3 (2.3.3-1+deb9u3+rpi1) over (2.3.3-1+deb9u1+rpi1) ... Setting up python3-rpi.gpio (0.6.4~stretch-1) ... Setting up libssh-gcrypt-4:armhf (0.7.3-2+deb9u1) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up libjavascriptcoregtk-4.0-18:armhf (2.18.6-1~deb9u1+rpi1) ... Setting up libruby2.3:armhf (2.3.3-1+deb9u3+rpi1) ... Setting up python-rpi.gpio (0.6.4~stretch-1) ... Setting up libwebkit2gtk-4.0-37:armhf (2.18.6-1~deb9u1+rpi1) ... Setting up ruby2.3 (2.3.3-1+deb9u3+rpi1) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... pi@raspberrypi0W:~ $ curl -L https://install.pivpn.io/ | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 178 100 178 0 0 299 0 --:--:-- --:--:-- --:--:-- 300 100 53084 100 53084 0 0 45179 0 0:00:01 0:00:01 --:--:-- 236k |
---|
::: CA Complete.
Using configuration from /etc/openvpn/easy-rsa/openssl-easyrsa.cnf Can't open /etc/openvpn/easy-rsa/pki/index.txt.attr for reading, No such file or directory 3069239296:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:74:fopen('/etc/openvpn/easy-rsa/pki/index.txt.attr','r') 3069239296:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:81: Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows commonName :ASN.1 12:'server_4ntdw5CD5uqgn6wA' Certificate is to be certified until Oct 27 15:52:01 2028 GMT (3650 days)
Write out database with 1 new entries Data Base Updated
Note: using Easy-RSA configuration from: ./vars Using configuration from /etc/openvpn/easy-rsa/openssl-easyrsa.cnf
An updated CRL has been created. CRL file: /etc/openvpn/easy-rsa/pki/crl.pem
net.ipv4.ip_forward = 1 run-parts: executing /usr/share/netfilter-persistent/plugins.d/15-ip4tables save run-parts: executing /usr/share/netfilter-persistent/plugins.d/25-ip6tables save ::: Using Google servers. ::: Install Complete... ::: Restarting services... Synchronizing state of openvpn.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable openvpn ::: done. ::: ::: Installation Complete! ::: Now run 'pivpn add' to create an ovpn profile for each of your devices. ::: Run 'pivpn help' to see what else you can do! ::: It is strongly recommended you reboot after installation. ::: ::: The install log is located at: /etc/pivpn/install.log pi@raspberrypi0W:~ $ sudo reboot login as: pi pi@192.168.0.5's password: Linux raspberrypi0W 4.14.71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Oct 30 10:54:31 2018 pi@raspberrypi0W:~ $ sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get -y install git lighttpd php7.0 php7.0-fpm php7.0-curl php7.0-gd php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-readline php7.0-xml php7.0-zip php-pear expect geoip-bin shellinabox Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done expect is already the newest version (5.45-7+deb9u1). git is already the newest version (1:2.11.0-3+deb9u4). The following additional packages will be installed: libfam0 libmcrypt4 libzip4 php-cli php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache spawn-fcgi Suggested packages: fam libmcrypt-dev mcrypt rrdtool php5-cgi apache2-utils lighttpd-doc The following NEW packages will be installed: geoip-bin libfam0 libmcrypt4 libzip4 lighttpd php-cli php-common php-pear php7.0 php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-opcache php7.0-readline php7.0-xml php7.0-zip shellinabox spawn-fcgi 0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded. Need to get 4,287 kB of archives. After this operation, 17.4 MB of additional disk space will be used. Get:1 http://raspbian-us.ngc292.space/raspbian stretch/main armhf geoip-bin armhf 1.6.9-4 [56.2 kB] Get:2 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libfam0 armhf 2.7.0-17.2 [24.6 kB] Get:3 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libmcrypt4 armhf 2.5.8-3.3 [64.2 kB] Get:4 http://mirrors.gigenet.com/raspbian/raspbian stretch/main armhf libzip4 armhf 1.1.2-1.1 [34.6 kB] Get:5 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf lighttpd armhf 1.4.45-1 [256 kB] Get:7 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf php7.0-common armhf 7.0.30-0+deb9u1 [484 kB] Get:8 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf php7.0-json armhf 7.0.30-0+deb9u1 [15.2 kB] Get:9 http://raspbian-us.ngc292.space/raspbian stretch/main armhf php7.0-opcache armhf 7.0.30-0+deb9u1 [65.2 kB] Get:10 http://raspbian.mirror.constant.com/raspbian stretch/main armhf php7.0-readline armhf 7.0.30-0+deb9u1 [10.8 kB] Get:11 http://raspbian-us.ngc292.space/raspbian stretch/main armhf php7.0-cli armhf 7.0.30-0+deb9u1 [1,052 kB] Get:12 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf php-cli all 1:7.0+49 [5,098 B] Get:14 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf php-pear all 1:1.10.1+submodules+notgz-9 [282 kB] Get:16 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf php7.0 all 7.0.30-0+deb9u1 [53.4 kB] Get:17 http://raspbian-us.ngc292.space/raspbian stretch/main armhf php7.0-curl armhf 7.0.30-0+deb9u1 [24.6 kB] Get:6 http://raspbian.phirephly.design/raspbian stretch/main armhf php-common all 1:49 [14.1 kB] Get:18 http://raspbian.mirror.constant.com/raspbian stretch/main armhf php7.0-gd armhf 7.0.30-0+deb9u1 [21.9 kB] Get:19 http://raspbian.mirror.constant.com/raspbian stretch/main armhf php7.0-intl armhf 7.0.30-0+deb9u1 [102 kB] Get:20 http://raspbian.mirror.constant.com/raspbian stretch/main armhf php7.0-mbstring armhf 7.0.30-0+deb9u1 [414 kB] Get:21 http://mirrors.syringanetworks.net/raspbian/raspbian stretch/main armhf php7.0-mcrypt armhf 7.0.30-0+deb9u1 [12.7 kB] Get:22 http://raspbian.mirror.constant.com/raspbian stretch/main armhf php7.0-zip armhf 7.0.30-0+deb9u1 [17.3 kB] Get:23 http://raspbian-us.ngc292.space/raspbian stretch/main armhf shellinabox armhf 2.20 [116 kB] Get:13 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf php7.0-xml armhf 7.0.30-0+deb9u1 [87.0 kB] Get:15 http://mirror.us.leaseweb.net/raspbian/raspbian stretch/main armhf php7.0-fpm armhf 7.0.30-0+deb9u1 [1,060 kB] Get:24 http://mirror.sjc02.svwh.net/raspbian/raspbian stretch/main armhf spawn-fcgi armhf 1.6.4-1 [13.8 kB] Fetched 4,287 kB in 17s (250 kB/s) Selecting previously unselected package geoip-bin. (Reading database ... 106189 files and directories currently installed.) Preparing to unpack .../00-geoip-bin_1.6.9-4_armhf.deb ... Unpacking geoip-bin (1.6.9-4) ... Selecting previously unselected package libfam0:armhf. Preparing to unpack .../01-libfam0_2.7.0-17.2_armhf.deb ... Unpacking libfam0:armhf (2.7.0-17.2) ... Selecting previously unselected package libmcrypt4. Preparing to unpack .../02-libmcrypt4_2.5.8-3.3_armhf.deb ... Unpacking libmcrypt4 (2.5.8-3.3) ... Selecting previously unselected package libzip4:armhf. Preparing to unpack .../03-libzip4_1.1.2-1.1_armhf.deb ... Unpacking libzip4:armhf (1.1.2-1.1) ... Selecting previously unselected package lighttpd. Preparing to unpack .../04-lighttpd_1.4.45-1_armhf.deb ... Unpacking lighttpd (1.4.45-1) ... Selecting previously unselected package php-common. Preparing to unpack .../05-php-common_1%3a49_all.deb ... Unpacking php-common (1:49) ... Selecting previously unselected package php7.0-common. Preparing to unpack .../06-php7.0-common_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-common (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-json. Preparing to unpack .../07-php7.0-json_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-json (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-opcache. Preparing to unpack .../08-php7.0-opcache_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-opcache (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-readline. Preparing to unpack .../09-php7.0-readline_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-readline (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-cli. Preparing to unpack .../10-php7.0-cli_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-cli (7.0.30-0+deb9u1) ... Selecting previously unselected package php-cli. Preparing to unpack .../11-php-cli_1%3a7.0+49_all.deb ... Unpacking php-cli (1:7.0+49) ... Selecting previously unselected package php7.0-xml. Preparing to unpack .../12-php7.0-xml_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-xml (7.0.30-0+deb9u1) ... Selecting previously unselected package php-pear. Preparing to unpack .../13-php-pear_1%3a1.10.1+submodules+notgz-9_all.deb ... Unpacking php-pear (1:1.10.1+submodules+notgz-9) ... Selecting previously unselected package php7.0-fpm. Preparing to unpack .../14-php7.0-fpm_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-fpm (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0. Preparing to unpack .../15-php7.0_7.0.30-0+deb9u1_all.deb ... Unpacking php7.0 (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-curl. Preparing to unpack .../16-php7.0-curl_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-curl (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-gd. Preparing to unpack .../17-php7.0-gd_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-gd (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-intl. Preparing to unpack .../18-php7.0-intl_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-intl (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-mbstring. Preparing to unpack .../19-php7.0-mbstring_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-mbstring (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-mcrypt. Preparing to unpack .../20-php7.0-mcrypt_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-mcrypt (7.0.30-0+deb9u1) ... Selecting previously unselected package php7.0-zip. Preparing to unpack .../21-php7.0-zip_7.0.30-0+deb9u1_armhf.deb ... Unpacking php7.0-zip (7.0.30-0+deb9u1) ... Selecting previously unselected package shellinabox. Preparing to unpack .../22-shellinabox_2.20_armhf.deb ... Unpacking shellinabox (2.20) ... Selecting previously unselected package spawn-fcgi. Preparing to unpack .../23-spawn-fcgi_1.6.4-1_armhf.deb ... Unpacking spawn-fcgi (1.6.4-1) ... Setting up libfam0:armhf (2.7.0-17.2) ... Setting up geoip-bin (1.6.9-4) ... Setting up libzip4:armhf (1.1.2-1.1) ... Setting up spawn-fcgi (1.6.4-1) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Setting up php-common (1:49) ... Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer. Setting up shellinabox (2.20) ... Setting up lighttpd (1.4.45-1) ... Created symlink /etc/systemd/system/multi-user.target.wants/lighttpd.service → /lib/systemd/system/lighttpd.service. Processing triggers for systemd (232-25+deb9u4) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up php7.0-common (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/calendar.ini with new version
Creating config file /etc/php/7.0/mods-available/ctype.ini with new version
Creating config file /etc/php/7.0/mods-available/exif.ini with new version
Creating config file /etc/php/7.0/mods-available/fileinfo.ini with new version
Creating config file /etc/php/7.0/mods-available/ftp.ini with new version
Creating config file /etc/php/7.0/mods-available/gettext.ini with new version
Creating config file /etc/php/7.0/mods-available/iconv.ini with new version
Creating config file /etc/php/7.0/mods-available/pdo.ini with new version
Creating config file /etc/php/7.0/mods-available/phar.ini with new version
Creating config file /etc/php/7.0/mods-available/posix.ini with new version
Creating config file /etc/php/7.0/mods-available/shmop.ini with new version
Creating config file /etc/php/7.0/mods-available/sockets.ini with new version
Creating config file /etc/php/7.0/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/7.0/mods-available/sysvsem.ini with new version
Creating config file /etc/php/7.0/mods-available/sysvshm.ini with new version
Creating config file /etc/php/7.0/mods-available/tokenizer.ini with new version Setting up php7.0-xml (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/dom.ini with new version
Creating config file /etc/php/7.0/mods-available/simplexml.ini with new version
Creating config file /etc/php/7.0/mods-available/wddx.ini with new version
Creating config file /etc/php/7.0/mods-available/xml.ini with new version
Creating config file /etc/php/7.0/mods-available/xmlreader.ini with new version
Creating config file /etc/php/7.0/mods-available/xmlwriter.ini with new version
Creating config file /etc/php/7.0/mods-available/xsl.ini with new version Setting up php7.0-intl (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/intl.ini with new version Setting up libmcrypt4 (2.5.8-3.3) ... Setting up php7.0-readline (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/readline.ini with new version Setting up php7.0-opcache (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/opcache.ini with new version Setting up php7.0-mbstring (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/mbstring.ini with new version Setting up php7.0-gd (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/gd.ini with new version Setting up php7.0-mcrypt (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/mcrypt.ini with new version Setting up php7.0-curl (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/curl.ini with new version Setting up php7.0-zip (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/zip.ini with new version Setting up php7.0-json (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/mods-available/json.ini with new version Setting up php7.0-cli (7.0.30-0+deb9u1) ... update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in auto mode update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in auto mode update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode
Creating config file /etc/php/7.0/cli/php.ini with new version Setting up php7.0-fpm (7.0.30-0+deb9u1) ...
Creating config file /etc/php/7.0/fpm/php.ini with new version Created symlink /etc/systemd/system/multi-user.target.wants/php7.0-fpm.service → /lib/systemd/system/php7.0-fpm.service. Setting up php-cli (1:7.0+49) ... Setting up php-pear (1:1.10.1+submodules+notgz-9) ... Setting up php7.0 (7.0.30-0+deb9u1) ... Processing triggers for systemd (232-25+deb9u4) ... pi@raspberrypi0W:~ $ sudo sed -i -e "s/^max_execution_time =./max_execution_time = 300/g" /etc/php/7.0/fpm/php.ini pi@raspberrypi0W:~ $ echo "www-data ALL=(ALL) NOPASSWD: ALL" | sudo tee --append /etc/sudoers.d/010_pi-nopasswd www-data ALL=(ALL) NOPASSWD: ALL pi@raspberrypi0W:~ $ sudo lighttpd-enable-mod fastcgi-php Met dependency: fastcgi Enabling fastcgi-php: ok Enabling fastcgi: ok Run "service lighttpd force-reload" to enable changes pi@raspberrypi0W:~ $ sudo service php7.0-fpm force-reload pi@raspberrypi0W:~ $ sudo service lighttpd force-reload pi@raspberrypi0W:~ $ sudo sed -i -e "s/SHELLINABOX_ARGS=./SHELLINABOX_ARGS=\"--no-beep -t\"/g" /etc/default/shellinabox pi@raspberrypi0W:~ $ sudo service lighttpd force-reload pi@raspberrypi0W:~ $ cd /var/www/html pi@raspberrypi0W:/var/www/html $ rm -f index.html pi@raspberrypi0W:/var/www/html $ git clone https://github.com/mitchellurgero/openrsd fatal: could not create work tree dir 'openrsd': Permission denied pi@raspberrypi0W:/var/www/html $ sudo git clone https://github.com/mitchellurgero/openrsd Cloning into 'openrsd'... remote: Enumerating objects: 6, done. remote: Counting objects: 100% (6/6), done. remote: Compressing objects: 100% (6/6), done. remote: Total 1793 (delta 2), reused 0 (delta 0), pack-reused 1787 Receiving objects: 100% (1793/1793), 2.74 MiB | 1.10 MiB/s, done. Resolving deltas: 100% (642/642), done. pi@raspberrypi0W:/var/www/html $
After this trying to connect to 192.168.0.5 either from a host on the subnet or from a browser on the Pi itself yeilds: This site can’t be reached 192.168.0.5 refused to connect. Search Google for openrsd ERR_CONNECTION_REFUSED
try to see what the following commands responds:
lighttpd -t -f /etc/lighttpd/lighttpd.conf
fatal: could not create work tree dir 'openrsd': Permission denied
I do not see you chaning the DIR owner and group from root:root to www-data:www-data in here.
That fatal is because, at first he did a non-sudo git-clone, but look at the next line, with sudo, git-clone works for him
The unreachable port 80 is the main problem, i dont know what could cause that in the lighttpd config
the readme says nothing about changing permissions of a directory....what should I do?
First please try this:
sudo lighttpd -t -f /etc/lighttpd/lighttpd.conf
Syntax ok trying the web gui says the same thing err_connection-_refused
@gnanet >That fatal is because, at first he did a non-sudo git-clone, but look at the next line, with sudo, git-clone works for him
Yes the fatal error is because of that HOWEVER now the openrsd dir is owned by ROOT because of the SUDO before the git pull (Which was my ppoint.)
@Hwurzburg what is the output of sudo netstat -anop | grep 80
Also send out put of sudo systemctl status lighttpd.service
Make sure not to run both apache2 and lighttpd together. Without re-configuring one to listen on a different port, one will always fail to start.
the readme says nothing about changing permissions of a directory....what should I do?
It should have been in there, I will fix that now.
if the syntax is ok, i dont see why it exited with 255 (which in real means the exit code is out of rnage)
Active: failed (Result: exit-code) since Sun 2018-10-28 13:08:30 UTC; 5min ago Process: 14092 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status Process: 14079 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, st Main PID: 14092 (code=exited, status=255)
@Hwurzburg check either sudo netstat -anop | grep 80
as suggested by @mitchellurgero
or sudo netstat -tlpn | grep :80
after that i am curious whats in /var/log/lighttpd/error.log
pi@raspberrypi0W:~ $ sudo netstat -anop | grep 80 unix 3 [ ] DGRAM 9222 180/systemd-timesyn unix 3 [ ] STREAM CONNECTED 17151 1080/gvfs-gphoto2-v unix 3 [ ] STREAM CONNECTED 19804 444/Xorg @/tmp/.X11-unix/X0 unix 3 [ ] DGRAM 9224 180/systemd-timesyn unix 2 [ ] DGRAM 9206 180/systemd-timesyn unix 3 [ ] STREAM CONNECTED 13980 444/Xorg @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 12280 444/Xorg unix 3 [ ] DGRAM 9223 180/systemd-timesyn unix 3 [ ] STREAM CONNECTED 19803 1505/chromium-brows unix 3 [ ] STREAM CONNECTED 8961 180/systemd-timesyn unix 3 [ ] DGRAM 9225 180/systemd-timesyn unix 3 [ ] STREAM CONNECTED 17141 1080/gvfs-gphoto2-v
pi@raspberrypi0W:~ $ sudo cat /var/log/lighttpd/error.log 2018-10-30 10:58:11: (log.c.217) server started 2018-10-30 11:06:42: (server.c.1828) server stopped by UID = 0 PID = 1 2018-10-30 11:06:43: (log.c.217) server started 2018-10-30 11:06:43: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:06:43: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:06:43: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:06:43: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:06:43: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:06:43: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:06:45: (log.c.217) server started 2018-10-30 11:06:45: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:06:45: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:06:45: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:06:45: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:06:45: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:06:45: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:06:47: (log.c.217) server started 2018-10-30 11:06:47: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:06:47: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:06:47: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:06:47: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:06:47: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:06:47: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:06:48: (log.c.217) server started 2018-10-30 11:06:48: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:06:48: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:06:48: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:06:48: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:06:48: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:06:48: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:06:50: (log.c.217) server started 2018-10-30 11:06:50: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:06:50: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:06:50: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:06:50: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:06:50: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:06:50: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:08: (log.c.217) server started 2018-10-30 11:07:08: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:08: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:08: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:08: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:08: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:08: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:14: (log.c.217) server started 2018-10-30 11:07:14: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:14: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:14: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:14: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:14: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:14: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:15: (log.c.217) server started 2018-10-30 11:07:15: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:15: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:15: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:15: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:15: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:15: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:17: (log.c.217) server started 2018-10-30 11:07:17: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:17: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:17: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:17: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:17: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:17: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:19: (log.c.217) server started 2018-10-30 11:07:19: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:19: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:19: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:19: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:19: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:19: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:21: (log.c.217) server started 2018-10-30 11:07:21: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:21: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:21: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:21: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:21: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:21: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:22: (log.c.217) server started 2018-10-30 11:07:22: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:22: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:22: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:22: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:22: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:22: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:24: (log.c.217) server started 2018-10-30 11:07:24: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:24: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:24: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:24: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:24: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:24: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:07:25: (log.c.217) server started 2018-10-30 11:07:25: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:07:25: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:07:25: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:07:25: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:07:25: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:07:25: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:14:02: (log.c.217) server started 2018-10-30 11:14:02: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:14:02: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:14:02: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:14:02: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:14:02: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:14:02: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:14:06: (log.c.217) server started 2018-10-30 11:14:06: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:14:06: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:14:06: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:14:06: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:14:06: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:14:06: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:14:08: (log.c.217) server started 2018-10-30 11:14:08: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:14:08: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:14:08: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:14:08: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:14:08: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:14:08: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:14:11: (log.c.217) server started 2018-10-30 11:14:11: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:14:11: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:14:11: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:14:11: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:14:11: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:14:11: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:14:13: (log.c.217) server started 2018-10-30 11:14:13: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:14:13: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:14:13: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:14:13: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:14:13: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:14:13: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 11:14:16: (log.c.217) server started 2018-10-30 11:14:16: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:14:16: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:14:16: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 11:14:16: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 11:14:16: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 11:14:16: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:15: (log.c.217) server started 2018-10-30 15:10:15: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:15: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:15: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:15: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:15: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:15: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:19: (log.c.217) server started 2018-10-30 15:10:19: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:19: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:19: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:19: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:19: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:19: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:21: (log.c.217) server started 2018-10-30 15:10:21: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:21: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:21: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:21: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:21: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:21: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:23: (log.c.217) server started 2018-10-30 15:10:23: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:23: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:23: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:23: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:23: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:23: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:27: (log.c.217) server started 2018-10-30 15:10:27: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:27: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:27: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:27: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:27: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:27: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:37: (log.c.217) server started 2018-10-30 15:10:37: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:37: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:37: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:37: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:37: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:37: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:38: (log.c.217) server started 2018-10-30 15:10:38: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:38: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:38: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:38: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:38: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:38: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:42: (log.c.217) server started 2018-10-30 15:10:42: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:42: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:42: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:42: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:42: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:42: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:44: (log.c.217) server started 2018-10-30 15:10:44: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:44: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:44: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:44: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:44: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:44: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:48: (log.c.217) server started 2018-10-30 15:10:48: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:48: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:48: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:48: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:48: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:48: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:50: (log.c.217) server started 2018-10-30 15:10:50: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:50: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:50: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:50: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:50: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:50: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:51: (log.c.217) server started 2018-10-30 15:10:51: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:51: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:51: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:51: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:51: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:51: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:53: (log.c.217) server started 2018-10-30 15:10:53: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:53: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:53: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:53: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:53: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:53: (server.c.1269) Configuration of plugins failed. Going down. 2018-10-30 15:10:54: (log.c.217) server started 2018-10-30 15:10:54: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 15:10:54: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 15:10:54: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi 2018-10-30 15:10:54: (mod_fastcgi.c.1166) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.\nIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2018-10-30 15:10:54: (mod_fastcgi.c.1518) [ERROR]: spawning fcgi failed. 2018-10-30 15:10:54: (server.c.1269) Configuration of plugins failed. Going down.
@Hwurzburg
2018-10-30 11:06:43: (mod_fastcgi.c.1478) invalid "bin-path" => "/usr/bin/php-cgi" (check that file exists, is regular file, and is executable by lighttpd) 2018-10-30 11:06:43: (mod_fastcgi.c.1159) the fastcgi-backend /usr/bin/php-cgi failed to start: 2018-10-30 11:06:43: (mod_fastcgi.c.1163) child exited with status 2 /usr/bin/php-cgi
Please make sure lighttpd is configured properly, /usr/bin/php-cgi might not exist. Check if it does, and if it doesn't try:
sudo apt install php-cgi
(Package name is off the top of my head, however it might be php7.0-cgi or php7.2-cgi. Please check.
Also, the netstat output is incomplete, please past it in a code bracket. (RE: Insert Code button on github.)
OH YES, now i know!
I wrote the notes for debian9, the problem is that
sudo lighttpd-enable-mod fastcgi-php
relies on php7.0-cgi but in the package list i wrote php7.0-fpm.
In my running config i have: /etc/lighttpd/conf-available/15-fpm-php.conf
fastcgi.server += (".php" => ((
"socket" => "/run/php/php7.0-fpm.sock"
)))
and that is loaded, if i list all the modules with lighttpd-disable-mod
(hit a ctrl-C after the list was displayed)
Disabled modules: debian-doc dir-listing evasive evhost extforward fastcgi-php flv-streaming no-www proxy rewrite rrdtool simple-vhost ssi ssl status userdir usertrack
Enabled modules: accesslog auth cgi expire fastcgi fpm-php javascript-alias
So if you create /etc/lighttpd/conf-available/15-fpm-php.conf
with the content above,
and run the commands below
for disabling fastcgi-php
sudo lighttpd-disable-mod fastcgi-php
and enable fpm-php (and the others i also have)
sudo lighttpd-enable-mod accesslog auth cgi expire fastcgi fpm-php javascript-alias
That should work
@mitchellurgero the netstat command should "grep" for :80
and not simply 80
to better filter only to the port.
Also i prepare the php7.0-fpm fixes for the readme
it works now, although I get this warning at the top of the webpages: Warning: touch(): Unable to create file app/auth_log/10-30-2018.log because Permission denied in /var/www/html/openrsd/app/auth.php on line 14
if lighttpd runs as www-data then you can do the following:
sudo chown www-data:www-data /var/www/html/ -R
logging to auth_log now working...looking forward to the new readme so I know how to do it right in the future...want to add this to my other subnet machines....thanks for the help
Mitchell, as suggested I moved over to here...here is what I've done:
$sudo nano /etc/apache2/apache2.conf (fails since there is no apache2...your readme says above needs to be loaded...and apache2,etc. is not in packages for Stretch...maybe its needed, then you should update readme for Strech..) moving on..
$sudo sed -i -e "s/^max_execution_time =.*/max_execution_time = 300/g" /etc/php/7.0/fpm/php.ini $echo "www-data ALL=(ALL) NOPASSWD: ALL" | sudo tee --append /etc/sudoers.d/010_pi-nopasswd $sudo lighttpd-enable-mod fastcgi-php $sudo service php7.0-fpm force-reload $sudo service lighttpd force-reload
then steps 2-7...
try to logon on the same machine : fails, connection refused
is the Apache2 stuff needed? readme implies a different path for Stretch...if so, instructions on how to get those packages, and the Strech stuff should be noted as an Additional, not alternate...
I can start over using the pivpn instructions for getting an old version of Apache2,etc. if that is what the issue is....