how do I use cgi-bin on lighttpd

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
vortex05
DD-WRT User


Joined: 14 Mar 2014
Posts: 218

PostPosted: Wed Jun 19, 2019 14:18    Post subject: how do I use cgi-bin on lighttpd Reply with quote
Does anyone know where to put files if you're using external storage (/jffs/www) if you want to be able to run cgi-bin files?

due to this bug: https://svn.dd-wrt.com/ticket/6639

php has recently stopped working due to a memory allocation issue.

I would like to decrease my reliance on php and just go direct cgi-bin which should be the lightest approach.

I'm not sure where the sh scripts should go when utilizing lighttpd as I plan on porting my php scripts over to sh scripts I'm not sure how the stock lighttpd has cgi-bin configured.
Sponsor
vortex05
DD-WRT User


Joined: 14 Mar 2014
Posts: 218

PostPosted: Mon Jun 24, 2019 2:46    Post subject: Reply with quote
solved you need to add

cgi.assign = ( ".cgi" => "" )

in order to get sh scripts to execute make sure to mark them as executable.

There's also an alternative line you can use if you want only a specific folder to be executable.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum