[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
perl execution
- Subject: perl execution
- From: DTK <..hidden..>
- Date: Thu, 10 Jan 2008 21:47:13 -0500
Hey you all
I created a basic test.pl file to check my web server config and it
works fine, however the login.pl wont execute.
I saw that some of the pl files are not executable so I did a
chmod -R +x *.pl
but it still wont execute, a window opens asking if I like to save the file.
ledger-smb Revision: 2034 from svn trunk
=======================================================
lighttpd-1.4.13 (ssl) - a light and fast webserver Build-Date: Jun 1
2007 18:19:33
with following config
$HTTP["host"] =~ "ledger.mydomain.com" {
var.basedir = "/opt/ledgersmb"
server.document-root = var.basedir
cgi.assign = ( ".pl" => "/usr/bin/perl" )
$HTTP["url"] =~ "^/users" { url.access-deny = ("") }
}
=======================================================
Following works fine:
:~# cat /opt/ledgersmb/test.pl
#!/usr/bin/perl
# Create an HTML page to display a message.
print "Content-type: text/html\n\n";
print "<HTML><BODY><TITLE>Perl Test</TITLE>";
print "<CENTER>";
print "<H1>";
print "PERL TEST";
print "</H1>";
print "<HR>";
print "Hooray! It works!";
print "<HR>";
print "</CENTER>";
print "</BODY></HTML>";
=======================================================
Thanks
Troy