Chapter 4 . Learning Basic (Web hosting servers) Administration 135 Administrative
Friday, August 31st, 2007Chapter 4 . Learning Basic Administration 135 Administrative Configuration Files Configuration files are another mainstay of Linux administration. Almost everything you set up for your particular computer user accounts, network addresses, or GUI preferences is stored in plain-text files. This has some advantages and some disadvantages. The advantage of plain-text files is that it s easy to read and change them. Any text editor will do. The downside, however, is that as you edit configuration files, no error checking is going on. You have to run the program that reads these files (such as a network daemon or the X desktop) to find out whether you set up the files correctly. A comma or a quote in the wrong place can sometimes cause a whole interface to fail. Some software packages offer a command to test the sanity of the configuration file tied to a package before you start a service. For example, the testparm command is used with Samba to check the sanity of your smb.conf file. Other times, the daemon process providing a service offers an option for checking your config file. For example, run httpd -t to check your Apache Web server configuration before starting your Web server. Throughout this book you ll find descriptions of the configuration files you need to set up the different features that make up Linux systems. The two major locations of configuration files are your home directory (where your personal configuration files are kept) and the /etc directory (which holds system-wide configuration files). Following are descriptions of directories (and subdirectories) that contain useful configuration files. (Refer to Table 4-1 for some individual configuration files in /etc that are of particular interest.) Viewing the contents of Linux configuration files can teach you a lot about administering Linux systems. . $HOME All users store information in their home directories that directs how their login accounts behave. Most configuration files in $HOME begin with a dot (.), so they don t appear as a user s directory when you use a standard ls command (you need to type ls -a to see them). There are dot files that define how each user s shell behaves, the desktop look-and-feel, and options used with your text editor. There are even files such as .ssh/* and .rhosts that configure network permissions for each user. (To see the name of your home directory, type echo $HOME from a shell.) . /etc This directory contains most of the basic Linux system-configuration files. Table 4-1 shows some /etc configuration files of interest. . /etc/cron* Directories in this set contain files that define how the crond utility runs applications on a daily (cron.daily), hourly (cron.hourly), monthly (cron.monthly), or weekly (cron.weekly) schedule. Note
We recommend high quality webhost to host and run your jsp application: christian web host services.