Перейти к содержимому


Фотография
- - - - -

Срочно! откатил сайт и ошибка Cache folder is not writable (code:1)


Лучший Ответ Ёшкин Кот , 09 October 2015 - 16:44

chown -R www-data.www-data /путь к каталогу сайта

 

Ну или дпугой пользователь.. root.root

Перейти к сообщению


  • Закрытая тема Тема закрыта
Сообщений в теме: 8

#1 shiftDELET

shiftDELET

Отправлено 09 October 2015 - 16:29

такая же проблема как здесь:
 
http://forum.jbzoo.c...de:1#entry44457
 
total 62848
drwxr-xr-x 19 admin admin 4096 Oct 9 18:27 .
drwxr-xr-x 6 root root 4096 Oct 6 06:12 ..
-rw-r--r-- 1 root root 7444 Oct 6 21:31 .htaccess
-rw-r--r-- 1 admin admin 79 Oct 9 18:27 3.php
-rw-r--r-- 1 root root 18092 Oct 6 21:31 LICENSE.txt
-rw-r--r-- 1 root root 4213 Oct 6 21:31 README.txt
drwxr-xr-x 11 root root 4096 Oct 9 18:07 administrator
drwxr-xr-x 2 root root 4096 Oct 9 18:07 bin
drwxr-xr-x 7 root root 4096 Oct 9 18:17 cache
drwxr-xr-x 2 root root 4096 Oct 9 18:07 cli
drwxr-xr-x 26 root root 4096 Oct 9 18:07 components
-rw-r--r-- 1 root root 3429 Oct 7 22:48 configuration.php
-rw-r--r-- 1 admin admin 3390 Oct 9 18:14 configuration.php11
-rw-r--r-- 1 root root 53 Oct 6 21:31 google1e9c4fe01db92504.html
-rw-r--r-- 1 root root 2915 Oct 6 21:31 htaccess.txt
drwxr-xr-x 19 admin admin 4096 Oct 7 17:54 images
drwxr-xr-x 2 root root 4096 Oct 9 18:07 includes
-rw-r--r-- 1 admin admin 252 Oct 9 17:54 index.html0
-rw-r--r-- 1 root root 1212 Oct 6 21:31 index.php
drwxrwxrwx 7 root root 4096 Oct 9 18:15 installation
drwxr-xr-x 6 root root 4096 Oct 9 18:07 language
drwxr-xr-x 5 root root 4096 Oct 9 18:07 layouts
drwxr-xr-x 14 root root 4096 Oct 9 18:07 libraries
drwxr-xr-x 2 root root 4096 Oct 9 18:07 logs
drwxr-xr-x 29 root root 4096 Oct 9 18:07 media
drwxr-xr-x 40 root root 4096 Oct 9 18:07 modules
drwxr-xr-x 18 root root 4096 Oct 9 18:07 plugins
-rw-r--r-- 1 root root 1055 Oct 6 21:31 robots.txt
-rwx------ 1 root root 64204149 Oct 9 18:07 site-autoretail.by-20151009-172421.zip
drwxr-xr-x 6 root root 4096 Oct 9 18:07 templates
drwxr-xr-x 2 root root 4096 Oct 9 18:07 tmp
-rw-r--r-- 1 root root 1690 Oct 6 21:31 web.config.txt
-rw-r--r-- 1 root root 0 Oct 6 21:31 yandex_5dfd4a7de8f0b21b.txt
-rw-r--r-- 1 root root 0 Oct 6 21:31 yandex_5dfd4a7de8f0b21b.txt
uid=500(admin) gid=501(admin) groups=501(admin),48(apache),491(fuse),500(mgrsecure)
http://autoretail.by...v-nalichii.html
 
JBZoo fatal error: "Cache folder is not writable (code:1)"
Please, contact to support
  • 0

#2 SmetDenis

SmetDenis

Отправлено 09 October 2015 - 16:33

У вас половина сайте работает от root и у PHP нет доступа на запись.
http://joomla-book.r...s-or-777-is-bad

Рекурсивно измените права и владельца на директории на admin.
Кеш для JBZoo крайне важен.


На крайний случай поставьте 777 для папки кеша.
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#3 shiftDELET

shiftDELET

Отправлено 09 October 2015 - 16:39

У вас половина сайте работает от root и у PHP нет доступа на запись.
http://joomla-book.r...s-or-777-is-bad

Рекурсивно измените права и владельца на директории на admin.
Кеш для JBZoo крайне важен.


На крайний случай поставьте 777 для папки кеша.

изменил на admin и cache 777
http://bit.ly/1G2zePB
 
 
почему не работает?

сейчас так:

total 62848
drwxr-xr-x 19 admin admin     4096 Oct  9 18:27 .
drwxr-xr-x  6 root  root      4096 Oct  6 06:12 ..
-rw-r--r--  1 root  root      7444 Oct  6 21:31 .htaccess
-rw-r--r--  1 admin admin       79 Oct  9 18:27 3.php
-rw-r--r--  1 root  root     18092 Oct  6 21:31 LICENSE.txt
-rw-r--r--  1 root  root      4213 Oct  6 21:31 README.txt
drwxr-xr-x 11 root  root      4096 Oct  9 18:07 administrator
drwxr-xr-x  2 root  root      4096 Oct  9 18:07 bin
drwxr-xr-x  7 root  root      4096 Oct  9 18:17 cache
drwxr-xr-x  2 root  root      4096 Oct  9 18:07 cli
drwxr-xr-x 26 root  root      4096 Oct  9 18:07 components
-rw-r--r--  1 root  root      3429 Oct  7 22:48 configuration.php
-rw-r--r--  1 admin admin     3390 Oct  9 18:14 configuration.php11
-rw-r--r--  1 root  root        53 Oct  6 21:31 google1e9c4fe01db92504.html
-rw-r--r--  1 root  root      2915 Oct  6 21:31 htaccess.txt
drwxr-xr-x 19 admin admin     4096 Oct  7 17:54 images
drwxr-xr-x  2 root  root      4096 Oct  9 18:07 includes
-rw-r--r--  1 admin admin      252 Oct  9 17:54 index.html0
-rw-r--r--  1 root  root      1212 Oct  6 21:31 index.php
drwxrwxrwx  7 root  root      4096 Oct  9 18:15 installation
drwxr-xr-x  6 root  root      4096 Oct  9 18:07 language
drwxr-xr-x  5 root  root      4096 Oct  9 18:07 layouts
drwxr-xr-x 14 root  root      4096 Oct  9 18:07 libraries
drwxr-xr-x  2 root  root      4096 Oct  9 18:07 logs
drwxr-xr-x 29 root  root      4096 Oct  9 18:07 media
drwxr-xr-x 40 root  root      4096 Oct  9 18:07 modules
drwxr-xr-x 18 root  root      4096 Oct  9 18:07 plugins
-rw-r--r--  1 root  root      1055 Oct  6 21:31 robots.txt
-rwx------  1 root  root  64204149 Oct  9 18:07 site-autoretail.by-20151009-172421.zip
drwxr-xr-x  6 root  root      4096 Oct  9 18:07 templates
drwxr-xr-x  2 root  root      4096 Oct  9 18:07 tmp
-rw-r--r--  1 root  root      1690 Oct  6 21:31 web.config.txt
-rw-r--r--  1 root  root         0 Oct  6 21:31 yandex_5dfd4a7de8f0b21b.txt
-rw-r--r--  1 root  root         0 Oct  6 21:31 yandex_5dfd4a7de8f0b21b.txt
uid=500(admin) gid=501(admin) groups=501(admin),48(apache),491(fuse),500(mgrsecure)

  • 0

#4 SmetDenis

SmetDenis

Отправлено 09 October 2015 - 16:40

Рекурсивно и права и владелец для всего сайта?
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#5 shiftDELET

shiftDELET

Отправлено 09 October 2015 - 16:42

Рекурсивно и права и владелец для всего сайта?

как это сделать "не вручную"?


  • 0

#6 Ёшкин Кот

Ёшкин Кот

Отправлено 09 October 2015 - 16:42

у меня такой же бзик был.. я менял рекурсивно все на www-data.www-data ... а по тому что показано не похоже что вы то то рекурсивно меняли


  • 0

#7 shiftDELET

shiftDELET

Отправлено 09 October 2015 - 16:43

я вручную менял на папках, а как сделать все сразу?


  • 0

#8 Ёшкин Кот

Ёшкин Кот

Отправлено 09 October 2015 - 16:44   Лучший Ответ

chown -R www-data.www-data /путь к каталогу сайта

 

Ну или дпугой пользователь.. root.root


  • 1

#9 SmetDenis

SmetDenis

Отправлено 09 October 2015 - 16:46

Я обычно это делаю так
https://ru.wikipedia.org/wiki/Chown
https://ru.wikipedia.org/wiki/Chmod

Возможно в панели есть соответствующая галочка.

Проблема могла возникнуть если вы работали с сайтом от лица root а не от admin


Ну или дпугой пользователь.. root.root

admin.admin
  • 1
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.





Click to return to top of page in style!