Сообщения

Laravelni o'rnatganda chiqadigan xatoni bartaraf etish

Error in exception handler: The stream or file "/var/www/laravel/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/laravel/bootstrap/compiled.php:8423 sudo chown -R $USER :www-data storage sudo chown -R $USER :www-data bootstrap/cache chmod -R 775 storage chmod -R 775 bootstrap/cache Update: Webserver user and group depend on your webserver and your OS. to figure out what's your web server user and group use the following commands. for nginx use: ps aux|grep nginx|grep -v grep for apache use: ps aux | egrep '(apache|httpd)'

certbot yordamida Let’ Encrypt SSL sertifikat olamiz

 sudo certbot certonly --manual -d example.com

Ventoy dasturini Ubuntuga o'rnatish

Изображение
1. Ventoy dasturini github.com dagi rasmiy repozitoriyadan oxirgi versiyasini yuklab olamiz. 2. Arxivni ochamiz:      sudo tar -xf ventoy-1.0.80-linux.tar.gz 3. Arxivdan ochgana paydo bo'lgan direktoriyaga kiramiz:       cd ventoy-1.0.80 4.  VentoyWeb.sh nomli skriptni ishga tushiramiz:      ./VentoyWeb.sh http://127.0.0.1:24680 adresni brauzerdan ochamiz sudo fdisk -l /dev/sdb buyrug'i bilan disklarni ko'ramiz. /dev/sdb1 ning ichiga iso formatidagi operatsion sistemalarni tashlaymiz.

Telegram kanaliga telegram bot orqali xabar yuborishning oson yo'li

Изображение
 Bugun biz Telegram kanalga xabar yuborishni o'rganimiz. Buning uchun birinchi navbatda: Telegramda public kanal ochish kerak BotFather bilan Telegram bot ochish kerak Botni ochilgan telegram kanalga administrator qilish kerak. Agar siz yuqorida aytib o'tilganlarni qilgan bo'lsangiz, endi quyidagi URL manzil orqali Telegram BOT API-ga HTTP GET so'rovini berish bilan kanalingizga xabar yuborishingiz mumkin: https://api.telegram.org/bot[BOT_API_KEY]/sendMessage?chat_id=[MY_CHANNEL_NAME]&text=[MY_MESSAGE_TEXT] BOT_API_KEY  BotFather orqali ochilgan botning tokeni MY_CHANNEL_NAME  ochilgan telegram kanalning nomi(@my_channel_name) MY_MESSAGE_TEXT  yuborigan text xabar Dasturlash tilida quyidagicha bo'ladi: PHP   $apiToken = "my_bot_api_token"; $data = [ 'chat_id' => ' @my_channel_nam...

Статус проверки Let’s Encrypt 400. Подробности: невозможно обновить вызов :: авторизация должна быть на рассмотрении

 Let’s Encrypt validation status 400. (1) Запись A против записи AAAA — чтобы обеспечить разрешение нового домена на IP-адрес сервера, я обычно ввожу записи A (IPv4) и AAAA (IPv6) для домена. Это было частью проблемы. Как только я это сделаю, я столкнусь с этой проблемой: я не могу выдать SSL-сертификат Lets Encyrpt для домена из панели управления Hestia (получая ошибку 400), но я могу сделать это из командной строки: v-add-letsencrypt-domain user domain.com (2) Служба NGINX должна быть сначала остановлена, а затем перезапущена — после удаления записей AAAA со всех доменов время от времени я все еще получаю сообщение об ошибке. Это время, когда я должен сначала остановить службу NGINX, а затем перезапустить ее. Обратите внимание, что простой щелчок по значку «Перезагрузка» в панели управления Hestia не работает. Вы должны сначала остановить его, а затем перезапустить. Вот и все! Если у вас по-прежнему возникает эта ошибка 400, убедитесь, что вы выполнили шаг 2, описанный выше, посл...

How to stop an automatic redirect from “http://” to “https://” in Chrome

I n addition to cached redirects, HTTP Strict Transport Security (aka HSTS) may be at play. HSTS is a security feature that forces the browser to use HTTPS even when accessing an HTTP URL. The browser will start using HSTS for a domain after receiving a Strict-Transport-Security header from the server. The browser also ships with a list of domains for which HSTS is enabled by default. In Chrome, there is a way to delete your domain from HSTS after it was added by the server. Though, you can’t exclude domains that are baked in the browser (this includes popular websites and notably everything under the new  .dev  TLD) Go to  chrome://net-internals/#hsts . Enter  example.com  under  Delete domain security policies  and press the Delete button. Now go to  chrome://settings/clearBrowserData , tick the box  Cached images and files  and press click the button  Clear data .

Generating a bootable USB flash drive for Linux distribution

  Linux Insert the USB flash drive into a USB port on your computer. Run the terminal (console) in the super-user mode (e.g. using commands  su  or  sudo -s  — depending on your Linux distribution). Use the command  fdisk -l  to detect the USB flash drive name (e.g.  /dev/sdb ). Save the drive image to the USB flash drive using this command:  dd if=kerio-control-installer.iso of=/dev/sdx bs=1M  and replace kerio-control-installer.iso  with the real file name and /dev/sdx  with the actual device name. It is necessary to enter the physical device (e.g.  /dev/sdx ), not only a partition (e.g.  /dev/sdx1 ). Use command  sync  to guarantee finishing all drive operations. Eject the USB drive safely and remove it from the USB port.