Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: How to Manage Your Site Through SSH

Submitted by on July 14, 2010 – 6:09 amNo Comment

This article would tell you how to manage your Drupal-based site on Unix-server through terminal (SSH).

Solution


Connection

Connection command to local SSH-server contains GNU/Linux command line or Free BSD for pacify user (server listens unstandard port 30000):

$ ssh -p30000 pacify@127.0.0.1

Drush module will help you manage Drupal site through Unix command line (Windows maintaining is experimental).

Here are some tips for managing your site:

  • Use this command for memory check: free
    1
  • Use this to work with file system: mc
    2
    Setting CDPATH variable, you will save your efforts to enter cd command.
  • 95% of setting files are located in /etc folder.
  • \server logs are located in /var/log folder.
  • For processes viewing: ps -ef (to use filter, add " | grep <sifting value> ")
    3
  • Deleting of processes: kill -9 <Process №>
  • Changing rights for folder-file: chmod
  • There is a command which allows you to get know about terminals and how much server works: w
    4
  • Infro about File System: df
    5
  • Statistics gathering: sar -<options> [interval] [number of statistics requests]
    • If there are no parameters for sar -<options> then statistics is gathered for the last day
    • If there is no [number of statistics requests] then number is set to 1
    • General loading: sar -u
    • Memory analysis: sar -r
    • Network loading: sar -n FULL
    • Processors loading: sar -P ALL

    If sar isn’t set you should install sysstat packet. It is a set of Linus programs:

    • sar (gathering information about system activity),
    • iostat (processor activity statistics, statistics I/O for tty-devices and discs) and
    • mpstat.

    It is possible to save gathered info to file for the further analysis.

  • netstat -t 1 – gives current information
    6
  • And do not forget about help information : man <any command>

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.