Last month I bought a Raspberry Pi 3 B+, put NOOBS_v2_8_2 on it and installed Raspbian (not Lite).
I’m wanting to try using it as a local webserver, so I presume I have to put some kind of LAMP on it, and I need the “P” to be Perl. (I don’t need PHP yet, but might want it someday.)
The only resource I’ve found for this so far is this YouTube video from 2013 and its accompanying summary of commands. As you can see, it uses nginx instead of Apache (fine by me) and includes PHP and Perl.
My current problem is that when I get to this step:
Code: Select all
service perl-fcgi start
Code: Select all
‘Job for perl-fcgi.service failed because the control process exited with error code.
See "systemctl status perl-fcgi.service" and "journalctl -xe" for details.’
So I tried entering the commands in the error message to see if they would help with trouble shooting. Here they are:
1st command:
Code: Select all
root@raspberrypi:~# systemctl status perl-fcgi.service
● perl-fcgi.service - LSB: Start the Perl FastCGI daemon.
Loaded: loaded (/etc/init.d/perl-fcgi; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-10-19 20:10:35 NZDT; 41s ago
Docs: man:systemd-sysv-generator(8)
Process: 1324 ExecStart=/etc/init.d/perl-fcgi start (code=exited, status=1/FAILURE)
Oct 19 20:10:34 raspberrypi systemd[1]: Starting LSB: Start the Perl FastCGI daemon....
Oct 19 20:10:34 raspberrypi su[1325]: Successful su for www-data by root
Oct 19 20:10:34 raspberrypi su[1325]: + ??? root:www-data
Oct 19 20:10:34 raspberrypi su[1325]: pam_unix(su:session): session opened for user www-data by (uid=0)
Oct 19 20:10:35 raspberrypi perl-fcgi[1324]: This account is currently not available.
Oct 19 20:10:35 raspberrypi systemd[1]: perl-fcgi.service: Control process exited, code=exited status=1
Oct 19 20:10:35 raspberrypi systemd[1]: Failed to start LSB: Start the Perl FastCGI daemon..
Oct 19 20:10:35 raspberrypi systemd[1]: perl-fcgi.service: Unit entered failed state.
Oct 19 20:10:35 raspberrypi systemd[1]: perl-fcgi.service: Failed with result 'exit-code'.
2nd command:
Code: Select all
root@raspberrypi:~# journalctl -xe
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit user-33.slice has finished shutting down.
Oct 19 19:32:36 raspberrypi kernel: Under-voltage detected! (0x00050005)
Oct 19 19:32:40 raspberrypi kernel: Voltage normalised (0x00000000)
Oct 19 19:39:01 raspberrypi CRON[1001]: pam_unix(cron:session): session opened f
Oct 19 19:39:01 raspberrypi CRON[1005]: (root) CMD ( [ -x /usr/lib/php/sessionc
Oct 19 19:39:01 raspberrypi CRON[1001]: pam_unix(cron:session): session closed f
Oct 19 19:39:03 raspberrypi systemd[1]: Starting Clean php session files...
-- Subject: Unit phpsessionclean.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit phpsessionclean.service has begun starting up.
Oct 19 19:39:03 raspberrypi systemd[1]: Started Clean php session files.
-- Subject: Unit phpsessionclean.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit phpsessionclean.service has finished starting up.
--
-- The start-up result is done.
lines 2327-2349/2349 (END)
I see the video actually used this command
Code: Select all
/etc/init.d/perl-fcgi start
This is the error I get from the "/etc/init.d/perl-fcgi start" command:
Code: Select all
root@raspberrypi:~# /etc/init.d/perl-fcgi start
This account is currently not available.
So based on 2 of the above messages it looks as if the www-data account may not be available for some reason?
Questions:
Q1. Any ideas what the problem is and how to resolve it?
Q2. Alternatively, any suggestions of alternative LAMP (with Perl) tutorials I could use?
Q3. How much of a problem does the "Under-voltage detected!" in the output from the "journalctl -xe" command, represent and could it be causing my problem?
Q4. Is "Troubleshooting" the best place for this kind of questions, or should I use "Advanced"?
Thanks very much!
Terry