CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Return processing problem again
Pages: [1]

Author Topic: Return processing problem again  (Read 1020 times)

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Return processing problem again
February 24, 2012, 03:43:30 am
I get this error message

PHP Warning:  mkdir(): SAFE MODE Restriction in effect.  The script whose uid is 10014 is not allowed to access /var/www/vhosts/the-businessclub.org.uk/httpdocs/media/civicrm/custom/CiviMail.ignored/2012/02/24 owned by uid 0 in /var/www/vhosts/the-businessclub.org.uk/httpdocs/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore.php on line 151 Sorry. A non-recoverable error has occurred.
Could not connect to MailStore<p>Error message: <pre>Could not create /var/www/vhosts/the-businessclub.org.uk/httpdocs/media/civicrm/custom//CiviMail.ignored/2012/02/24/new</pre><p>

CiviCRM seems to have created the CiviMail.ignored directory as root/root. I changed this, but now it's creating all the subdirectories as root/root. The Cron job is runnign under root - should it be running under a different user?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Return processing problem again
February 24, 2012, 03:58:38 am
Your script is not running as root, is this by wget or php-cli that your run it?

Anyway, you should never run any script as root unless a lot of analysis and good reasons (eg. it will drop priority and switch to another user, like postfix for instance).

I'd suggest to run every cron as www-data (mostly so the eventual caches on templates are with the same owner as the web processes) and chown all the directories that have been created.

Otherwise, I tend to use IMAP and leave the emails on the server, but should work with pop and save them as file.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Re: Return processing problem again
February 24, 2012, 09:10:05 am
Thanks I'll give that a go. I can't use IMAP as it's a 123-reg mailbox and the whole setup there is basic to say the least

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Re: Return processing problem again
February 26, 2012, 10:28:04 am
OK running the Cron command as www-data works fine. The only problem now is that, because the script creates the files with owndership of www-data rather than the website owner, Akeeba backup won't back up the directories. The Plesk command panel won't let me create cron jobs to be run by the website owner. I suppose I could log in as root and do it, but eventually the client will eed to be able to do this and I'm not lettign them log on to the server at command line level with any user name

Suggestions?

Cheers

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Return processing problem again

This forum was archived on 2017-11-26.