Basic Linux Server Administration

Here are a few simple commands to be used from the SSH/VNC command line on most linux based distributions:

: will provide a quick breakdown of the server uptime and load average
top: will display top processor usage information

While running top, the following are a few common command line options

A : Sorts the display by top consumers of various system resources. Useful for quick identification of performance-hungry tasks on a system.
c : Toggle full command display
f : Enters an interactive configuration screen for top. Helpful for setting up top for a specific task.
k : Issues kill command.
M : Sort by memory usage.
N : Sort by numeric process ID
o : Enables you to interactively select the ordering within top.
t : Displays summary information off and on.
T : Sort by process time
z :Turn on or off color/mono
space : Immediately update the display

Server Logs:
There are many server logs available for review to aid with identifying and resolving problems.

/var/log/dmesg - Kernel/boot information
/var/log/boot.log - Boot log
/var/log/messages* - General sytem messages
/var/log/secure - authentication logs

Memory usage & statistics:

free -m

Disk usage & statistics:
df -h

Some of the most common errors generated with the apache service and their meanings are as follows:

400 Bad Request
Authorization Required
403 Forbidden
404 Not Found
500 Internal Server Error

To identify the cause of such errors, you will want to review the apache error logs which can be found in the following areas depending on your setup:



Access Logs: if you are finding a particular user to have a large number of processes then reviewing the process itself in further detail or reviewing that accounts access logs can be helpful (usually found in either /var/log/httpd/access_logor /home/user/accesslogs/

If running MySQL 'mysqladmin proc' is a helpful command to show you the active MySQL processes at the time, you can also feel free to customize the MySQL configuration if you are comfortable with doing so (/etc/my.cnf) as each of the servers we provide do not include any customization (which ususally isn't necessary unless you are seeing problems specific to the service.

Other Services:
To check whether a specific service is running you can use the ps aux command.
Ex: ps aux | grep httpd will check if the apache service is running. You can restart services using service servicename restart (EX: service httpd restart) so if you find that the server itself is online but the websites are not displaying it may be that the issue is specific to apache(httpd)

**Please note that this information is provided strictly for reference for those whom are comfortable using it. Please contact if you need any assistance.

Was this answer helpful?

 Print this Article

Also Read:

How can I contact support?

If you are already a customer, we recommend using our ticket system to easily track your...

How do I re-direct non-https traffic to the https version of the website?

To re-direct a single site from http:// to https:// or https://www you would add the following...

How do I setup reverse DNS (rDNS/PTR)?

You can setup a reverse DNS record in your DotBlock Client area and following these steps:...

VNC, + Java issue: "Application Blocked by Security Settings"

ISSUE: When attempting to access the java-based VNC applet under the VNC icon in Manage Servers...

How many IP addresses are provided with my VPS?

One IP address is provided with the establishment of your VPS account. Should you need to add...