Difference between revisions of "DB Variables Configuration"
Line 190: | Line 190: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop dhcpd variable value | db configuration setprop dhcpd variable value | ||
− | signal-event | + | signal-event remoteaccess-update |
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/dhcpd.conf | |+Affected file: /etc/dhcpd.conf | ||
Line 325: | Line 325: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop httpd-admin variable value | db configuration setprop httpd-admin variable value | ||
+ | signal-event remoteaccess-update | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/httpd/admin-conf/httpd.conf and /etc/services | |+Affected file: /etc/httpd/admin-conf/httpd.conf and /etc/services | ||
Line 341: | Line 342: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop masq variable value | db configuration setprop masq variable value | ||
+ | signal-event remoteaccess-update | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/rc.d/init.d/masq | |+Affected file: /etc/rc.d/init.d/masq | ||
Line 369: | Line 371: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop spamassassin variable value | db configuration setprop spamassassin variable value | ||
+ | signal-event email-update | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/mail/spamassassin/local.cf | |+Affected file: /etc/mail/spamassassin/local.cf | ||
Line 421: | Line 424: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop mysqld variable value | db configuration setprop mysqld variable value | ||
+ | expand-template /etc/my.cnf | ||
+ | /etc/rc.d/init.d/mysqld restart | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/my.cnf | |+Affected file: /etc/my.cnf | ||
Line 441: | Line 446: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop php variable value | db configuration setprop php variable value | ||
+ | signal-event remoteaccess-update | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/php.ini | |+Affected file: /etc/php.ini | ||
Line 473: | Line 479: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop pptpd variable value | db configuration setprop pptpd variable value | ||
+ | signal-event remoteaccess-update | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/ppp/options.pptpd | |+Affected file: /etc/ppp/options.pptpd | ||
Line 505: | Line 512: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop ftp variable value | db configuration setprop ftp variable value | ||
+ | signal-event remoteaccess-update | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/proftpd.conf | |+Affected file: /etc/proftpd.conf | ||
Line 521: | Line 529: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop smb variable value | db configuration setprop smb variable value | ||
+ | signal-event conf-logondrive | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/smb.conf | |+Affected file: /etc/smb.conf | ||
Line 581: | Line 590: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop squid variable value | db configuration setprop squid variable value | ||
+ | signal-event proxy-update | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/squid/squid.conf | |+Affected file: /etc/squid/squid.conf | ||
Line 625: | Line 635: | ||
''Usage'' | ''Usage'' | ||
db configuration setprop sshd variable value | db configuration setprop sshd variable value | ||
+ | signal-event remoteaccess-update | ||
{| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | {| style="color:brown;background-color:#ffffcc;" border="1" cellpadding="5" cellspacing="0" | ||
|+Affected file: /etc/ssh/sshd_config | |+Affected file: /etc/ssh/sshd_config |
Revision as of 22:19, 13 April 2007
Database variables
SME Server comes with the most used parameters set as variables in its 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 administer the server through its server-manager as the database variables are used to set and change configuration parameters. After editing, the configuration files must be regenerated and affected services need to be restarted.
For example, suppose you need to increase "memory-limit" in php.
You would simply execute these commands at the server console:
db configuration setprop php MemoryLimit 64M expand-template /etc/php.ini /etc/init.d/httpd-e-smith restart
The first line changes the value for the memory limit of PHP, the second line regenerates the configuration file and the last line will reload Apache (and subsequently also PHP as this is configured as a module of Apache).
The database system is based on a flat file system, but you should never edit them directly. Instead you should 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 section describes the standard variables defined on SME Server. Please update this list with new standard variables in future SME Server versions.
The tables below have 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.
A lot of the variables can be set using the server-manager but some can not. For example the variable DomainMaster for samba is not important here, because this can be set through server-manager. On the other hand, the variable RecycleBin is important, because it is not accessible through the server-manager.
Configuration files may use database values from a single configuration key, or may use multiple keys. The latter is the case for the /etc/rc.d/init.d/masq configuration file. This file takes it values from multiple database keys such as squid and masq.
It is also possible that multiple configuration files use the same key. An example of this is the httpd-admin key. This key has a variable TCPPort which is used in multiple files (/etc/httpd/admin-conf/httpd.conf and /etc/services).
AppleTalk (atalk)
Usage
db configuration setprop atalk variable value signal-event workgroup-update
Variable | Target | Default |
---|---|---|
MaxClients | AFPD_MAX_CLIENTS | 20 |
Clam AntiVirus (clamav)
Usage
db configuration setprop clamav variable value signal-event clamav-update
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 signal-event remoteaccess-update
Variable | Target | Default |
---|---|---|
Bootp | bootp | deny |
FlexBackup
Usage
db configuration setprop flexbackup variable value signal-event conf-backup
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 |
Horde (webmail)
Usage
db configuration setprop horde variable value
expand-template /home/httpd/html/horde/conf.menu.aps.php
Variable | Target | Default |
---|---|---|
MenuArray | MenuArray | enabled |
expand-template /home/httpd/html/horde/config/conf.php
Variable | Target | Default |
---|---|---|
Administration | Administration | disabled |
expand-template /home/httpd/html/horde/turba/config/sources.php
Variable | Target | Default |
---|---|---|
freebusy | freebusy | disabled |
SharedAddressBooks | SharedAddressBooks | disabled |
Apache server ibay specific (httpd-e-smith)
Usage
db accounts setprop ibayname variable value signal-event ibay-modify ibayname
Variable | Target | Default |
---|---|---|
AllowOverride | AllowOverride | None |
FollowSymLinks | FollowSymLinks | disabled |
Indexes | Indexes | enabled |
PHPRegisterGlobals | register_globals | disabled |
PHPBaseDir | open_basedir | /home/e-smith/files/ibays/ibayname |
Apache server-manager (httpd-admin)
Usage
db configuration setprop httpd-admin variable value signal-event remoteaccess-update
Variable | Target | Default |
---|---|---|
TCPPort | TCPPort | 980 |
IPTables firewall (masq)
Usage
db configuration setprop masq variable value signal-event remoteaccess-update
Variable | Target | Default |
---|---|---|
Logging | Logging | most |
Stealth | Stealth | no |
SpamAssasin
Usage
db configuration setprop spamassassin variable value signal-event email-update
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 expand-template /etc/my.cnf /etc/rc.d/init.d/mysqld restart
Variable | Target | Default |
---|---|---|
InnoDB | InnoDB | disabled |
LocalNetworkingOnly | LocalNetworkingOnly | yes |
Php
Usage
db configuration setprop php variable value signal-event remoteaccess-update
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 |
Virtual Private Network (VPN) (pptpd)
Usage
db configuration setprop pptpd variable value signal-event remoteaccess-update
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 signal-event remoteaccess-update
Variable | Target | Default |
---|---|---|
DisableAnonymous | DisableAnonymous | no |
Samba (smbd)
Usage
db configuration setprop smb variable value signal-event conf-logondrive
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 signal-event proxy-update
Variable | Target | Default |
---|---|---|
SafePorts | acl Safe_ports port | 80 |
EnforceSafePorts | EnforceSafePorts | no |
Variable | Target | Default |
---|---|---|
Transparent | Transparent | yes |
Variable | Target | Default |
---|---|---|
TransparentPort | TransparentPort | 3128 |
SSH (sshd)
Usage
db configuration setprop sshd variable value signal-event remoteaccess-update
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 |