Changes

From SME Server
Jump to navigationJump to search
m
Line 1: Line 1:  
== Database variables ==
 
== Database variables ==
   −
{{drawBoxNote|content=Please feel free to modify or expand this howto, and make corrections in typos, because I don't speak English very well.}}
+
{{drawBoxNote|content=Please feel free to modify and expand this howto.}}
    
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 [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.
 
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 [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.
Line 7: Line 7:  
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.
 
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.
   −
Suppose you need to increase "memory-limit" in php.
+
For example, suppose you need to increase "memory-limit" in php.
   −
You only need to execute these commands at the server console:
+
You would simply execute these commands at the server console:
    
  db configuration setprop php MemoryLimit 64M
 
  db configuration setprop php MemoryLimit 64M
Line 17: Line 17:  
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 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).
   −
{{drawBoxWarning|content=Database parameters are case sensitive and therefore it is is neccessary to carefully mind their case when typing them at the server shell as no error messages are given when you make a typo.}}
+
{{drawBoxWarning|content=Database parameters are case sensitive so take great care when typing at the server shell because no error messages are given should you make a typo.}}
    
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 [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/devguide.html#SME-INTERNALS SME Server Developer's Guide].
 
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 [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/devguide.html#SME-INTERNALS SME Server Developer's Guide].
35

edits

Navigation menu