Manage the ‘qmail’ message queue using qmHandle

Solution qmHandle, a perl script which gives you greater functionality – allows you to view and manage the ‘qmail’ message queue. It can be install by excuting the following commands cd /usr/bin wget -O – “https://easynews.dl.sourceforge.net/sourceforge/qmhandle/qmhandle-1.2.0.tar.gz” | tar xzf Following commands are useful to manage the queue # List emails

How do I install applications using yum on CentOS or Fedora?

You can install many common applications and dependencies you may require on your server using yum. For instance if you wanted to install webalizer you would use the following steps: 1. Login to your server Via SSH to root 2. Type the command yum install in this case: yum install

How can I monitor what my MySQL server is doing?

A handy little Linux application called mytop fits this just perfectly.  This is a near-time monitor just like the UNIX utility ‘top’ that specifically looks at what the MySQL server is doing.  It updates every few seconds, so you can get a reasonable look at your SQL performance.  It’s capable

How can I find the path to a command line binary?

You can use the command which, which shows the full path of (shell) commands. Which finds the first binary within path. If you have more than one binary in separate locations which will report the one bash would execute first. root@root [~]# which bash /bin/bash root@root [~]# which php /usr/bin/php

Use Linux to Find Large Files and Directories

If you’re a Linux user troubleshooting memory issues with your server, knowing which files are taking up the most space can be invaluable information. Luckily, you can have Linux find large files and organize them by size by combining a few simple commands. The du command determines the size of files

How can I display a banner when someone attempts to ssh to my server?

This can be set with the Banner directive in sshd_config. First create a banner to display upon connection: root@root [~]# vi /etc/sshd_banner.txt Set the Banner directive to point to this file and restart sshd: root@root [~]# cd /etc/ssh/ root@root [/etc/ssh]# cp sshd_config sshd_config.save root@root [/etc/ssh]# vi sshd_config root@root [/etc/ssh]# diff

How can I disable root logins via ssh on Redhat?

Before you disable root logins you should add an administrative user that can ssh into the server and become root with su. 1. Add the user. In the following example we will use the user name admin. adduser will automatically create the user, initial group, and home directory. We will

How can I change the port ssh listens on?

You can edit sshd_config to change the port sshd listens on. The default directory for ssh configuration is /etc/ssh. Backup the current configuration and use your favorite editor to change the Port line: root@root [~]# cd /etc/ssh/ root@root [/etc/ssh]# cp sshd_config sshd_config.save root@root [/etc/ssh]# vi sshd_config #Port 22 I will

Can I limit the ip(s) that sshd listens on?

Yes, this can be set withing the sshd_config file. Backup the sshd_config file,edit it with your favorite editor, and change the ListenAddress configuration line: root@root [~]# cd /etc/ssh/ root@root [/etc/ssh]# cp sshd_config sshd_config.save root@root [/etc/ssh]# vi sshd_config root@root [/etc/ssh]# diff sshd_config sshd_config.save 15c15 < ListenAddress 10.0.0.1 — > #ListenAddress 0.0.0.0

Can ASP run on my Linux server?

Using the Chilisoft software, it is possible to run ASP scripts. These scripts can provide database connectivity, however they cannot reference custom COM objects.

DirectoryIndex

DirectoryIndex index.php Entering the above line in .htaccess file in the document root of the domain. The above line makes to fetch index.php first instead of the index.html