Author Topic: Can not get past NOT OK to write to temp and log directories.  (Read 8368 times)

Offline Larry Scott

  • Newbie
  • *
  • Posts: 3
Can not get past NOT OK to write to temp and log directories.
« on: August 06, 2013, 06:44:15 AM »
Hello Roundcube,

Your product looks very nice....
I installed MySQL / Fedora 19 / Apache / PHP...
The PHP MySQL database connection works as needed
I spent 4 hours trying to get past the 'temp' and 'logs' not writable error , but no luck
Here is the only error message I have to overcome:

      Check if directories are writable
      Roundcube may need to write/save files into these directories
      temp/:  NOT OK(not writeable for the webserver)
      logs/:  NOT OK(not writeable for the webserver)
      Use chmod or chown to grant write privileges to the webserver

My apache serveer runs as account apache.
I chown the logs and temp directory to apache.
I chmod the directories to 777
I was able to su apache, entered the directory, and write a file as apache..

I can not figure out why roundcube thinks these directories are not writable.
I will tinker more tomorrow, but I am at the end of things to try
Any suggestions would be very appreciated.

Thanks much,
Larry Scott
Walnut Creek, CA 



Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: Can not get past NOT OK to write to temp and log directories.
« Reply #1 on: August 06, 2013, 11:13:30 AM »
I've never done more than to chown mine, they are still 755. Works fine.

My best guess is that either there is a misunderstanding of the path of the temp and logs directories, or your webserver is not really running as apache.

Since you have done chmod 777, I'm guessing the former is the case. What is the path to your Roundcube instance? Is selinux enabled?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline Larry Scott

  • Newbie
  • *
  • Posts: 3
Re: Can not get past NOT OK to write to temp and log directories.
« Reply #2 on: August 08, 2013, 01:36:27 AM »
Thanks for the sanity check.... turned out my selinux was the culprit.   :)

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: Can not get past NOT OK to write to temp and log directories.
« Reply #3 on: August 08, 2013, 03:06:53 PM »
Good to know. Glad I could help.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline dumle29

  • Newbie
  • *
  • Posts: 2
Re: Can not get past NOT OK to write to temp and log directories.
« Reply #4 on: August 19, 2013, 03:02:06 PM »
Okay so I'm just jacking this thread.

I have the same issue expect one thing: I don't have SElinux on my box.

Box specs:
Ubuntu x64 12.04 lts
open firewall

Apache runs as the user www, and i have no problems using other php apps that write files to the www directory.
I have tried chown -R 775 www:www logs
I have tried chown -R 775 root:root logs
I have tried chown -R 775 vtglan:vtglan logs (vtg lan is the imap user accessing the inbox)

None have helped the slightest

I'm at a loss, and can't seem to get past this final barier :(

Offline dumle29

  • Newbie
  • *
  • Posts: 2
Re: Can not get past NOT OK to write to temp and log directories.
« Reply #5 on: August 19, 2013, 03:13:37 PM »
Okay even tho I've read elsewhere that chown -R www-data /var/www wouldn't work, it did infact for me :)