Satış ve Destek +90 (216) 521 78 00

Sepetim Giriş Yap | Kayıt Ol
Tenik Data
How to increase /tmp partition size - TeknikDATA Hosting Hizmetleri

Bilgi Merkezi

Ana sayfa > Bilgi Merkezi > English > cPanel > General > How to increase /tmp partition size

How to increase /tmp partition size

cPanel recommend that you use a separate partition for /tmp that is mounted with nosetuid. Nosetuid will force a process to run with the privileges of it’s executor. You may also wish to mount /tmp with noexec after installing cPanel.

How to increase /tmp partition in cpanel

1. Stop cpanel, apache, mysql services and other webserver service.

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

2. Try to 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. For example 2G size

vi /scripts/securetmp

$tmpdsksize = 2048000

5. Run:

/scripts/securetmp

6. Once completed, restart all the service.

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

You can increse /tmp partition size directly without scripts.

Stop all the service.

# /etc/init.d/mysql stop

# cp -af /var/tmp /var/tmp.bak

# umount /var/tmp

# umount /tmp

# mv /usr/tmpDSK /usr/tmpDSK_bak

Increase /tmp partition size to 2G

# dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=2097195

# mkfs /usr/tmpDSK

# tune2fs -j /usr/tmpDSK

# mount -t ext3 -o nosuid,noexec,loop /usr/tmpDSK /tmp

# mount -o bind,noexec,nosuid /tmp /var/tmp

# cp -a /var/tmp.bak/* /tmp/

# rm -rf /var/tmp.bak

# chmod 1777 /tmp

Start all the service.

Bulut Hosting Bireysel Hosting Kurumsal Hosting Bayi Hosting Uygulama Hosting Wordpress Hosting Joomla Hosting Drupal Hosting E-Ticaret Hosting Haber Hosting Veritabanı Hosting MySQL Hosting MongoDB Hosting PostgreSQL Hosting
Bulut Sunucu Bulut Sunucu Sunucu Barındırma Sunucu Kiralama Sunucu Yük Dengeleyici Bulut Sunucu Standart Bulut Sunucu Enterprise Bulut Sunucu SSD Premium Bulut Sunucu Sunucu Yük Dengeleyici Kiralama Güvenlik Duvarı Kiralama
Kurumsal Email Sunucu Standart Email Sunucu Professional Email Sunucu Enterprise Email Sunucu Bulut Email Bulut E-Posta Hosting Hosted Zimbra Spam/Virüs Gateway Mail Back Up Smart Host ETRN Hizmeti E-Posta Servisleri
Domain Alan Adı Tescil Alan Adı Transfer Alan Adı Yenileme TÜrkçe Alan Adı Kayıt Marka Tescil Marka Tescil Başvuru
CDN Çözümleri Statik Cache Hizmeti İçerik Hızlandırma Coğrafi İçerik Dağıtımı CDN Depolama SSL Sertifika Comodo SSL QuickSSL True BusinessID SSL

LiveZilla Live Help