Permissions and maillist.php [message #25088] |
Wed, 25 May 2005 08:10 |
davidgordon
Messages: 25 Registered: May 2005
Karma: 0
|
Junior Member |
|
|
I _had_ a working test FUDfourm installation yesterday with mailing list to forum and forum to mailing list all perfect. Then I failed to update so made a fresh install of the latest version. Now I have a working forum which sends to my mailing list but I can't get messages from the mailing list into FUDforum.
It must be something to do with the ownership and permissions of maillist.php.
To begin with I received bounce messages suggesting the maillilst.php script couldn't be run due to permission denied. So I chmod'd that to 755 then found I needed to change GLOBALS.php as well.
Now I don't get a bounce message from my mailer-daemon - but the email still doesn't reach the forum.
Who should own what?
My Server Root directory is owned by MyUserName, most of its contents are owned and group web. Directories in my Forum Data Root are owned and group web.
Or have I forgotten something else? I know I should have written everything down!
Any ideas as to what I should be looking at?
Thanks
[Updated on: Wed, 25 May 2005 08:12] Report message to a moderator
|
|
|
|
Re: Permissions and maillist.php [message #25094 is a reply to message #25091] |
Wed, 25 May 2005 13:47 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Before using mailing list import, you need to go the forum admin control panel and "unlock" the forum's files.
FUDforum Core Developer
|
|
|
|
Re: Permissions and maillist.php [message #25097 is a reply to message #25096] |
Wed, 25 May 2005 14:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Looks like the forum is failing to parse the messages you are feeding, the files inside errors/.mlist/ are the complete content of the messages forum has failed to parse and the error_log contains the explanation why.
The reason those files caused warning during unlock, is because the username (of file owner) differs from that of the webserver and the webserver has no permission to chmod them.
FUDforum Core Developer
|
|
|
Re: Permissions and maillist.php [message #25099 is a reply to message #25088] |
Wed, 25 May 2005 14:43 |
davidgordon
Messages: 25 Registered: May 2005
Karma: 0
|
Junior Member |
|
|
The errors/.mlist/ contains many empty files - I guess that’s because Anonymous Coward's posts have no content. The error_log tells us
WARNING :: Wed, 25 May 2005 15:17:40 +0100 :: No message id :: /usr/local/home/httpd/vhtdocs/MyDomain.co.uk/fudforum/errors/.mlist/1117030660_d41d8cd98f00b204e9800998ecf8427e
WARNING :: Wed, 25 May 2005 15:17:40 +0100 :: Invalid Date :: /usr/local/home/httpd/vhtdocs/MyDomain.co.uk/fudforum/errors/.mlist/1117030660_d41d8cd98f00b204e9800998ecf8427e
WARNING :: Wed, 25 May 2005 15:17:40 +0100 :: Blank Subject :: /usr/local/home/httpd/vhtdocs/MyDomain.co.uk/fudforum/errors/.mlist/1117030660_d41d8cd98f00b204e9800998ecf8427e
WARNING :: Wed, 25 May 2005 15:17:41 +0100 :: no name or email for :: /usr/local/home/httpd/vhtdocs/MyDomain.co.uk/fudforum/errors/.mlist/1117030661_d41d8cd98f00b204e9800998ecf8427e
WARNING :: Wed, 25 May 2005 15:17:41 +0100 :: No message id :: /usr/local/home/httpd/vhtdocs/MyDomain.co.uk/fudforum/errors/.mlist/1117030661_d41d8cd98f00b204e9800998ecf8427e
WARNING :: Wed, 25 May 2005 15:17:41 +0100 :: Invalid Date :: /usr/local/home/httpd/vhtdocs/MyDomain.co.uk/fudforum/errors/.mlist/1117030661_d41d8cd98f00b204e9800998ecf8427e
WARNING :: Wed, 25 May 2005 15:17:41 +0100 :: Blank Subject :: /usr/local/home/httpd/vhtdocs/MyDomain.co.uk/fudforum/errors/.mlist/1117030661_d41d8cd98f00b204e9800998ecf8427e
So why is FUDforum failing to parse my messages? As I said, I had a working version yesterday...
None of the files in .mlist appear to contain messages sent to FUD from email, which I would expect if the mailist.php script was running correctly. As far as I can see there are only blank messages which would suggest they are from Anonymous Coward.
|
|
|
Re: Permissions and maillist.php [message #25100 is a reply to message #25099] |
Wed, 25 May 2005 14:48 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
How are you importing messages into the forum? It seems to me that message content is not arriving @ the maillist.php script.
FUDforum Core Developer
|
|
|
|
Re: Permissions and maillist.php [message #25102 is a reply to message #25101] |
Wed, 25 May 2005 15:18 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The mailing list script didn't change since version 2.6.9, so it's definately not a breakage inside the script itself if it worked in 2.6.12.
You can add some debugging code to the script inside the read_data() method to see if the raw_msg property contains the raw message text. The fact that .mlist/1117030615_d41d8cd98f00b204e9800998ecf8427e are empty, implies that for one reason or another the script does get/see the message content.
FUDforum Core Developer
|
|
|
|
|
Re: Permissions and maillist.php [message #25105 is a reply to message #25104] |
Wed, 25 May 2005 15:45 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Well, you can conduct a simple test. Take any message, as save it's contents including the headers as a text file.
Then on a command line run:
cat message.txt | php maillist.php [import rule id]
and see if that message get's imported.
FUDforum Core Developer
|
|
|
|
Re: Permissions and maillist.php [message #25107 is a reply to message #25106] |
Wed, 25 May 2005 16:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The 1st thing you should do is follow your web hosts instructions and change the 1st line of the script to the one indicated by the hosting provider. You can then run the line I've indicated without "php" before the name.
If you still get the same error message then change the execution line to:
cat message.txt | /opt/php-4.3/bin/php -d register_argc_argv=1 maillist.php [import rule id]
FUDforum Core Developer
|
|
|
|
|
|
Re: Permissions and maillist.php [message #25113 is a reply to message #25112] |
Wed, 25 May 2005 19:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If the last command I gave you didn't return anything re-installing the forum will definately not solve anything. The previous command was supposed to test if PHP you are using is able to retrieve data being piped to it. If it failed to return anything, the issue is not forum related.
FUDforum Core Developer
|
|
|
|
|
|