[sane-devel] phpSANE question

Cristi Lacatus alaskanseaman at gmail.com
Fri Apr 8 03:48:23 UTC 2011


Thanks, Allan ... that was the reason, I should've see it earlier, but I
kept thinking that is something related to the environment where the command
is executed by the web interface and there are some lib or something else
missing.

Cheers,
Cristian.

2011/4/7 m. allan noah <kitno455 at gmail.com>

> I've never worked with phpSANE, but I can take a guess. PHP scripts
> run as the apache user, and the apache user does not have permissions
> to talk to the device files. Run scanimage -L as the user apache runs
> as, and see if that's true. If so, look to make some udev or hal rule
> changes.
>
> allan
>
> On Thu, Apr 7, 2011 at 11:01 AM, Cristi Lacatus <alaskanseaman at gmail.com>
> wrote:
> > Hello,
> >
> > I know this is the dist list for the SANE project, but maybe there is
> > someone out there that uses phpSANE and can help me out. I am trying to
> use
> > this on my QNAP NAS, linux flavour with apache 2 and php 5 support, but I
> > keep getting this error message and the resolution field is highlighted
> in
> > red.
> > From what I can tell the problem is when the command is being executed,
> for
> > example when the command "scanimage --help" it's executed in the CLI,
> > usually it outputs the help text but it also gives detailed information
> > about the scanners that are connected to the system at that time. When it
> > gets executed by the web interface, it only outputs the help text,
> nothing
> > else.
> > I also tried with a different command, "scanimage -L" when executed in
> the
> > CLI it outputs "device `pixma:04A91746_01760E' is a CANON Canon PIXMA
> MP280
> > multi-function peripheral", when executed through phpSANE, it only
> outputs
> > "device `pixma:04A91746' is a CANON Canon PIXMA MP280 multi-function
> > peripheral". I'm exporting the necessary paths, but that doesn't help
> > either.
> >
> > Any help will be greatly appreciated?
> >
> > Thanks,
> > Cristian.
> >
> >
> > --
> > sane-devel mailing list: sane-devel at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> > Unsubscribe: Send mail with subject "unsubscribe your_password"
> >             to sane-devel-request at lists.alioth.debian.org
> >
>
>
>
> --
> "The truth is an offense, but not a sin"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110408/722751e4/attachment-0001.htm>


More information about the sane-devel mailing list