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!

Esta resposta lhe foi útil?

 Imprimir este Artigo

Veja também

How to reset admin elastix password

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

Operating systems we offer on VPS

We offer all Openvz, Xen or KVM based VPS. Xen based Windows is limited to 32-bit only and 4GB...

Default Password

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

Web controlpanel

Depending on the VPS plans you have, below is 3 different ways to access the web panel: 1. For...

How to disable Windows Defender/Anti Malware, Windows Update on Windows

Steps to Disable AntiMalware/Windows Defender AntiMalware program in windows tend to use a lot...