Month: January 2025

Install PHP 8.3 and PHP-FPM on Debian 12

  • 01.10.2025
  • Posted in: PHP
  • 511 views

Install PHP 8.3 on Debian 12 apt update && apt install -y wget gnupg2 lsb-release wget https://packages.sury.org/php/apt.gpg && apt-key add apt.gpg echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list apt install -y php8.3 After installation check php version php -v Install PHP-FPM and Extensions If you also want to install additional modules, then first...

read more

Shutdown IBus in Debian/Ubuntu

  • 01.10.2025
  • Posted in: Linux
  • 919 views

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

read more

Simple script for testing the sending of mail on a local Linux server

  • 01.07.2025
  • Posted in: Linux
  • 871 views

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...

read more

Display Category description in WordPress

If you want to add a category description to the category page, you need to open a file that displays categories in your theme, usually this is a file archive.php or category.php and add this code to it <?php echo category_description(get_the_category()[0]->cat_ID); ?> Also you can use function in file functions.php function cat_description(){ if ( is_category() ){ echo category_description(get_the_category()[0]->cat_ID); } } To...

read more