Log in with username/password: lyceum/lyceum

root/branches/1.0/src/config/wp-config-sample.php

Revision 1273, 4.1 kB (checked in by jjb, 2 years ago)

#885, #729

  • Sessions last for 10 years, and sessions are not "garbage collected" for 10 years.
  • The user may specify a custom path for session data to be stored
  • The user may turn on the experimental DB session storage system

There is a jumble of mediocre documentation about the various dimensions in php sessions-- the consensus seems to be that session data might be "garbage collected" before the session data expires. I cannot imagine what "garbage collection" could possibly mean in this case-- in call other cases in computer science it means data that the program is absolutely certain is not being used by some part of the system. Here it seems to be a simplistic notion of time-based expiration.

Theses were helpful:
http://www.captain.at/howto-php-sessions.php
http://www.php.net/manual/en/ref.session.php#68537

Line 
1 <?php
2 // ** MySQL settings ** //
3 define('DB_NAME', 'lyceum');    // The name of the database
4 define('DB_USER', 'root');      // Your MySQL username
5 define('DB_PASSWORD', '');      // ...and password
6 define('DB_HOST', 'localhost'); // hostname or IP of database server (possibly 'localhost')
7
8 // You can have multiple installations in one database if you give each a unique prefix
9 $table_prefix  = '';     // Only numbers, letters, and underscores please!
10
11
12 define('PROTOCOL', 'http://');
13 // The web path to the base of lyceum (where portal.php is sitting), with NO TRAILING SLASH
14 // Something like '' or '/lyceum' or '/src/lyceum'
15 define('WEBROOT', '');
16 // The web path to the base of lyceum (where portal.php is sitting), with NO TRAILING SLASH.
17 // Only change this if you are doing a non-typical installation, otherwise it will happily be the same
18 // as WEBROOT
19 define('SRCROOT', WEBROOT);
20
21 // The IP address or equivalent domain name of the server (MUST have 1 or more periods - 'localhost' will not work!)
22 define('MAINDOMAIN', 'blogs.example.com');
23 define('DEFAULTBLOG', false);
24
25 // Sessions
26 //
27 // It is highly recommended that you set your own session path, so that other php applications
28 // on your server (including possibly those from other users on shared hosting) do not prematurely
29 // clear your session data. You must ensure that this directory exists and is writable
30 // by the webserver. Here are two recommended paths for *nix and Windows:
31 //   define('SESSIONPATH', '/tmp/blogs.example.com');   // *nix
32 //   define('SESSIONPATH', '\\TEMP\blogs.example.com'); // Windows
33 //
34 // Database sessions will be fully supported in Lyceum 1.1 and are currently experimental
35 //   define('DBSESSIONS', true);
36
37 //you probably want to leave these as they are
38 define('DEFAULT_PS', '/%year%/%monthnum%/%day%/%postname%/');
39 define('DEFAULT_TEMPLATE', 'default');
40 define('DEFAULT_STYLESHEET', 'default');
41
42 // Subdomain options
43 // See doc/Installation.txt and doc/Subdomains.txt for more info
44 define('SUBDOMAINS', false);
45
46 //log files
47 define('USELOGS', true); //If you are having problems installing on windows, make this 'false'
48 define('LOGDIR', '/tmp/'); //path MUST have trailing slash. example: /tmp/
49 define('SECURITYLOG', LOGDIR . 'lyceum_security_log');
50 define('TRACELOG', LOGDIR . 'lyceum_trace_log');
51 define('ERRORLOG', LOGDIR . 'lyceum_error_log');
52 define('QUERYLOG', LOGDIR . 'lyceum_query_log');
53 define('TOKENLOG', LOGDIR . 'lyceum_token_log');
54
55 // Change this to localize WordPress.  A corresponding MO file for the
56 // chosen language must be installed to wp-includes/languages.
57 // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
58 // to enable German language support.
59 define ('WPLANG', '');
60
61 //should lyceum NOT create an obfuscated filename for wp-comments-post.php at install time? (if you don't know what this means just leave it set to true)
62 define('SAVEWPCOMMENTS', true);
63
64 ////////////////////////////////////////////////////////////////////////////////
65 // Debug options. If you aren't a developer or a tester, leave them as they are.
66
67 //this should be set to false for production
68 define('LYCEUMDEBUG', false);
69 define('LOGQUERIES', LYCEUMDEBUG);
70
71 // Allow installation to be overwritten from the web? (this is handy for developers who do frequent re-installs)
72 // THIS MUST BE FALSE FOR PRODUCTION
73 define('WEBREINSTALL', false);
74
75 //print trace information?
76 define('TRACE', LYCEUMDEBUG);
77
78 assert_options(ASSERT_CALLBACK, 'assert_handler');
79 assert_options(ASSERT_ACTIVE, LYCEUMDEBUG);//enable assert() evaluation
80 assert_options(ASSERT_WARNING, 0);//issue a PHP warning for each failed assertion
81 assert_options(ASSERT_QUIET_EVAL, 0);//disable error_reporting during assertion expression evaluation
82 assert_options(ASSERT_BAIL, 1);//terminate execution on failed assertions
83
84 ini_set('error_reporting', E_ALL ^ E_NOTICE );
85 ini_set('display_errors', '0');
86 ini_set('log_errors', '1');
87 ini_set('error_log', ERRORLOG);
88
89 //define('SITETITLE', 'Local Lyceum Development Installation');
90 //define('ADMINEMAIL', 'put your email address here');
91
92 /* That's all, stop editing! Happy blogging. */
93
94 require_once(PRIVATEROOT . 'wp-settings.php');
95 ?>
96
Note: See TracBrowser for help on using the browser.
Log in with username/password: lyceum/lyceum