Rubrika: IT slova

Změna timezone na centos7

Pokud potřebujete změnit timezone (časové pásmo) na CentOS7, tak si nejprve: vylistujeme dostupné zóny: timedatectl list-timezones Z výpisu si vybereme tu správnou např tu pro ČR ( Europe/Prague ) a změníme jí na serveru: timedatectl set-timezone Europe/Prague ověříme že je…

tmpwatch example

Tmpwatch is linux tool to automate temporary file cleanup. When you need examples for your inspiration try this example: Delete older files than 48 hours: tmpwatch -m 48 /var/www/cache/ Delete older files haven’t been accessed 30 days: tmpwatch  30d /var/www/cache/…

Missing comand in Centos7

You install new centos7 and yours classic command missing? Here is small list of lost commands and new alternatives: ifconfig alternative: ip addr or install ifconfig: yum install net-tools service httpd restart alternative: systemctl restart httpd.service chkconfig servicename on/off  alternative:…

Selinux – allow fwrite php in centos7

How to allow fwrite php command in centos7? You must set exact directory for writing.  ( e.g. cache dir ): semanage fcontext -a -t ‚httpd_cache_t‘ ‚/path/to/www/cache(/.*)?‘ restorecon -Rv /path/to/www/cache Tip: do not disabling Selinux ! Is good reasons for prevent…

Vmware esxi smart

Jak zjistit stav disků v vmvare esxi serveru? 1. Spusťte si shell 2. Vypište všechny disky: esxcli storage core device list Obdržíte výpis typu: t10.ATA_____INTEL_SSDSC2CW180A3_____________________CVCV246103805RNY1E____ Display Name: Local ATA Disk (t10.ATA_____INTEL_SSDSC2CW180A3_____________________CVCV246103805RNY1E__) Has Settable Display Name: true Size: 171705 Device Type:…