Trunk recorder lighttp issue

Status
Not open for further replies.

dave3825

* * * * * * * * * * * *
Premium Subscriber
Joined
Feb 17, 2003
Messages
10,758
Reaction score
6,319
Location
Suffolk County NY
I had this all working an a laptop and now have installed trunk recorder and lighttp on my pi. In my html folder, the file index.html loads up fine in chrome. The index.php only downloads in the browser and does not display the interface to play back trunk recorder recordings.

I tried, because I am more a windows user, to google why php wont load and found something that said to try this. And I am not even sure if its the correct thing or not.

pi@raspberrypi:~ $ /var/run/lighttpd/php.socket
bash: /var/run/lighttpd/php.socket: Permission denied
pi@raspberrypi:~ $


Would anyone know why an index.html loads in browser but index.php does not?

This is my lighttp.conf file

server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
)

server.document-root = "/var/www/html"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 5001


index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
 

lwvmobile

DSD-FME
Joined
Apr 26, 2020
Messages
1,498
Reaction score
1,033
Don't know if you were ever able to work this issue out, but when I have issues trying to figure out how to configure something in Linux, I tend to hit up the Arch Wiki, even though Raspian isn't Arch based, most all the configuration stuff is the same. Perhaps this link will help out some.


Sorry I can't help any more, I haven't ever used Trunk Recorder, so I have no idea which part of the software uses the web server aspect of it, or if that's a separate add on kind of thing. I just going to go on a guess and say you may have to install the correct PHP handler packages so lighttp can handle those PHP requests.
 

dave3825

* * * * * * * * * * * *
Premium Subscriber
Joined
Feb 17, 2003
Messages
10,758
Reaction score
6,319
Location
Suffolk County NY
I just going to go on a guess and say you may have to install the correct PHP handler packages so lighttp can handle those PHP requests.
Thank you for the link and the reply. Lighttp server is independent from Trunk recorder. Basically trunk recorder gets configured to dump its recordings in the www/html folder and then the index.php reads whats there and displays it on the webpage. I am pretty sure it is indeed the php that did not install with lighttp. I am going to follow the link you posted and hopefully get up and running. Then I just need to find a script that can purge audio files that are older the 14 days. Only using an 8gb card in the Pi.
 
Status
Not open for further replies.
Top