Increase /tmp partition size and secure it in cpanel

1. Stop cpanel, apache (litespeed), mysql services:

/etc/init.d/cpanel stop
/etc/init.d/httpd stop
/etc/init.d/lsws stop
/etc/init.d/mysql stop

2. Umount /tmp and /var/tmp:

umount -l /tmp
umount -l /var/tmp

3. Move /usr/tmpDSK file to another location (just in case you’ll need to mount it somewhere else to preserve data):

mv /usr/tmpDSK /usr/tmpDSK_back

4. Modify /scripts/securetmp to set tmpdsksize to desired size:

vi /scripts/securetmp

$tmpdsksize = 2048000

5. Run:

/scripts/securetmp

6. Start cpanel, apache (litespeed), mysql services:

/etc/init.d/cpanel start
/etc/init.d/httpd start
/etc/init.d/lsws start
/etc/init.d/mysql start

That’s it!

آیا این پاسخ به شما کمک کرد؟

 پرینت این مقاله

در همین زمینه

How to reset admin elastix password

By default, our xen based Elastix 2.5 web panel login is admin and password is ***see welcome...

Default Password

For most parts, password is unique and set in your welcome email. If not, we may use some default...

How to setup google voice using PIAF 2

First you need to select the PBX in a Flash 2 as the OS (32-bit or 64-bit), then you follow these...

How to setup PBX in a Flash 3.6.5 (piaf 3)

NOTE: This is for KVM based only. We recommend 160GB of HDD space min.First, you need to install...

Micrososft App Store fails to open on Windows

When you open Microsoft App Store in your windows VPS and you see error 0x80072ee7, it measn...