ßáÇæÏ áíäßÓ Cloud Linux ÇÓÊåáÇß cagefs/tmp ãÓÇÍÉ ßÈíÑÉ clean up / delete
The huge size of the .cagefs directory - How to clean up CageFS /tmp files
It’s possible to delete tons of old sessions at /tmp folder?
Tmp files deleted accidentaly from CageFS folder. How to solve. Plz help!!!
I deleted all the files in my tmp folder and now my website says 'Error establishing a database connection'
How-to clean your /tmp directory with tmpwatch



ÇáãÔßáÉ :

ÊÌÏ ãæÞÚ íÓÊåáß ãÓÇÍÉ ßÈíÑÉ ÌÏÇ ÑÛã ÇäåÇ ÛíÑ ãÓÊåáßÉ !
äÚã ÏÇÎá ãÌáÏ CageFS /tmp ÞÏ ÊÌÏ Çä ãÓÇÍÊå 150 ÌíÌÇ ÝÞØ
æãÓÇÍÉ ÇáãæÞÚ äÝÓå Ýì public html åì 40 ÌíÌÇ æÇáÇíãíáÇÊ 1 ÌíÌÇ
áßä ÎÇÑÌåã Ýì CageFS /tmp åäÇß 15 ÌíÌÇ ãÖÇÝÉ !!

åá íãßäß ÍÐÝ åÐÇ ÇáãÌáÏ ¿ ØÇáãÇ ÇäåÇ ãáÝÇÊ ãÄÞÊÉ ¿
ÇáÇÌÇÈÉ äÚã, áßä ÈÚÏ ÇáÍÐÝ åíæÞÝ ÇáãæÞÚ æíÙåÑ áß ÎØÇ
'Error establishing a database connection'

Íá ÇáãÔßáÉ :

ÇáãÌáÏ CageFS /tmp ÈÏÇÎáå ãáÝÇÊ php ãÄÞÊÉ ááãæÞÚ æßÐáß ÇÊÕÇá ãÚ ÇáÓíÑÝÑ
áÇ ÊÍÐÝ “mysql.sock” ãä ÏÇÎá ÇáÝæáÏÑ , Çæ ÇÐÇ ÍÐÝÊ ÌãíÚ ÇáãáÝÇÊ ÇÚãá ÑíÓÊÇÑÊ mysql
ÇÐÇ áã íÚãá ÇÚãá ÑíÓÊÇÑÊ ááÓíÑÝÑ æåÊÌÏ Çä ÇáãÔßáÉ Êã ÍáåÇ.

restart database /restart server

-----------------------------------

Íá ÇÎÑ ãä ÎáÇá ÇáÊäÙíÝ Clean æ áíÓ ÇáÍÐÝ Delete
How-to clean your CageFS /tmp directory with tmpwatch
Êã ÊÌÑÈÉ åÐÇ ÇáÍá áã íÍá ãÔßáÉ ÇÒÇáÉ ÇáãáÝÇÊ ÇáßÈíÑÉ !

1. The high volume is most likely generated by temporary files. You can clean these files manually with
ßæÏ:
cagefsctl --tmpwatch
2. By default, the tmpwatch script cleans up users' /tmp directories every 30 days/720 hours.

3. You can change the time constraints of tmpwatch:
ßæÏ:
cagefsctl --set-tmpwatch='/usr/sbin/tmpwatch -umclq 720'
Where 720 is the number of hours that the file had to be inaccessible to be removed.
--------------------------------------------------------------------------------------------------------------------

By default, CageFS will clean up all the files that haven't been accessed in the last 30 days from the user's /tmp directory, however, this interval can be changed. You can set it to perform the cleaning every 6 hours, for instance, with the following command:

ßæÏ:
$ cagefsctl --set-tmpwatch='/usr/sbin/tmpwatch -umclq 6'
.cagefs directories contain CageFS configuration files so it is not recommended to remove them entirely. Most likely, there were some temporary files stuck, please check this documentation for more information:
https://docs.cloudlinux.com/shared/c...mp-directories

To recreate .cagefs directory for a user, you can run:
ßæÏ:
cagefsctl -m USERNAME
To recreate .cagefs directory for all the users:
ßæÏ:
cagefsctl -M
ÇáãÑÌÚ:
https://cloudlinux.zendesk.com/hc/en...gefs-directory

https://docs.cloudlinux.com/shared/c...mp-directories
https://support.cpanel.net/hc/en-us/...-with-tmpwatch
https://support.cpanel.net/hc/en-us/...geFS-tmp-files
https://www.reddit.com/r/webhosting/...mp_folder_and/
https://wordpress.org/support/topic/...wp-are-broken/