Category: Linux

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 Arch Linux (Manjaro, BlackArch)

Setting up Python CGI for a single directory Create a directory /srv/http/cgi-bin/ - this is where the Python scripts will be located: sudo mkdir /srv/http/cgi-bin/ Open the /etc/httpd/conf/httpd.conf file – the web server configuration file: sudo gedit /etc/httpd/conf/httpd.conf Find a group of lines: <Directory "/srv/http/cgi-bin"> AllowOverride None Options None Require all granted </Directory> And replace it with: <Directory "/srv/http/cgi-bin"> AllowOverride...

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 find out when Linux was installed

This article will look at several ways to find out the date of installation of the Linux operating system. But let's start by thinking about what is considered the date of installation of the OS? What is considered the date of installation of Linux It would seem that the question and the answer to it are quite simple – the...

How to translate Linux with Cinnamon into my language

Where to download translations for Cinnamon When using Linux with the Cinnamon desktop, you may have noticed that the labels in the OS are very poorly translated into other languages – almost everything is in English, even if you selected a different Linux language during installation. Although Cinnamon is indeed not fully translated into some languages, the Cinnamon desktop has...

How to run multiple instances of an application from the Panel in Cinnamon

Why can't an app pinned to the Panel be launched multiple times? You can add any application to the Panel by dragging it from the list of applications that opens with the “Menu” (“Start”) button. You can also pin the application icon to the Panel by right-clicking on the open application icon and selecting the “Pin to Panel” option from...
Loading...
X