This repository has been archived by the owner on Jul 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.php
96 lines (74 loc) · 4.05 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
// This is the main configuration file. This is a PHP file. That means that the
// first line must start with <?php, that all characters after // are ignored by
// the website and that all literal values must 'quoted'.
// DATABASE SETTINGS
// The website needs to store all content somewhere. rCMS uses a MySQL
// (or MariaDB) server for this. If you are not sure about these values, ask
// your hosting provider for the MySQL access settings.
// Location of mysql server, usually 'localhost'
$this->config['database_location'] = 'localhost';
// Name of database, for example 'website'
$this->config['database_name'] = 'website';
// Your database username, for example 'root' or 'username'
$this->config['database_user'] = 'root';
// Your database password, for example 'rgo93ly69h'
$this->config['database_password'] = 'rgo93ly69h';
// A prefix used for all tables in the database. If you want to run mutliple
// instances of rCMS on the same database, you'll need to use a different prefix
// for both of them.
$this->config['database_table_prefix'] = 'rcms_';
// PATHS
// The website needs to know where all the files are stored. The values here
// depend on how you installed rCMS.
//
// Note: the trailing slash is **required** in each and every path.
// __DIR__ simply represents the folder where this config file is stored. It is
// not a literal value, so it must not be quoted. The dot (.) is used to stitch
// two values together, for example __DIR__ . '/public_html/' stitches the
// directory of this config file together with the literal path '/public_html/'.
// The internal path (on the web server) of the public_html directory: this
// is the folder with all publicly accessible files.
//
// If (and only if) the public_html directory is not placed in the same
// directory as this config file, you'll need to open up the environment.php
// file in the public_html directory (not the environment.php file in this
// directory) and follow the instructions there.
$this->config['uri_web'] = __DIR__ . '/public_html/';
// Set this to the URL where the website can be found on the internet. This URl
// must point to the same folder as 'uri_web'.
$this->config['url_web'] = '/';
// The path on the web server to the folder containing the PHP code of the
// extensions. This folder should NOT be accessible from the web.
$this->config['uri_extend'] = __DIR__ . '/extend/';
// The URL to the folder containing the JavaScript/CSS code of the extensions.
// Note that this is a different folder than 'uri_extend'; this folder must
// actually be reachable by the web browser.
$this->config['url_extend'] = $this->config['url_web'] . '/extend/';
// When set to true the index.php part of the links on the site is removed, so
// http://www.example.com/index.php/article/10 turns into
// http://www.example.com/article/10 .
//
// The web server needs additional configuration for this. If you are running
// Apache with .htaccess and mod_rewrite support enabled, it will work
// automatically. If none of the links work on the website, set this to false.
//
// Note that true and false are not literal values, but constants, so don't put
// quotes around them.
$this->config['url_rewrite'] = true;
// For a fancies text editor, we use CKFinder.
//
// New users can leave this setting alone. More advanced users can create a
// better editor by going to ckeditor.com and installing it themselves on their
// web server. You can download any edition you want, but I recommend to
// install the standard edition plus the Enhanced Image, Upload Image and
// Upload File plugins. If you know HTML (or are interested in learning it), you
// should also add the Source Dialog plugin.
//
// After you have downloaded it, extract it to a location accessible from the
// internet, and modify this value to point to that location instead.
$this->config['url_ckeditor'] = '//cdn.ckeditor.com/4.7.1/standard/';
// CKFinder path. Leave blank to disable CKFinder.
$this->config['url_ckfinder'] = '';
// The location of the src and vendor folders is always __DIR__ . '/src/' and
// __DIR__ . '/vendor/', this cannot be changed.