I'm running cpanel on FreeBSD 4.9 and i'm having problems getting the counter (cpanel->scripts->counter) working.
Suexec is enabled and when users run cgi scripts from /home/user/www/cgi-bin everything works fine.
But when the try to use the counter all they see is a broken image, (error 500 in the apache error log).
The suexec.log looks like this:
[2004-04-09 14:38:07]: info: (target/actual) uid: (virtuser/virtuser) gid: virtuser/virtuser) cmd: Count.cgi
[2004-04-09 14:38:07]: error: target uid/gid (1103/1105) mismatch with directory (0/0) or program (0/0) or trusted user (0/10)
/usr/local/cpanel/cgi-sys/Count.cgi has the following permissions:
-rwxr-xr-x 1 root wheel 198767 16 Mar 10:51 Count.cgi
This is exactly the same setup that i've successfully used on a redhat machine also running cpanel.
I'm aware that for suexec to work the cgi script must be owned by the user executing the script, but how is this supposed to work with the cgi-sys directory?
Any help would be greatly appreciated.
Best Regards
Kim Andersen
Suexec is enabled and when users run cgi scripts from /home/user/www/cgi-bin everything works fine.
But when the try to use the counter all they see is a broken image, (error 500 in the apache error log).
The suexec.log looks like this:
[2004-04-09 14:38:07]: info: (target/actual) uid: (virtuser/virtuser) gid: virtuser/virtuser) cmd: Count.cgi
[2004-04-09 14:38:07]: error: target uid/gid (1103/1105) mismatch with directory (0/0) or program (0/0) or trusted user (0/10)
/usr/local/cpanel/cgi-sys/Count.cgi has the following permissions:
-rwxr-xr-x 1 root wheel 198767 16 Mar 10:51 Count.cgi
This is exactly the same setup that i've successfully used on a redhat machine also running cpanel.
I'm aware that for suexec to work the cgi script must be owned by the user executing the script, but how is this supposed to work with the cgi-sys directory?
Any help would be greatly appreciated.
Best Regards
Kim Andersen