maillist.php generates a Program failure (1) [message #20644] |
Fri, 22 October 2004 22:44 |
arakune
Messages: 10 Registered: April 2004
Karma: 0
|
Junior Member |
|
|
I've just installed FUDforum 2.6.7, and am trying to get the mailling list integration working with it. I added the procmail recipe as directed.
First time around, I received a permissions error. By default, maillist.php is owned by the web server user, rather than the user account, and therefore procmail is not able to run the script. I must have missed the note about that in the documentation?! Anyway, after chmodding +x the script, and trying again, I now receive a different error in my procmail log:
procmail: Executing "php,/u2/afs/home/sites/kw-php.org/FUDforum/scripts/maillist.php,1"
procmail: Program failure (1) of "php"
When the script is called directly (without calling php first), I get the same error:
procmail: Executing "/u2/afs/home/sites/kw-php.org/FUDforum/scripts/maillist.php,1"
procmail: Program failure (1) of "/u2/afs/home/sites/kw-php.org/FUDforum/scripts/maillist.php"
Is there any way to crank up the error reporting on this, or does anyone have any clue where I might want to look next?
Thanks in advance!
|
|
|
Re: maillist.php generates a Program failure (1) [message #20645 is a reply to message #20644] |
Fri, 22 October 2004 22:47 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
do you have PHP binary installed on your system?
If you do make sure the forum's script is executed via that binary ex: /usr/local/bin/php /u2/afs/home/sites/kw-php.org/FUDforum/scripts/maillist.php 1
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: maillist.php generates a Program failure (1) [message #20654 is a reply to message #20644] |
Fri, 22 October 2004 23:41 |
arakune
Messages: 10 Registered: April 2004
Karma: 0
|
Junior Member |
|
|
No joy.
I've got a brand-spanking new, completely untouched installation. Created my forum, and my mailing list manager setup. Went to the Lock/Unlock section, and clicked the "Unlock" button, and....
I once again receive the many iterations of:
ERROR: couldn't chmod "/u2/afs/home/sites/kw-php.org/FUDforum_zl_2-6-7.tar.gz"
Which is a file which certanly exists, but why FUDforum's is trying to chmod it, I don't know. What it should be chmodding, I imagine, is various things under
/u2/afs/home/sites/kw-php.org/FUDforum/
Since its apparently being confused by the presence of the tarball, I remove it and try again.
This time the script just hangs, until PHP eventually calls a time-out.
I'm happy enough to manually change the file/directory permission instead. Is there anyplace which documents what all gets chmodded, or am I best to just look through the admlock.php script, and work out what it's doing?
EDIT: I'm not sure if this is relevant or not, but when it finally does timeout, PHP references the following line:
Fatal error: Maximum execution time of 60 seconds exceeded in /u2/afs/home/sites/kw-php.org/forums/adm/admlock.php on line 47
which is the beginning of:
$files = glob($v . '{.[a-z]*,*}', GLOB_BRACE);
foreach ($files as $path) {
if (@is_file($path) && !@chmod($path, $fileperms)) {
echo 'ERROR: couldn\'t chmod "'.$path.'"<br>';
} else if (@is_dir($path) && !is_link($path)) {
$dirs[] = $path;
}
}
[Updated on: Fri, 22 October 2004 23:45] Report message to a moderator
|
|
|
|