mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-improve-check-allowoverride' into 'develop'
Added support for FreeBSD in checkAllowOverrideEnabled(). See merge request artica/pandorafms!4794
This commit is contained in:
commit
fb6381b789
@ -2532,10 +2532,18 @@ class ConsoleSupervisor
|
||||
global $config;
|
||||
|
||||
$message = 'If AllowOverride is disabled, .htaccess will not works.';
|
||||
$message .= '<pre>Please check /etc/httpd/conf/httpd.conf to resolve this problem.';
|
||||
if (PHP_OS == 'FreeBSD') {
|
||||
$message .= '<pre>Please check /usr/local/etc/apache24/httpd.conf to resolve this problem.';
|
||||
} else {
|
||||
$message .= '<pre>Please check /etc/httpd/conf/httpd.conf to resolve this problem.';
|
||||
}
|
||||
|
||||
// Get content file.
|
||||
$file = file_get_contents('/etc/httpd/conf/httpd.conf');
|
||||
if (PHP_OS == 'FreeBSD') {
|
||||
$file = file_get_contents('/usr/local/etc/apache24/httpd.conf');
|
||||
} else {
|
||||
$file = file_get_contents('/etc/httpd/conf/httpd.conf');
|
||||
}
|
||||
$file_lines = preg_split("#\r?\n#", $file, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$is_none = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user