Creating an online store on Opencart

  • 01.08.2025
  • Posted in: Opencart
  • 2384 views

If you decide to create an online store, then you must decide on the functionality of the site. Then it will be possible to calculate the cost of the work. If you find it difficult to determine the functionality of the site yourself, please contact us using the Feedback format the bottom of this page, and we will try to help you. Choosing a template Creating an online store is possible using a free or paid template. The...

read more

How to check folder permissions on a server using PHP

  • 12.26.2025
  • Posted in: PHP
  • 25 views

You have a folder public on the server /var/www/site.com/public/ And want to check its permissions without accessing the terminal, using PHP. To do this, run the following command. $folder = '/var/www/site.com/public/'; echo 'Permissions: ' . substr(sprintf('%o', fileperms($folder)), -3); echo 'Owner: ' . posix_getpwuid(fileowner($folder))['name']; echo 'Group: ' . posix_getgrgid(filegroup($folder))['name']; The result...

read more

Setting up a Firewall for a Server Using UFW

  • 12.19.2025
  • Posted in: Linux
  • 26 views

UFW is a convenient wrapper around iptables. 1. Checking and installing UFW sudo apt update sudo apt install ufw -y Examination: ufw status Most likely: Status: inactive. This is normal. 2. You must allow SSH (otherwise you'll crash!) sudo ufw allow OpenSSH 3. Allow the required services For web server: sudo ufw allow 80/tcp # HTTP sudo ufw allow 443/tcp # HTTPS If you are planning Python / API (e.g. 8000): sudo...

read more

Setting up SSH access on server and logging in via SSH without a password

  • 12.19.2025
  • Posted in: Linux
  • 39 views

On your local computer, in your home directory, find the .ssh folder, if it doesn't exist, create it. mkdir ~/.ssh For the first login via SSH, we write in the terminal ssh username@your.ip.address When a question appears, do this: Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Be sure to answer yes not y After this: The key will be saved in ~/.ssh/known_hosts SSH will ask for the user's password. Now,...

read more

Cookie notice GDPR wordpress plugin

Cookie Notice GDPR displays a cookie notice at the bottom of the site for first-time visitors with customizable text, button, and GDPR policy link. Description Cookie Notice GDPR allows WordPress site owners to display a cookie consent notice at the bottom of their website. Features include: * Customizable text for the cookie notice. * Customizable "Accept" button color. * Customizable background color. * Customizable...

read more

Convert strtotime() function to date

  • 01.15.2025
  • Posted in: PHP
  • 286 views

strtotime function expects to be given a string containing an English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC) Let's write the current date in the Unix timestamp format: echo strtotime("now"); This is how you can add three days to the current time echo strtotime("+3 day") Converting the Unix timestamp to the current date and time echo...

read more

Install Opencart 4 on NGINX

In order to install Opencart 4 you must have php 8.0+ installed Also in the php.ini file you need to uncomment the following modules extension=curl.so; extension=gd.so; extension=zip.so; Note: If you don't have them on your system, install them. Replace the numbers 8.3 with your php version apt-get install -y php8.3-curl php8.3-gd php8.3-zip Restart PHP-FPM systemctl restart php8.3-fpm I want my site opencart4.com to...

read more

Errors from nouveau display driver on Linux

  • 01.13.2025
  • Posted in: Linux
  • 317 views

If you see the following error in the logs nouveau 0000:0a:00.0: firmware: failed to load nouveau/nv106_fuc084 (-2) nouveau 0000:0a:00.0: firmware: failed to load nouveau/nv106_fuc084d (-2) This means that you have a problem with the drivers for your Nvidia video card. To fix this error, enter in the terminal apt update && apt upgrade apt autoremove apt-get remove --purge nvidia* apt-get remove --purge "nvidia*" Reboot...

read more

How to find out why Linux is freezing

  • 01.13.2025
  • Posted in: Linux
  • 258 views

If it freezes, after rebooting, use journalctl to view logs from the previous boot before shutdown: journalctl -p 0..3 -b 1 -p 0..3 is a filter based on the priority of log entries, -b is a range of downloads, -b 0 will show only logs for the current download -b 1 for the previous one -b 0..9 for the last ten

read more

How do I make Sublime Text 4 the default text editor

  • 01.12.2025
  • Posted in: Linux
  • 272 views

After installing Sublime Text 4 , write in the terminal whereis subl My result /usr/bin/subl Next export EDITOR=/usr/bin/subl update-alternatives --install /usr/bin/editor editor /usr/bin/subl 5 Next select-editor Select the desired number and press enter. Start Sublime Text4 from the launcher as root Enter as a normal user in the terminal sudo subl Enter your password If you see an error Username is not in the sudoers...

read more

Install Sublime 4 in Debian 12

  • 01.12.2025
  • Posted in: Linux
  • 269 views

Install the GPG key: wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null Select stable version echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list And install apt-get update apt-get install sublime-text

read more