FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » maillist.php generates a Program failure (1)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
maillist.php generates a Program failure (1) [message #20644] Fri, 22 October 2004 22:44 Go to next message
arakune is currently offline  arakune   Canada
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #20647 is a reply to message #20645] Fri, 22 October 2004 22:51 Go to previous messageGo to next message
arakune is currently offline  arakune   Canada
Messages: 10
Registered: April 2004
Karma: 0
Junior Member
PHP is installed as binary, and its already in my path. Unfortunately, explicitly referring to the full path doesn't make a difference:

procmail: Executing " /usr/local/bin/php,/u2/afs/home/sites/kw-php.org/FUDforum/scripts/maillist. php,1 "
procmail: Program failure (1) of "/usr/local/bin/php"

Sad
Re: maillist.php generates a Program failure (1) [message #20648 is a reply to message #20644] Fri, 22 October 2004 23:04 Go to previous messageGo to next message
arakune is currently offline  arakune   Canada
Messages: 10
Registered: April 2004
Karma: 0
Junior Member
On a related note, is this the correct way of testing the maillist.php from the command line?

$ php -q /u2/afs/home/sites/kw-php.org/FUDforum/scripts/maillist.php 1 < test.msg


If so, this is the error that I get back:

Could not open input file: /u2/afs/home/sites/kw-php.org/FUDforum/scripts/maillist.php.

Which sounds like its still a permissions problem.

If I change the owner of maillist.php to my user account (from the web server user), I get a whole slew of new permissions errors, from all of the other included files.

It looks like in order for this to work, I'm going to have to chown much of the data directory to my user account, rather than the web server user. Is that going to break things, and is there another way around this?
Re: maillist.php generates a Program failure (1) [message #20649 is a reply to message #20648] Fri, 22 October 2004 23:05 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Sounds like you forgot to unlock the forum before running the script.

FUDforum Core Developer
Re: maillist.php generates a Program failure (1) [message #20651 is a reply to message #20649] Fri, 22 October 2004 23:15 Go to previous messageGo to next message
arakune is currently offline  arakune   Canada
Messages: 10
Registered: April 2004
Karma: 0
Junior Member
Sounds like.... considering I didn't read anywhere that I had to Wink

I've put the permissions back to what they were, and trying that now. I getting endless iterations of:

ERROR: couldn't chmod "/u2/afs/home/sites/kw-php.org/FUDforum_zl_2-6-7.tar.gz"

which certainly doesn't sound right.

I'm going to try re-installing, and see if that does the trick. Shall no doubt be back if I run into more problems.

Thanks so much for your help! Smile

Re: maillist.php generates a Program failure (1) [message #20653 is a reply to message #20651] Fri, 22 October 2004 23:23 Go to previous messageGo to next message
arakune is currently offline  arakune   Canada
Messages: 10
Registered: April 2004
Karma: 0
Junior Member
::smacks forehead::

You'd think bright red, humungously large letters would be enough, wouldn't you.

A sign that its time for a break, I think.

::slink-o::
Re: maillist.php generates a Program failure (1) [message #20654 is a reply to message #20644] Fri, 22 October 2004 23:41 Go to previous messageGo to next message
arakune is currently offline  arakune   Canada
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

Re: maillist.php generates a Program failure (1) [message #20656 is a reply to message #20654] Sat, 23 October 2004 01:36 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There was a slight bug in the code in the event you had a file starting with the same name as the forum's dir.

The fix is to modify the unlock code like this:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=3034

or remove the archive file.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: newbie on egroupware
Next Topic: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/forums/install.php on line
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 15:44:09 GMT 2024

Total time taken to generate the page: 0.03202 seconds