|
6 | 6 | if (!is_writable($config['logging']['path'])) { |
7 | 7 | $newerror = array(); |
8 | 8 | $newerror['name'] = "Log path permissions"; |
| 9 | + $newerror['level'] = 3; |
| 10 | + $newerror['extdesc'] = "In order to log data, we need to be able to write in the logs folder. See the link above for more details."; |
9 | 11 | $newerror['description'] = "Logging is enabled but we can't write in the logfile path."; |
10 | 12 | $newerror['configvalue'] = "logging.path"; |
11 | 13 | $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#configuration-1"; |
|
18 | 20 | if (!is_writable(TEMPLATE_DIR . '/cache')) { |
19 | 21 | $newerror = array(); |
20 | 22 | $newerror['name'] = "templates/cache permissions"; |
| 23 | + $newerror['level'] = 3; |
| 24 | + $newerror['extdesc'] = "In order to cache template data, we need to be able to write in the templates/cache folder. See the link above for more details."; |
21 | 25 | $newerror['description'] = "templates/cache folder is not writable for uid {$apache_user['name']}"; |
22 | 26 | $newerror['configvalue'] = "templates/cache folder"; |
23 | | - $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#configuration-1"; |
| 27 | + $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#folder-permissions"; |
24 | 28 | $error[] = $newerror; |
25 | 29 | $newerror = null; |
26 | 30 | } |
27 | 31 | if (!is_writable(TEMPLATE_DIR . '/compile')) { |
28 | 32 | $newerror = array(); |
29 | 33 | $newerror['name'] = "templates/compile permissions"; |
| 34 | + $newerror['level'] = 3; |
| 35 | + $newerror['extdesc'] = "In order to cache compiled template data, we need to be able to write in the templates/compile folder. See the link above for more details."; |
30 | 36 | $newerror['description'] = "templates/compile folder is not writable for uid {$apache_user['name']}"; |
31 | 37 | $newerror['configvalue'] = "templates/compile folder"; |
32 | | - $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#configuration-1"; |
| 38 | + $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#folder-permissions"; |
33 | 39 | $error[] = $newerror; |
34 | 40 | $newerror = null; |
35 | 41 | } |
|
39 | 45 | is_writable(INCLUDE_DIR.'/config/security.inc.php') || is_writable(INCLUDE_DIR.'/config/security.inc.dist.php')) { |
40 | 46 | $newerror = array(); |
41 | 47 | $newerror['name'] = "Config permissions"; |
42 | | - $newerror['description'] = "Your config files <b>SHOULD NOT be writable to this user</b>!"; |
| 48 | + $newerror['level'] = 2; |
| 49 | + $newerror['extdesc'] = "For security purposes, the user your webserver runs as should not be able to write to the config files, only read from them. To fix this, check the ownership and permissions of the include/config files."; |
| 50 | + $newerror['description'] = "Your config files <b>SHOULD NOT be writable by this user</b>!"; |
43 | 51 | $newerror['configvalue'] = "global.inc.php and security.inc.php"; |
44 | 52 | $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#configuration-1"; |
45 | 53 | $error[] = $newerror; |
|
0 commit comments