Debian / Ubuntu Linux Apache mod_python Configuration

Here are the steps to configure mod_python on Apache web server on Debian or Ubuntu Linux: Install Apache web server and mod_python package: sudo apt-get install apache2 libapache2-mod-python Enable mod_python module: sudo a2enmod python Restart Apache web server to apply changes: sudo systemctl restart apache2 Create a new directory for your mod_python application in /var/www: … Read more

Change Txqueuelen Under Linux

To change the txqueuelen parameter of an active network interface in Linux, you can use the ifconfig or ip command. Using ifconfig: Open a terminal and enter the following command to display the current network interfaces: ifconfig -a Identify the interface for which you want to change the txqueuelen parameter. Enter the following command to … Read more

Set Txqueuelen Under Linux

The txqueuelen parameter in Linux is used to set the size of the transmit queue of a network interface. The default value is usually 1000 packets. (beckerentandallergy.com) To set the txqueuelen parameter for a network interface in Linux, you can use the ifconfig command or the ip command. Using ifconfig: Open a terminal and enter … Read more

Lost MySQL Admin Password

If you’ve lost the MySQL admin password, you can reset it by following these steps: Stop the MySQL server: sudo systemctl stop mysql Start the MySQL server with the –skip-grant-tables option to skip the permission check: sudo mysqld_safe –skip-grant-tables & Connect to the MySQL server as the root user without a password: mysql -u root … Read more

Suse Linux ( SLES10 ) IPv6 Configuration

To configure IPv6 on SUSE Linux Enterprise Server 10 (SLES10), you can follow these steps: Open the network configuration file in a text editor: sudo vi /etc/sysconfig/network/ifcfg-eth0 Replace “eth0” with the name of your network interface. Add the following lines to the file to enable IPv6: IPV6INIT=yes IPV6_AUTOCONF=yes These options enable IPv6 on the interface … Read more

Explain: php_self or $_SERVER[‘PHP_SELF’] Usage

In PHP, $_SERVER[‘PHP_SELF’] is a predefined variable that returns the name of the currently executing script, including any path information. It is often used in web applications to generate self-referencing URLs or to specify the target of a form submission. Here’s an example of how you can use $_SERVER[‘PHP_SELF’] to generate a self-referencing URL: <form … Read more