How To Troubleshoot Socket Errors in MySQL – Ubuntu

MySQL manages connections to the database server through the use of a socket file, a special kind of file that facilitates communications between different processes. The MySQL server’s socket file is named mysqld.sock and on Ubuntu systems it’s usually stored in the /var/run/mysqld/ directory. This file is created by the MySQL service automatically.

Sometimes, changes to

Read More

Ubuntu with Apache2: Installing and Configuring Your SSL Certificate

Use free/paid SSL certificates

Enable SSL Module

  1. Replace ‘default-ssl’ with the real site name you set up in /etc/apache2/sites-available/.
    sudo a2enmod ssl
  2. Once the site listed in the command above is enabled, the site appears in /etc/apache2/sites-enabled.

Apply SSL Module to Site

sudo a2ensite default-ssl
sudo /etc/init.d/apache2 restart

Cipher Suite

  • Once you run the sudo a2enmod ssl command, edit the ssl.conf file

    Read More

how to use sudo command to install .tar.gz?

To install some file *.tar.gz, you basically would do:

  1. Open a console, and go to the directory where the file is
  2. Type: tar -zxvf file.tar.gz
  3. Read the file INSTALL and/or README to know if you need some dependencies.

Most of the times you only need to:

  1. type ./configure
  2. make
  3. sudo make install

Read More

failed to retrieve share list from server connection refused ubuntu 18.04

How to Save: To save in nano use “CTRL-O”, then “CTRL-X”.

Tip: Replacing sudo nano with gksudo gedit gives you a nice graphical editor.

And check the following lines. Change workgroup name as same in the network

if still problem exist try restart the computer and try. Still not

Read More

How to remove .html, .php, etc (extension) from URL?

To remove the .html extension from your urls, you can use the following code in root/htaccess :

NOTE: If you want to remove any other extension, for example to remove the .php extension, just replace the html everywhere with php in the code above.

Read More

Create zip archive excluding specific Files & Directories

  • Create archive of all files under public_html directory ignoring all files and folders including text backup in there named
  • Create archive of all files under httpdocs directory ignoring .svn or .git files and directories.
  • Create archive of all files under httpdocs directory ignoring all files and directories ending with with

    Read More

Change ownership of the directory in ubuntu

The chown command has the following syntax:

So in your example command it is your primary group name you need to put To determine your current user name issue the command as below on a terminal

This will return your current user name. Then issue this command to determine your

Read More