---
title: "SSH tips and tricks"
canonical_url: "https://www.zone.lv/help/kb/ssh-tips-and-tricks/"
post_type: "ht_kb"
published: "2024-04-23T09:14:34+00:00"
modified: "2024-04-23T09:18:29+00:00"
language: "en"
author: "Hasso"
taxonomies:
  ht_kb_category:
    - name: "SSH / Shell"
      url: "https://www.zone.lv/help/kb-categories/ssh-shell-en/"
  ht_kb_tag:
    - name: "nipid"
      url: "https://www.zone.lv/help/kb-tags/nipid/"
    - name: "php"
      url: "https://www.zone.lv/help/kb-tags/php-eng/"
    - name: "SSH"
      url: "https://www.zone.lv/help/kb-tags/ssh/"
    - name: "tehniline"
      url: "https://www.zone.lv/help/kb-tags/tehniline-eng/"
    - name: "tips"
      url: "https://www.zone.lv/help/kb-tags/tips/"
    - name: "tricks"
      url: "https://www.zone.lv/help/kb-tags/tricks/"
    - name: "trikid"
      url: "https://www.zone.lv/help/kb-tags/trikid/"
    - name: "wp"
      url: "https://www.zone.lv/help/kb-tags/wp-en/"
---

# SSH tips and tricks

## **How to enable PHP modules?**

Have you activated some PHP modules on your web server that are not loaded by default and discovered that they are missing in the command line? Here’s an option to use PHP.INI on your web server.

If you want PHP to use PHP.INI from one of your domains, you can add it as a key to the PHP alias, for example:

`alias php='php56-cli -c ~/domeenid/www.virtualserver.name/phpini/virtualserver.iname/php.ini'`

 Tähelepanu! It is important to notice that the file path starts with ‘`tilde`‘ -&gt; ‘`~`‘ which represents the home directory.

## SSH Timeout (TTL)

The default SSH Timeout or TTL for virtual servers is 1 hour. The time starts running from the last command and is not counted if there is an active script.

## Read more

- [How to view disk space usage and the number of files (inodes)?](https://www.zone.lv/help/en/kb/how-to-view-disk-space-usage-and-the-number-of-files-inodes/)
- [Detecting slow PHP requests](https://www.zone.lv/help/en/kb/detecting-slow-php-requests/)
- [Using Mytop to monitor MySQL/MariaDB load](https://www.zone.lv/help/en/kb/using-mytop-to-monitor-mysqlmariadb-load/)
- [How to change default php-cli in console](https://www.zone.lv/help/en/kb/how-to-change-default-php-cli-in-console/)
- [WP-CLI a command line tool for WordPress management](https://www.zone.lv/help/en/kb/wp-cli-a-command-line-tool-for-wordpress-management/)
