Tag: Ubuntu

How to install Python as a CGI module in Apache on Linux

Table of contents 1. How to run a Python script on a web server 2. How to set up Python as a CGI module in Apache on Debian (Ubuntu, Linux Mint, Kali Linux) 2.1 Setting up Python CGI for a single directory 2.2 Setting up Python CGI for the entire web server 3. How to set up Python as a...

How to set up Python as a CGI module in Apache on Debian (Ubuntu, Linux Mint)

Setting up Python CGI for a single directory Run the command to enable the CGI module: sudo a2enmod cgi Restart the web server for the changes to take effect: sudo systemctl restart apache2 Create file /usr/lib/cgi-bin/test.py: sudo gedit /usr/lib/cgi-bin/test.py Copy the following content to this file: #!/usr/bin/python3 print ("Content-type: text/html") print ("") print ("") print ("<html><head>") print ("") print ("</head><body>")...

How to increase the size of the partition and file system after increasing the physical size of the disk

Disk partition size and file system size In Linux, a disk can be used entirely by one partition or be divided into several partitions (similar to volumes in Windows). Usually, at the stage of installing the operating system, disk partitioning is done: disk partitions are created, and then these partitions are formatted into one or another file system. In this...

How to update the GRUB bootloader on Debian and derivative distributions (Kali Linux, Ubuntu, Linux Mint)

The GRUB operating system loader is installed and updated on Linux like any other software package. But the peculiarity of the bootloader is that even after updating the package, the actual working files of the bootloader, which are located on the partition mounted along the /boot/grub/ path, are not automatically updated. That is, when new versions of GRUB are released,...

Error “No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.1-fpm.sock (*:80) failed” (SOLVED)

Debian and derivative distributions (Ubuntu, Linux Mint, Kali Linux, and many others) may experience a “FCGI: attempt to connect to Unix domain socket /run/php/php8.1-fpm.sock (*:80) failed” error when migrating from PHP 8.1 to PHP 8.2. Apache web server log sudo tail /var/log/apache2/error.log contains the following error messages: [Sun Jan 29 03:05:45.213609 2023] [proxy:error] [pid 1313500] (2)No such file or directory:...

How to increase the swap partition in Linux Mint and Ubuntu. How to create a Swap file in Linux

In this article, using Linux Mint and Ubuntu as an example, we will learn how to view information on the swap partition, create a swap file, and also increase the space available for swap. The swap file is a specific place on permanent storage (for example, on a hard disk), where data that does not fit in RAM is temporarily...

How to connect a TV to a computer in Linux in GNOME (Ubuntu)

Is it possible to connect a TV or a second monitor to a computer in Linux This post will show you how to connect a TV or a second monitor to a Linux computer with the GNOME desktop environment. It will also talk about the available settings and solutions to typical problems that arise when connecting a TV to a...

How to install the latest version of Tor on Ubuntu

How to get the latest version of Tor on Ubuntu The tor package is present in the Ubuntu repositories, but its version may be out of date. This is especially true for Ubuntu distributions released several years ago, even if they have long-term support (LTS). In new versions of Tor, identified weaknesses and vulnerabilities are eliminated, as well as updating...

Do services need to be restarted when updating packages

Package configuration: whether to restart the service During the installation of package updates and their configuration, the apt program may ask you to restart the service: There are services installed on your system which need to be restarted when certain libraries, such as libpam, libc, and libssl, are upgraded. Since these restarts may cause interruptions of service for the system,...

Wine is missing from the context menu on Ubuntu (SOLVED)

To run Windows applications on Linux, it is usually enough to double-click on them. But it may be that the .exe file will be opened by the archive manager or another application (usually the archive manager). If you try to select the “Open With Other Application” item in the context menu, then Wine will not be there. Even worse, it...
Loading...
X