Author Topic: WordPress upload folder write permission  (Read 2854 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
WordPress upload folder write permission
« on: December 15, 2020, 02:08:28 AM »
I have a problem with users write permissions, all configured ok, but anyone user not have a permission write on your home folder using wordpress file system.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   899  100   899    0     0  25742      0 --:--:-- --:--:-- --:--:-- 26441
===============================================
Kernel:
Linux ******* 4.19.62-mod-std-ipv6-64-rescue #828825 SMP Tue Jul 30 13:54:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

CPU info:
model name   : Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz

Release:
CentOS Linux release 7.9.2009 (Core)

Arch:
x86_64

Virtualization Type:

Memory:
              total        used        free      shared  buff/cache   available
Mem:          32206        2582       22063          23        7560       29086
Swap:         19997           0       19997

MySQL info:
mysql  Ver 15.1 Distrib 10.2.36-MariaDB, for Linux (x86_64) using readline 5.1

Disk Info:
Sist.fichs      Tama  Ocup Livre Uso% Montado em
/dev/root       193G   84G   99G  47% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G   21M   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/md3        1,6T   79G  1,5T   6% /home
tmpfs           3,2G     0  3,2G   0% /run/user/0

# <file system>   <mount point>   <type>   <options>   <dump>   <pass>
/dev/md2   /   ext4   errors=remount-ro   0   1
/dev/md3 /home ext4 rw,relatime,quota,usrquota,grpquota,data=ordered 0 0
/dev/sda4   swap   swap   defaults   0   0
/dev/sdb4   swap   swap   defaults   0   0
proc      /proc   proc   defaults      0   0
sysfs      /sys   sysfs   defaults      0   0
tmpfs      /dev/shm   tmpfs   defaults   0   0
devpts      /dev/pts   devpts   defaults   0   0

Apache PHP info:
PHP 7.4.13 (cli) (built: Dec 14 2020 22:08:40) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Apache start script check:
grep: /etc/init.d/httpd: No such file or directory

CWP Admin check:
/usr/local/cwpsrv/htdocs/admin

CWP version:
0.9.8.1026
===============================================

Offline
*
Re: WordPress upload folder write permission
« Reply #1 on: December 15, 2020, 11:53:09 PM »
I did a test trying to create a folder as a cwp user and received a quota exceeded message, but the user is not using up all his space, what do I do?




Offline
*
Re: WordPress upload folder write permission
« Reply #2 on: December 16, 2020, 07:57:17 PM »
Solved with this command:
Code: [Select]
/scripts/cwp_api account update_diskquota_all

Re: WordPress upload folder write permission
« Reply #3 on: December 16, 2020, 11:46:39 PM »
Solved with this command:
Code: [Select]
/scripts/cwp_api account update_diskquota_all
Thanks for sharing that: may help the next time quota doesn't fix itself, as per the bug that I reported. You have provided a possible fix, which is more than I got from the CWP team. :/