webservers

How to Run Remote Commands with SSH

The ssh program can  be used for monitoring remote hots. The system admin can also execute commands from his desktop which can be executed at remote servers. This is a cool facility of ssh. We can do much more on SSH. root@admin:~ # ssh root@www ‘df -h’ Filesystem Size Used Avail Use% Mounted on /dev/ubda 3.5G 2.1G [...]

How to Install Elgg – An open, flexible social networking engine

Elgg is an open, flexible social networking engine, designed to run at the heart of any socially-aware application. Building on Elgg is easy, and because the engine handles common web application and social functionality for you, you can concentrate on developing your idea. Elgg is open source. That means, when you use Elgg, you have [...]

Essential Linux Server Administrator Commands

Command Summary Use arp Command mostly used for checking existing Ethernet connectivity and IP address Most common use: arp This command should be used in conjunction with the ifconfig and route commands. It is mostly useful for me to check a network card and get the IP address quick. Obviously there are many more parameters, [...]

How to Install and Configure the eAccelerator PHP cache on Apache

If you are looking for a way to speed up your PHP pages on Apache, this is the software you want to install. Huge performance gains can be had when using this software to precompile and cache your PHP pages, and it is very simple to install.

How to run a PHP script on cron

Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, “How to run PHP Scripts with crontab?” Cron is normally available on all Unix and Linux distributions; if [...]

How to stop or restrict robots – Apache webserver

Ever wondered why so many clients are interested in a file called robots.txt which you don’t have, and never did have? These clients are called robots (also known as crawlers, spiders and other cute names) – special automated clients which wander around the web looking for interesting resources. Most robots are used to generate some [...]

How to Call Linux Commands Inside PHP Page

At times, we need to verify some linux binaries from our web hosting provider. Say, we need to confirm path locations of specific linux binaries in order for our particular PHP pages to work out its function. There are lot of ways to do it, the simplest way is to call your web hosting provider [...]

How to Stop Directory Listing in webservers

If you have a lot of files in a directory but there is no index file, your server will list all the files in that server. This can cause a lot of problems. For example, one of the most common directories which webmasters forget to hide is the images folder. This allows everyone to view [...]

How to Install and Configure MRTG

The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing PNG images which provide a LIVE visual representation of this traffic. MRTG is basically used for generating graphs to a device, network host, IP-based appliances for monitoring usage, live data and statistics usage. This [...]

Linux: How to Call Linux Commands Inside PHP Page

At times, we need to verify some linux binaries from our web hosting provider. Say, we need to confirm path locations of specific linux binaries in order for our particular PHP pages to work out its function. There are lot of ways to do it, the simplest way is to call your web hosting provider [...]

How To Do HTTP 301 Redirection using PHP and Perl

At times, a permanent HTTP 301 redirection is needed to redirect a website location to another. Permanent redirection via HTTP 301 is advised on website redirection where an old link or website needs to be redirected to another website domain or website location. In short, HTTP 301 code tells user-agents that the current location has [...]

Securing Apache Checklist

The checklist: First step: Secure the operating system. On an insecure operating system, you can’t have a secure webserver. Run Apache under a distinct user and group (e.g. www-data:www-data). Do not run it as root:root or nobody:nogroup! User www-data Group www-data Only enable those Apache modules (using the AddModule directive) which are absolutely necessary. Disable [...]

10 Nagios Web Frontends

Here is a list of 10 nagios 2.x web frontends that you might find useful if you are looking for a web interface to administer your nagios configuration. 1. Centreon / Oreon – http://www.centreon.com/ Centreon is a network, system, applicative supervision and monitoring tool, it is based upon the most effective Open Source monitoring engine [...]

How to Install OTRS on a SuSE / Linux

Install the otrs.rpm with YaST (YaST2) or on the command line with rpm (what ever you prefer). Please be aware of the fact that OTRS needs some Perl modules which are not installed by default in a typical SuSE installation. So it might be a good idea to use YaST to install the rpm because [...]

How to Install phpMyAdmin

Choose an appropriate distribution kit from the phpmyadmin.net Downloads page. Some kits contain only the English messages, others contain all languages in UTF-8 format (this should be fine in most situations), others contain all languages and all character sets. We’ll assume you chose a kit whose name looks like phpMyAdmin-x.x.x-all-languages.tar.gz. Untar or unzip the distribution [...]