I have to clean this up.

  • coding
  • php
  • sql
  • webhosts
  • joomla tips. 

This section is a reflection of my coding skills -- cut and paste, and hastily thrown together. Most of this is copied from other sites -- just so I have fast reference here.
If it belongs to you - sorry. Let me know. Though most has attribution. ;-)

I wrote this for myself. Since I have no memory, I write everything down. If it helps you -- great. if you run into problems GTS.  I have no answers. 

I have postfix mapped to a mysql database with three tables: domain, user, alias.

the complete postfix tutorial is here blogging dragon

What he doesn't address, the complexities of forwarding to Gmail,  I will below. Gmail is merciless. If your server isn't getting a 8 or greater at your email will never see an inbox. 

we are assuming you have crossed that hurdle. 

Read more: email forwarding to gmail from your mail server

 Describing briefly the purpose of each directory.

  1. /bin : All the executable binary programs (file) required during booting, repairing, files required to run into single-user-mode, and other important, basic commands viz., cat, du, df, tar, rpm, wc, history, etc.
  2. /boot : Holds important files during boot-up process, including Linux Kernel.
  3. /dev : Contains device files for all the hardware devices on the machine e.g., cdromcpu, etc
  4. /etc : Contains Application’s configuration files, startupshutdownstartstop script for every individual program.
  5. /home : Home directory of the users. Every time a new user is created, a directory in the name of user is created within home directory which contains other directories like DesktopDownloadsDocuments, etc.
  6. /lib : The Lib directory contains kernel modules and shared library images required to boot the system and run commands in root file system.

    Read more: Linux Directories Explained

Pipes can be thought of as a tube where data enters one end and sorted or customized at the other end.  Using pipes you can connect two programs. You can make the output of a particular command to act as the input for another command.  You can carry on this chain  between commands for customized outputs.

Pipes can be used with most of the Unix commands. You should take care to check that the output of the first command is acceptable input to the second command.
It should not be that the first command has its output in some format other than text format and the second command works with only text input. If at all this sort of thing happens, you would mostly get an error message or you would have to type <Ctrl>-C to quit the execution of the command and come back to the prompt.

Read more: Pipes

this is in place here for

edit the template index.php file and add the following AS THE VERY FIRST LINES of the install's primary index.php.

$domain = $_SERVER["HTTP_HOST"];
$url = $domain . $uri;

if (($url == "") ||
   ($url == "")) { 
   header("Status: 301 Moved Permanently");

Here's the benefit: The visitor will now be redirected to the appropriate Red Site page, that has the Red Template assigned to it only in the case where they have arrived at the 'red site' domain name. Otherwise, the conditional PHP rule is ignored, and the Yellow Site loads.

Read more: PHP Redirect in joomla index

The grep command searches the given input FILEs for lines containing a match or a text string.

grep command syntax

The syntax is:

grep -options "text string to search” directory-path


grep [option] "text string to search” directory-path


grep -r "text string to search” directory-path


grep -r -H "text string to search” directory-path


egrep -R "word-1|word-2” directory-path


egrep -w -R "word-1|word-2” directory-path

Read more: grep


Other sites hosted by L Rio.