Control Web Panel
WebPanel => Apache => Topic started by: gailclark80 on October 08, 2024, 01:34:04 AM
-
My VPS running on CWPpro version: 0.9.8.1187
I want to upgrade the plugin for WordPress, but after clicking upgrade I get the following error
Update failed: Could not create directory. /home/*/public_html/wp-content/upgrade/classic-editor.1.6.5
I checked the permissions on the /upgrade/ directory and it is 755, which should be fine!
In addition, before, I could upgrade the plugin normally, but recently I suddenly got such an error.
I checked the site's error logs again and found a number of error records as follows
AH01071: Got error 'PHP message: PHP Warning: file_put_contents(): only -1 of 78424 bytes written, possibly out of free disk space in /home/*/public_ html/wp-content/plugins/wp-cache/inc/cache.php on line 1226'
This seems to be running out of space, but my VPS has 160G and I'm only using 41G so far, what's wrong with this and how should I fix it?
-
Maybe the home partition is a separate partition to / ?
-
CentOS 7 Disk ext4 162218 MB
512 MB Swap Image swap 512 MB
Here is my VPS partition
-
Do
df -h
and see what it says. The disk space may be over committed.
-
This command returns the following:
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 17M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda 157G 41G 109G 28% /
tmpfs 783M 0 783M 0% /run/user/0
Please check!
-
Space looks fine.
Under User Accounts
try Fix Permissions on that account.
-
I checked, and in the user account, its permissions are 755, which seems to be okay.
I create a directory through FileZilla, and it shows the following error
Status: Retrieving directory listing of "/public_html/wp-content/upgrade"...
Status: Directory listing of "/public_html/wp-content/upgrade" successful
Status: Creating directory '/public_html/wp-content/upgrade/66'...
Command: MKD 66
Response: 550 Can't create directory: Disk quota exceeded
FileZilla also shows that the disk space is exhausted.
-
FileZilla also shows that the disk space is exhausted.
I would contact your host and make sure everything is ok their end.
-
I found the problem, my VPS space is 160, but the space allocated to the current user is only 20G, how do I increase the space for the current user. In User Accounts-> List Accounts->Edit Account I didn't find the option to modify the disk space.
-
You will need to create or edit a Package (under Packages) and assign it to the account.
-
Thanks, it's been fixed
-
Good to hear. :)