Install the packages required to connect the apt repository sudo apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring Now you need to import the official key that apt uses to authenticate packages. Download the key curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \ | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null Check if the correct key was loaded: gpg --dry-run...
Linux
To disable IBus you need to write in the terminal sudo dpkg-divert --package im-config --rename /usr/bin/ibus-daemon After this you need to reboot your computer To turn it back on IBus you need to write in the terminal sudo dpkg-divert --package im-config --rename --remove /usr/bin/ibus-daemon
First, create a shell script fakesendmail.sh in the folder /usr/bin/ touch /usr/bin/fakesendmail.sh Add the following script to this file: #!/bin/sh prefix="/var/www/mail" numPath="/var/www/mail" if [ ! -f $numPath/num ]; then echo "0" > $numPath/num fi num=`cat $numPath/num` num=$(($num + 1)) echo $num > $numPath/num name="$prefix/letter_$num.txt" while read line do echo $line >> $name done /bin/true Set...
To install php7.1 you don't need to delete php5. PHP 7.1 will be installed in a separate folder /etc/php/7.1/ First add Dotdeb PPA and import the GPG key of Dotdeb repository apt-get install apt-transport-https lsb-release ca-certificates wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg Then add PPA in your server and update echo 'deb https://packages.sury.org/php/ jessie main' > /etc/apt/sources.list.d/php.list apt-get...
Let's see how much free space we have pvs PV VG FMT Attr PSize PFree /dev/sda1 v1 lvm2 a - - 60.43 15.84 Then choose the right LV Path volume lvscan I will increase the size of the root volume /dev/v1/root Increase the size by 2 Gigabytes lvextend -L+2G /dev/v1/root Сheck the file system for errors e2fsck -f /dev/v1/root Resize the filesystem resize2fs /dev/v1/root Check the new LVM size lvs
If you use Linux default sessions in php are stored at /var/lib/php/sessions/ and you want change this settings, create in your server folder sessions like this /var/www/sessions/ Set permissions chown -R www-data:www-data /var/www/sessions chmod 777 /var/www/sessions Note: www-data it`s your nginx user, you can check it in file /etc/php5/fpm/pool.d/www.conf Now edit php.ini and set path to your new sessions folder session.save_path...
Boot from live usb. I use Debian 8. Open terminal and type sudo su Install LVM apt-get install lvm2 List all logical volumes in all volume groups lvscan I have such a LVM structure ACTIVE '/dev/v1/boot' [100.00 MiB] inherit ACTIVE '/dev/v1/root' [10.00 GiB] inherit ACTIVE '/dev/v1/tmp' [500.00 MiB] inherit ACTIVE '/dev/v1/var' [30.00 GiB] inherit Now mount devices to mnt folder mount /dev/v1/root /mnt mount /dev/v1/boot...