poniedziałek, 5 marca 2018

Custom php.ini for user cloudlinux

su -s /bin/bash USERNAME
cd /etc/cl.php.d/alt-phpXX/ (where XX depend from version)
vi custom.ini >> and add custom parameters.
disable_functions=function1,function2,mail

środa, 1 listopada 2017

środa, 31 maja 2017

fio disk benchmark

fio --name=rand-write --ioengine=libaio --iodepth=32 --rw=randwrite --invalidate=1 --bsrange=4k:4k,4k:4k --size=512m --runtime=120 --time_based --do_verify=1 --direct=1 --group_reporting --numjobs=1

piątek, 26 maja 2017

Nginx: zwracanie 444 przy próbie odwołania do nieistniejących hostów

server {
  server_name _;
  listen 80 default_server;
  return 444;
}

server {
  server_name _;
  listen 443 default_server;
  return 444;
}

piątek, 14 kwietnia 2017

MegaRAID smartd

megacli -pdlist -a0| grep 'Device Id'

Device Id: 0
Device Id: 1

smartctl -d sat+megaraid,1 -a /dev/sda

smartd.conf

/dev/sda -d megaraid,00 -H -W 1 -m MAIL -M exec /usr/share/smartmontools/smartd-runner
/dev/sda -d megaraid,01 -H -W 1 -m MAIL -M exec /usr/share/smartmontools/smartd-runner

poniedziałek, 10 kwietnia 2017

piątek, 7 kwietnia 2017

Ubuntu: GRUB Error 17 / OVH

root (hd0,0)
setup (hd0)
kernel /boot/vmlinuz-XXXX root=/dev/vda1
initrd /boot/initrd.img-XXX
boot

środa, 29 marca 2017

OVH KVM resize root parition Centos 7 XFS

lsblk

parted

select /dev/sdb

unit s

print

rm 1

mkpart

Partition type? primary
File system type? xfs
Start? 2048s
End? 100%

print

set 1 boot on

quit

mount /dev/sdb1 /mnt

xfs_growfs -d /mnt