John Crisp
2017-12-13 13:32:07 UTC
I'm messing with some code in a cgi-bin directory.
I wanted to query the config DB but seem to be hung up on permissions.
I have vaguely the following:
test.cgi
use CGI;
use utf8;
use strict;
use warnings;
use esmith::ConfigDB;
my $configDB = esmith::ConfigDB->open_ro or die("can't open Config DB");
If I then access test.cgi with a browser I get the following in my logs.
can't open Config DB....
I can run it fine from the CLI.
I presume this is because the script via the browser is being run as www
and not root.
So any idea how I can get his to run from the browser?
B. Rgds
John
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
I wanted to query the config DB but seem to be hung up on permissions.
I have vaguely the following:
test.cgi
use CGI;
use utf8;
use strict;
use warnings;
use esmith::ConfigDB;
my $configDB = esmith::ConfigDB->open_ro or die("can't open Config DB");
If I then access test.cgi with a browser I get the following in my logs.
can't open Config DB....
I can run it fine from the CLI.
I presume this is because the script via the browser is being run as www
and not root.
So any idea how I can get his to run from the browser?
B. Rgds
John
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/