In comp.infosystems.www.servers.unix, <
mglowinski93@gmail.com> wrote:
Hi,
i've problem with Apache2. It is not executing properly Python Scripts which includes "sudo" command. Those scripts are working fine while running from terminal (as a "pi" user).
Apache2 is running also "pi" user.
That's not really a web server problem. You've encountered this while
using a webserver, but the fix isn't in a change to the web server
config.
/var/log/apache2.error.log:
[snip]
I see no output from your scripts there, just normal apache restart
messages.
I checked response for "mount" command. There are different results while executing this from terminal and different while executing it via Apache2.
Any tips what can be wrong?
1. Understand your tools well enough to get proper error messages out
of them.
2. Understand the Unix environment: how is running from a terminal
different from running from a server? What things should you check
for when the two cases work differently?
3. Learn how to ask questions better. (What exactly is your script
trying do do? How are the results different?)
4. Possibly: Understand the Unix permission model.
You might find better luck in a python group (eg comp.lang.python),
the Pi group (comp.sys.raspberry-pi), or a shell programming group
(eg comp.unix.shell).
Elijah
------
can't debug what he can't see
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)