Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-10-21 23:45:32

leegold
Member
Registered: 2011-04-11
Posts: 12

Image directory is not writable

In diagnostics I get:

Image directory is not writable: /var/www/images
File directory path is not writable: /var/www/files

I changed both dirs to 755. I’m running LAMP on my laptop with textpattern.

use1@gi6:/var/www$ ls -l
total 36
-rw-r—r— 1 root root 1407 Aug 28 2012 css.php
drwxr-xr-x 2 root root 4096 Oct 21 15:47 files
drwxr-xr-x 2 root root 4096 Oct 21 15:47 images
-rw-r—r— 1 root root 177 Oct 21 10:52 index.htmlold
-rw-r—r— 1 root root 2178 Aug 28 2012 index.php
-rw-r—r— 1 root root 68 Oct 21 11:07 info.php
drwxr-xr-x 2 root root 4096 Oct 21 15:47 js
drwxr-xr-x 2 root root 4096 Oct 21 15:47 rpc
drwxr-xr-x 10 root root 4096 Oct 21 16:05 textpattern

Offline

#2 2015-10-22 02:01:26

leegold
Member
Registered: 2011-04-11
Posts: 12

Re: Image directory is not writable

user@gig:/var/www$ sudo chown www-data:www-data images
user@gig:/var/www$ sudo chown www-data:www-data files

Fixed it. Noticed the Apache service user is www-data. Read also it’s diagnostic the owner/group is an issue if just changing to 777 fixes it…which it did. So tried different name:group and fixed it with permissions indeed being 755. Can someone explain why?

Last edited by leegold (2015-10-22 02:29:07)

Offline

#3 2015-10-22 08:34:05

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Image directory is not writable

Perhaps this explains it.

Offline

Board footer

Powered by FluxBB