Configuring OpenWebReader
All those variables can be set in /PATH/TO/OpenWebReader/OWR/cfg.php.
Database
- dbname : name of the database
- dbhost : host to connect to, generally localhost
- dbport : port to connect to, generally 3306
- dbdriver : database driver, actually only mysql is supported
- dbuser : username
- dbpasswd : password
- dbsocket : database unix socket, generally /var/run/mysqld/mysqld.sock or /tmp/mysql.sock
- dsn : DSN sent to PDO, generated automaticly from preceding informations
- dbCacheTime : cache of the database in seconds, it can be a high value because cached results will theorically never change, default to 24h (86400s)
Host
- url : the domain where you installed OpenWebReader
- path : path to OpenWebReader, must ends with a '/'
- httpsecure : set this to true if you want to use OpenWebReader over HTTPS
- surl : full url to OpenWebReader, generated automaticly from preceding informations
Examples :
- if you installed OpenWebReader at the root of your domain (http://yourdomain.tld/), the configuration should be :
- url : 'yourdomain.tld'
- path : '/'
- if you installed OpenWebReader at /~yourhome/owr/ (http://yourdomain.tld/~yourhome/owr/), the configuration should be :
- url : 'yourdomain.tld'
- path : '/~yourhome/owr/'
Cache
- cacheTime : template cache time in seconds, it can be a high value because cached templates will theorically never change, default to 24h (86400s)
Session
- sessionLifeTime : session life time in seconds, default to 24h (86400s)
Server
- defaultTmpDir : default temporary directory, default to result of sys_get_temp_dir() PHP function
- maxUploadFileSize : max upload file size in octets, default to 5mo (5120000 octets)
- phpbin : path to PHP executable, generally /usr/bin/php
- defaultStreamRefreshTime : default time to leave of feeds in minutes (if none found), default to 60min
- defaultMinStreamRefreshTime : default minimum time to leave of feeds in minutes, used for checking ttl found while parsing a stream, default to 10min
- uriStyle : set to "index" for uri like /index.php?do=action, "action" for uri like /action? (you may have a look at RewriteRules in source:/.htaccess for url-rewriting)
- maxLogFileSize : max log file size in octets, default to 5mo (5120000 octets)
- maxThreads : maximum number of PHP threads that OpenWebReader can launch simultaneously, if you have an old server, maybe set this to 1 or 2, else 5 is not bad, default to 5
- nicecmd : the 'nice' command used lower the processus priority, default to nice -n 10 (MUST ends with a space if you use it)
- grepcmd : command used to get the number of process used by OpenWebReader, default to ps aux | grep "%s" | grep -v grep
il8n and l10n
- date_default_timezone : default timezone, default to Europe/Paris;
- default_language : default locale, default to fr_FR;
