[Mailman-Users] can't call command line functions from php
anne.ramey at ncmail.net
Tue Sep 19 13:55:09 CEST 2006
Mark Sapiro wrote:
> Anne Ramey wrote:
>>>> I have my php script running as a user in the mailman group, but when I
>>>> try to do:
>>>> //add user to Admin email list
>>>> $command = "/usr/local/mailman/bin/add_members -r ".$Filename."
>>>> system($command, $status);
>>>> I get a status of 1 returned to me and it doesn't add the users.
>> My safe_mode is Off. There are no errors in my http log and none output
>> to the screen. I can run other commands with system and
>> shell_exec...just not any mailman commands.
> Are you sure you're executing the command as the mailman group?
> chmod g+s /usr/local/mailman/bin/add_members
> and see if that helps. If it does, the problem is with the group
> executing the command.
That did not help. Does anyone have any other ideas? If it were all
system commands, that would be one thing, but it appears to be just mailman.
More information about the Mailman-Users