Difference between revisions of "DB Variables Configuration"
(Modified headers, modified introduction and corrected some typos) |
|||
Line 1: | Line 1: | ||
'''Created by: [[User:PicsOne|PicsOne]] (Normando Hall)''' | '''Created by: [[User:PicsOne|PicsOne]] (Normando Hall)''' | ||
− | == | + | == Database variables == |
{{drawBoxNote|content=Please feel free to modify or add info to this howto, and make corrections in typos, because I don't speak english very good.}} | {{drawBoxNote|content=Please feel free to modify or add info to this howto, and make corrections in typos, because I don't speak english very good.}} | ||
− | + | SME Server comes with the most used parameters set as variables in it's internal configuration databases. These variables are used to store values to be used in the final configuration files. Please, read the [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/devguide.html#SME-INTERNALS SME Server Developer's Guide] to understand the template and database process. | |
− | These variables are useful to configure your system | + | These variables are useful to configure your system more easily, as you do not need to modify configuration files directly for most common cases. It also makes it possible to administrate the server through it's server-manager as the database variables are used to set and change configuration parameters, after changing them configuration files only have to be regenerated and affected services nee dto be restarted. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Suppose you need to increase "memory-limit" in php. | Suppose you need to increase "memory-limit" in php. | ||
Line 34: | Line 17: | ||
and then restart httpd service. | and then restart httpd service. | ||
− | + | {{drawBoxWarning|content=Database parameters are case sesitive and therefore it is is neccesarry to carefully mind there case when typing them at the server shell as no errors are given when you make a typo.}} | |
− | + | The database system is based on a flat file system, but you should never edit them directly. instead you can use the db command. More details on using the database system can be found in the [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/devguide.html#SME-INTERNALS SME Server Developer's Guide]. | |
+ | === Overview of database variables === | ||
The next is only the standard variables defined that come with SME7. Of course you can update this list with new standard variables in future SME versions. | The next is only the standard variables defined that come with SME7. Of course you can update this list with new standard variables in future SME versions. | ||
Line 49: | Line 33: | ||
All variable are refered to /etc/e-smith/templates/etc directory. If you want to extend this howto, you can add variables from /etc/e-smith/templates/home/httpd/html/horde dir (horde variables), or /etc/e-smith/templates/var/qmail (qmail variables) or /etc/e-smith/templates/var/service (service variables). | All variable are refered to /etc/e-smith/templates/etc directory. If you want to extend this howto, you can add variables from /etc/e-smith/templates/home/httpd/html/horde dir (horde variables), or /etc/e-smith/templates/var/qmail (qmail variables) or /etc/e-smith/templates/var/service (service variables). | ||
− | + | ==== AppleTalk (atalk) ==== | |
− | |||
− | |||
− | === | ||
''Usage'' | ''Usage'' | ||
db configuration setprop atalk variable value | db configuration setprop atalk variable value | ||
Line 68: | Line 49: | ||
− | === | + | ==== Clam AntiVirus (clamav) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop clamav variable value | db configuration setprop clamav variable value | ||
Line 204: | Line 185: | ||
− | === | + | ==== DHCP daemon (dhcpd) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop dhcpd variable value | db configuration setprop dhcpd variable value | ||
Line 220: | Line 201: | ||
− | === | + | ==== FlexBackup ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop flexbackup variable value | db configuration setprop flexbackup variable value | ||
Line 256: | Line 237: | ||
− | === | + | ==== Apache server-manager (httpd-admin) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop httpd-admin variable value | db configuration setprop httpd-admin variable value | ||
Line 272: | Line 253: | ||
− | === | + | ==== SpamAssasin ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop spamassassin variable value | db configuration setprop spamassassin variable value | ||
Line 324: | Line 305: | ||
− | === | + | ==== MySQL (mysqld) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop mysqld variable value | db configuration setprop mysqld variable value | ||
Line 344: | Line 325: | ||
− | === | + | ==== Php ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop php variable value | db configuration setprop php variable value | ||
Line 376: | Line 357: | ||
− | === | + | ==== (pptpd) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop pptpd variable value | db configuration setprop pptpd variable value | ||
Line 408: | Line 389: | ||
− | === | + | ==== Pro FTP (proftpd) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop ftp variable value | db configuration setprop ftp variable value | ||
Line 424: | Line 405: | ||
− | === | + | ==== Samba (smbd) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop smb variable value | db configuration setprop smb variable value | ||
Line 484: | Line 465: | ||
− | === | + | ==== Squid Proxy (squid) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop squid variable value | db configuration setprop squid variable value | ||
Line 508: | Line 489: | ||
− | ===SSH=== | + | ==== SSH (sshd) ==== |
''Usage'' | ''Usage'' | ||
db configuration setprop sshd variable value | db configuration setprop sshd variable value |
Revision as of 10:57, 31 March 2007
Created by: PicsOne (Normando Hall)
Database variables
SME Server comes with the most used parameters set as variables in it's internal configuration databases. These variables are used to store values to be used in the final configuration files. Please, read the SME Server Developer's Guide to understand the template and database process.
These variables are useful to configure your system more easily, as you do not need to modify configuration files directly for most common cases. It also makes it possible to administrate the server through it's server-manager as the database variables are used to set and change configuration parameters, after changing them configuration files only have to be regenerated and affected services nee dto be restarted.
Suppose you need to increase "memory-limit" in php.
You only execute this sentences:
db configuration setprop php MemoryLimit 64 expand-template /etc/php.ini
and then restart httpd service.
The database system is based on a flat file system, but you should never edit them directly. instead you can use the db command. More details on using the database system can be found in the SME Server Developer's Guide.
Overview of database variables
The next is only the standard variables defined that come with SME7. Of course you can update this list with new standard variables in future SME versions.
I organizing this long list with three columns. The first is the variable, the second is the target variable (located in the final configuration file), and the third is the default value.
The variables included here are important for access from console, not through server-manager. For example the variable DomainMaster for samba is not important here, because this is set through server-mananger. On the other hand, the variable RecycleBin is important, because it is not accesible through server-manager.
Some configuration files get final variables not only from one DB key or template. This is the case of /etc/rc.d/init.d/masq configuration file. This file get variables from DB keys squid, your own key masq and others. An invert example is httpd-admin DB key. This key has a variable TCPPort and affect two files (/etc/httpd/admin-conf/httpd.conf and /etc/services).
All variable are refered to /etc/e-smith/templates/etc directory. If you want to extend this howto, you can add variables from /etc/e-smith/templates/home/httpd/html/horde dir (horde variables), or /etc/e-smith/templates/var/qmail (qmail variables) or /etc/e-smith/templates/var/service (service variables).
AppleTalk (atalk)
Usage
db configuration setprop atalk variable value
Variable | Target | Default |
---|---|---|
MaxClients | AFPD_MAX_CLIENTS | 20 |
Clam AntiVirus (clamav)
Usage
db configuration setprop clamav variable value
Variable | Target | Default |
---|---|---|
ArchiveBlockEncrypted | ArchiveBlockEncrypted | no |
ArchiveBlockMax | ArchiveBlockMax | no |
ArchiveMaxCompressionRatio | ArchiveMaxCompressionRatio | 300 |
ArchiveMaxFiles | ArchiveMaxFiles | 1500 |
ArchiveMaxFileSize | ArchiveMaxFileSize | 15M |
ArchiveMaxRecursion | ArchiveMaxRecursion | 8 |
Debug | Debug | no |
DetectBrokenExecutables | DetectBrokenExecutables | no |
IdleTimeout | IdleTimeout | 60 |
LeaveTemporaryFiles | LeaveTemporaryFiles | no |
LogClean | LogClean | yes |
LogTime | LogTime | yes |
LogVerbose | LogVerbose | yes |
MaxConnectionQueueLength | MaxConnectionQueueLength | 30 |
MaxDirectoryRecursion | MaxDirectoryRecursion | 20 |
MaxThreads | MaxThreads | 20 |
ReadTimeout | ReadTimeout | 300 |
ScanArchive | ScanArchive | yes |
ScanHTML | ScanHTML | yes |
ScanMail | ScanMail | yes |
ScanOLE2 | ScanOLE2 | yes |
ScanPE | ScanPE | yes |
SelfCheck | SelfCheck | 1800 |
StreamMaxLength | StreamMaxLength | 25M |
Variable | Target | Default |
---|---|---|
Checks | Checks | 24 |
DatabaseMirror | DatabaseMirror | db.local.clamav.net |
DNSDatabaseInfo | DNSDatabaseInfo | current.cvd.clamav.net |
LogVerbose | LogVerbose | yes |
MaxAttempts | MaxAttempts | 6 |
DHCP daemon (dhcpd)
Usage
db configuration setprop dhcpd variable value
Variable | Target | Default |
---|---|---|
Bootp | bootp | deny |
FlexBackup
Usage
db configuration setprop flexbackup variable value
Variable | Target | Default |
---|---|---|
Blocksize | $blksize | 32 |
TapeBlocksize | $mt_blksize | 0 |
BufferProg | $buffer | buffer |
BufferMegs | $buffer_megs | 20 |
erase_rewind_only | $erase_rewind_only | false |
Type | $type | tar |
Apache server-manager (httpd-admin)
Usage
db configuration setprop httpd-admin variable value
Variable | Target | Default |
---|---|---|
TCPPort | TCPPort | 980 |
SpamAssasin
Usage
db configuration setprop spamassassin variable value
Variable | Target | Default |
---|---|---|
DNSAvailable | dns_available | yes |
OkLanguages | ok_languages | all |
OkLocales | ok_locales | all |
ReportSafe | report_safe | 0 |
Subject | rewrite_header Subject | [SPAM] |
SkipRBLChecks | skip_rbl_checks | 0 |
TrustedNetworks | trusted_networks | 127. |
UseAutoWhitelist | use_auto_whitelist | 0 |
UseBayes | use_bayes | 0 |
Sensitivity | required_hits | medium |
MySQL (mysqld)
Usage
db configuration setprop mysqld variable value
Variable | Target | Default |
---|---|---|
InnoDB | InnoDB | disabled |
LocalNetworkingOnly | LocalNetworkingOnly | no |
Php
Usage
db configuration setprop php variable value
Variable | Target | Default |
---|---|---|
MaxExecutionTime | max_execution_time | 30 |
MemoryLimit | memory_limit | 32M |
PostMaxSize | post_max_size | 20M |
UploadMaxFilesize | upload_max_filesize | 10M |
AllowUrlFopen | allow_url_fopen | Off |
(pptpd)
Usage
db configuration setprop pptpd variable value
Variable | Target | Default |
---|---|---|
debug | debug | no |
Passive | passive | enabled |
Variable | Target | Default |
---|---|---|
debug | debug | no |
Pro FTP (proftpd)
Usage
db configuration setprop ftp variable value
Variable | Target | Default |
---|---|---|
DisableAnonymous | DisableAnonymous | no |
Samba (smbd)
Usage
db configuration setprop smb variable value
Variable | Target | Default |
---|---|---|
RecycleBin | recycle | disabled |
ShadowCopy | shadow_copy | disabled |
DeadTime | deadtime | 10080 |
DisplayCharSet | display charset | ISO8859-1 |
DosCharSet | dos charset | 850 |
LogonDrive | logon drive | Z |
OpLocks | oplocks | enabled |
OsLevel | os level | 65 |
ServerString | server string | SME Server |
SMBPorts | smb ports | 139 |
UnixCharSet | unix charset | UTF8 |
UseClientDriver | use client driver | yes |
Squid Proxy (squid)
Usage
db configuration setprop squid variable value
Variable | Target | Default |
---|---|---|
SafePorts | acl Safe_ports port | 80 |
EnforceSafePorts | EnforceSafePorts | no |
Transparent | Transparent | yes |
SSH (sshd)
Usage
db configuration setprop sshd variable value
Variable | Target | Default |
---|---|---|
TCPPort | Port | 22 |
Protocol | Protocol | 2 |
UsePAM | UsePAM | no |
MaxAuthTries | MaxAuthTries | 2 |
MaxStartups | MaxStartups | 10:30:60 |
PasswordAuthentication | PasswordAuthentication | no |
PermitRootLogin | PermitRootLogin | no |