diff --git a/application/Espo/Core/ExternalAccount/OAuth2/Client.php b/application/Espo/Core/ExternalAccount/OAuth2/Client.php
index 59af7b5884..63c199f903 100644
--- a/application/Espo/Core/ExternalAccount/OAuth2/Client.php
+++ b/application/Espo/Core/ExternalAccount/OAuth2/Client.php
@@ -29,6 +29,8 @@
namespace Espo\Core\ExternalAccount\OAuth2;
+use Exception;
+
class Client
{
const AUTH_TYPE_URI = 0;
@@ -79,7 +81,7 @@ class Client
public function __construct(array $params = [])
{
if (!extension_loaded('curl')) {
- throw new \Exception('CURL extension not found.');
+ throw new Exception('CURL extension not found.');
}
}
@@ -139,16 +141,21 @@ class Client
switch ($this->tokenType) {
case self::TOKEN_TYPE_URI:
$params[$this->accessTokenParamName] = $this->accessToken;
+
break;
+
case self::TOKEN_TYPE_BEARER:
$httpHeaders['Authorization'] = 'Bearer ' . $this->accessToken;
+
break;
+
case self::TOKEN_TYPE_OAUTH:
$httpHeaders['Authorization'] = 'OAuth ' . $this->accessToken;
- break;
- default:
- throw new \Exception('Unknown access token type.');
+ break;
+
+ default:
+ throw new Exception('Unknown access token type.');
}
}
@@ -157,15 +164,16 @@ class Client
private function execute($url, $params, $httpMethod, array $httpHeaders = [])
{
- $curlOptions = array(
+ $curlOptions = [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => true,
- CURLOPT_CUSTOMREQUEST => $httpMethod
- );
+ CURLOPT_CUSTOMREQUEST => $httpMethod,
+ ];
switch ($httpMethod) {
case self::HTTP_METHOD_POST:
$curlOptions[CURLOPT_POST] = true;
+
case self::HTTP_METHOD_PUT:
case self::HTTP_METHOD_PATCH:
if (is_array($params)) {
@@ -173,36 +181,49 @@ class Client
} else {
$postFields = $params;
}
+
$curlOptions[CURLOPT_POSTFIELDS] = $postFields;
+
break;
+
case self::HTTP_METHOD_HEAD:
$curlOptions[CURLOPT_NOBODY] = true;
+
case self::HTTP_METHOD_DELETE:
case self::HTTP_METHOD_GET:
+
if (strpos($url, '?') === false) {
$url .= '?';
}
+
if (is_array($params)) {
$url .= http_build_query($params, null, '&');
}
+
break;
+
default:
break;
}
$curlOptions[CURLOPT_URL] = $url;
- $curlOptHttpHeader = array();
+ $curlOptHttpHeader = [];
+
foreach ($httpHeaders as $key => $value) {
if (is_int($key) && !is_string($key)) {
$curlOptHttpHeader[] = $value;
+
continue;
}
+
$curlOptHttpHeader[] = "{$key}: {$value}";
}
+
$curlOptions[CURLOPT_HTTPHEADER] = $curlOptHttpHeader;
$ch = curl_init();
+
curl_setopt_array($ch, $curlOptions);
curl_setopt($ch, CURLOPT_HEADER, 1);
@@ -230,18 +251,20 @@ class Client
$resultArray = null;
if ($curlError = curl_error($ch)) {
- throw new \Exception($curlError);
- } else {
+ throw new Exception($curlError);
+ }
+ else {
$resultArray = json_decode($responceBody, true);
}
+
curl_close($ch);
- return array(
+ return [
'result' => (null !== $resultArray) ? $resultArray: $responceBody,
'code' => intval($httpCode),
'contentType' => $contentType,
'header' => $responceHeader,
- );
+ ];
}
public function getAccessToken($url, $grantType, array $params)
@@ -249,18 +272,24 @@ class Client
$params['grant_type'] = $grantType;
$httpHeaders = [];
- switch ($this->tokenType) {
+
+ switch ($this->authType) {
case self::AUTH_TYPE_URI:
case self::AUTH_TYPE_FORM:
$params['client_id'] = $this->clientId;
$params['client_secret'] = $this->clientSecret;
+
break;
+
case self::AUTH_TYPE_AUTHORIZATION_BASIC:
$params['client_id'] = $this->clientId;
+
$httpHeaders['Authorization'] = 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret);
+
break;
+
default:
- throw new \Exception();
+ throw new Exception("Bad auth type.");
}
return $this->execute($url, $params, self::HTTP_METHOD_POST, $httpHeaders);
diff --git a/install/core/Language.php b/install/core/Language.php
index c52a899303..f8430e8553 100644
--- a/install/core/Language.php
+++ b/install/core/Language.php
@@ -34,6 +34,12 @@ class Language{
private $data = array();
+ protected $defaultLabels = [
+ 'nginx' => 'linux',
+ 'apache' => 'linux',
+ 'microsoft-iis' => 'windows',
+ ];
+
public function __construct()
{
require_once 'SystemHelper.php';
@@ -118,19 +124,35 @@ class Language{
$serverOs = $this->getSystemHelper()->getOs();
$rewriteRules = $this->getSystemHelper()->getRewriteRules();
- if (isset($i18n['options']['modRewriteInstruction'][$serverType][$serverOs])) {
- $modRewriteInstruction = $i18n['options']['modRewriteInstruction'][$serverType][$serverOs];
- preg_match_all('/\{(.*?)\}/', $modRewriteInstruction, $match);
- if (isset($match[1])) {
- foreach ($match[1] as $varName) {
- if (isset($rewriteRules[$varName])) {
- $modRewriteInstruction = str_replace('{'.$varName.'}', $rewriteRules[$varName], $modRewriteInstruction);
- }
- }
+ $label = $i18n['options']['modRewriteInstruction'][$serverType][$serverOs] ?? null;
+
+ if (!isset($label) && isset($this->defaultLabels[$serverType])) {
+ $defaultLabel = $this->defaultLabels[$serverType];
+
+ if (!isset($i18n['options']['modRewriteInstruction'][$serverType][$defaultLabel])) {
+ $defaultLangFile = 'install/core/i18n/' . $this->defaultLanguage . '/install.json';
+ $defaultData = $this->getLangData($defaultLangFile);
+
+ $i18n['options']['modRewriteInstruction'][$serverType][$defaultLabel] = $defaultData['options']['modRewriteInstruction'][$serverType][$defaultLabel];
}
- $i18n['options']['modRewriteInstruction'][$serverType][$serverOs] = $modRewriteInstruction;
+ $label = $i18n['options']['modRewriteInstruction'][$serverType][$defaultLabel];
}
+
+ if (!$label) {
+ return;
+ }
+
+ preg_match_all('/\{(.*?)\}/', $label, $match);
+ if (isset($match[1])) {
+ foreach ($match[1] as $varName) {
+ if (isset($rewriteRules[$varName])) {
+ $label = str_replace('{'.$varName.'}', $rewriteRules[$varName], $label);
+ }
+ }
+ }
+
+ $i18n['options']['modRewriteInstruction'][$serverType][$serverOs] = $label;
}
}
diff --git a/install/core/SystemHelper.php b/install/core/SystemHelper.php
index 390771c1b3..b80dcfe9d6 100644
--- a/install/core/SystemHelper.php
+++ b/install/core/SystemHelper.php
@@ -35,7 +35,7 @@ class SystemHelper extends \Espo\Core\Utils\System
protected $apiPath;
- protected $modRewriteUrl = '/Metadata';
+ protected $modRewriteUrl = '/';
protected $writableDir = 'data';
diff --git a/install/core/actions/step2.php b/install/core/actions/step2.php
index 509770cae8..6fcbb04e4a 100644
--- a/install/core/actions/step2.php
+++ b/install/core/actions/step2.php
@@ -27,6 +27,20 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
+$clearedCookieList = [
+ 'auth-token-secret',
+ 'auth-username',
+ 'auth-token',
+];
+
+foreach ($clearedCookieList as $cookieName) {
+ if (!isset($_COOKIE[$cookieName])) {
+ continue;
+ }
+
+ setcookie($cookieName, null, -1, '/');
+}
+
$config = $installer->getConfig();
$fields = array(
diff --git a/install/core/config.php b/install/core/config.php
index 8fb4ead363..de190922d0 100644
--- a/install/core/config.php
+++ b/install/core/config.php
@@ -30,14 +30,19 @@
return [
'apiPath' => '/api/v1',
'rewriteRules' => [
- 'APACHE1' => 'a2enmod rewrite
-service apache2 restart',
+ 'APACHE1' => 'sudo a2enmod rewrite
+sudo service apache2 restart',
'APACHE2' => '<Directory /PATH_TO_ESPO/>
AllowOverride All
</Directory>',
- 'APACHE3' => 'service apache2 restart',
+ 'APACHE2_PATH1' => '/etc/apache2/sites-available/ESPO_VIRTUAL_HOST.conf',
+ 'APACHE2_PATH2' => '/etc/apache2/apache2.conf',
+ 'APACHE2_PATH3' => '/etc/httpd/conf/httpd.conf',
+ 'APACHE3' => 'sudo service apache2 restart',
'APACHE4' => '# RewriteBase /',
'APACHE5' => 'RewriteBase {ESPO_PATH}{API_PATH}',
+ 'WINDOWS_APACHE1' => 'LoadModule rewrite_module modules/mod_rewrite.so',
+ 'NGINX_PATH' => '/etc/nginx/sites-available/YOUR_SITE',
'NGINX' => 'server {
# ...
@@ -88,5 +93,7 @@ service apache2 restart',
deny all;
}
}',
+ 'APACHE_LINK' => 'https://www.espocrm.com/documentation/administration/apache-server-configuration/',
+ 'NGINX_LINK' => 'https://www.espocrm.com/documentation/administration/nginx-server-configuration/',
],
-];
\ No newline at end of file
+];
diff --git a/install/core/i18n/bg_BG/install.json b/install/core/i18n/bg_BG/install.json
index c964813d75..b78a546fbb 100644
--- a/install/core/i18n/bg_BG/install.json
+++ b/install/core/i18n/bg_BG/install.json
@@ -108,8 +108,8 @@
"mysqlSettingError": "EspoCRM изисква настройка MySQL \"{NAME}\", за да се настрои да {VALUE}",
"requiredMariadbVersion": "Вашият MariaDB версия не се поддържа от EspoCRM, моля обновете до MariaDB {} minVersion най-малко",
"Ajax failed": "Възникна неочаквана грешка",
- "Bad init Permission": "Разрешението е отказано за \"{*}\" директория. Моля, избран 775 за \"{*}\" или просто изпълни тази команда в терминала <предварително> <б> {C} B> предварително> операция не е позволено? Предложения това: {ХСС}",
- "permissionInstruction": "
Run тази команда в терминал: <предварително> <б> \"{C}\" B> предварително>",
+ "Bad init Permission": "Разрешението е отказано за \"{*}\" директория. Моля, избран 775 за \"{*}\" или просто изпълни тази команда в терминала
{C} операция не е позволено? Предложения това: {ХСС}",
+ "permissionInstruction": " \"{C}\" ",
"operationNotPermitted": "Операция не е позволено? Предложения това: 1. Намерете httpd.conf файл (обикновено вие ще го намерите в папка, наречена конф, довереник или нещо в този дух)", + "linux": "
2. Вътре в httpd.conf файла разкоментирайте модули линия LoadModule rewrite_module / mod_rewrite.so (премахване на лирата \"#\" знак от в предната част на линията)
3. Също така да намерите линията ClearModuleList се некоментирана след това намерете и се уверете, че mod_rewrite.c линията AddModule не е коментиран.
{APACHE1} {APACHE2_PATH1}, {APACHE2_PATH2}, {APACHE2_PATH3}): {APACHE2} След това стартирате тази команда в терминал: {APACHE3} {APACHE4} Да {APACHE5} {NGINX_PATH} вътре в раздел \"сървър\": {NGINX} 1. Find httpd.conf filen (den findes normalt i en mappe kaldet conf, config eller noget i den retning)", - "linux": "\n
\n2. I httpd.conf file skal linjen LoadModule rewrite_module modules/mod_rewrite.so aktiveres (fjern #-tegnet foran linjen)
\n3. Tjek at linjen ClearModuleList er uden #-tegn og linjen AddModule mod_rewrite.c må heller ikke have #-tegnet i begyndelsen.\n
{APACHE1}{APACHE2}\nKør derefter denne kommando i et terminalvindue:{APACHE3}{APACHE4}Med{APACHE5}1. Find httpd.conf filen (den findes normalt i en mappe kaldet conf, config eller noget i den retning)", + "linux": "
\n2. I httpd.conf file skal linjen{WINDOWS_APACHE1}aktiveres (fjern #-tegnet foran linjen)
\n3. Tjek at linjen ClearModuleList er uden #-tegn og linjen AddModule mod_rewrite.c må heller ikke have #-tegnet i begyndelsen.\n
{APACHE1}{APACHE2_PATH1}, {APACHE2_PATH2}, {APACHE2_PATH3}):{APACHE2}\nKør derefter denne kommando i et terminalvindue:{APACHE3}{APACHE4}Med{APACHE5}\n{NGINX}\n \n{NGINX}\n {NGINX_PATH} indenfor \"server\" sektionen:{NGINX} 1. Finden Sie die httpd.conf Datei (normalerweise in einem Verzeichnis conf, config oder ähnlich)\n", - "linux": "
2. Innerhalb der httpd.conf Datei aktivieren Sie die Zeile LoadModule rewrite_module modules/mod_rewrite.so (entfernen Sie das # Zeichen vom Anfang der Zeile)
3. Stellen Sie sicher, dass die Zeile ClearModuleList nicht auskommentiert ist, genauso wie die Zeile AddModule mod_rewrite.c.
{APACHE1}{APACHE2}\n Anschließend führen Sie dieses Kommando in einem Terminalfenster aus: {APACHE3}{APACHE4}zu{APACHE5}1. Finden Sie die httpd.conf Datei (normalerweise in einem Verzeichnis conf, config oder ähnlich)\n", + "linux": "
2. Innerhalb der httpd.conf Datei aktivieren Sie die Zeile{WINDOWS_APACHE1}(entfernen Sie das # Zeichen vom Anfang der Zeile)
3. Stellen Sie sicher, dass die Zeile ClearModuleList nicht auskommentiert ist, genauso wie die Zeile AddModule mod_rewrite.c.
{APACHE1}{APACHE2_PATH1}, {APACHE2_PATH2}, {APACHE2_PATH3}):{APACHE2}\n Anschließend führen Sie dieses Kommando in einem Terminalfenster aus: {APACHE3}{APACHE4}zu{APACHE5}\n{NGINX}\n \n{NGINX}\n {NGINX_PATH} (innerhalb des \"server\" Blocks) hinzu:{NGINX} {APACHE1}{APACHE2}\n Afterwards run this command in a Terminal:{APACHE3}{APACHE4}To{APACHE5}1. Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)" + "linux": "
\n2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)
\n3. Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.\n
{APACHE1}{APACHE2_PATH1} or {APACHE2_PATH2} (or {APACHE2_PATH3}):{APACHE2}\n Afterwards run this command in a terminal:{APACHE3}{API_PATH}.htaccess and replace the following line:{APACHE4}To{APACHE5}{WINDOWS_APACHE1} (remove the pound '#' sign from in front of the line).ClearModuleList is uncommented and make sure that the line AddModule mod_rewrite.c is not commented out.\n"
},
"nginx": {
- "linux": "\n{NGINX}\n \n{NGINX}\n {NGINX_PATH} inside \"server\" section:{NGINX} 1. Encontrar el archivo httpd.conf (generalmente lo encontrará en una carpeta llamada conf, config o o algo similar a esas líneas)", - "linux": "
\n2. Dentro del archivo httpd.conf descomentamos la línea LoadModule rewrite_module modules/mod_rewrite.so (eliminar el '#' que está al comienzo de la línea)
\n3. También encuentre que la línea ClearModuleList no esté comentada después busque y asegurese que la línea AddModule mod_rewrite.c no está comentada tampoco.\n
{APACHE1}{APACHE2}\nLuego ejecuta este comando en un Terminal: {APACHE3} {APACHE4} a {APACHE5} 1. Encontrar el archivo httpd.conf (generalmente lo encontrará en una carpeta llamada conf, config o o algo similar a esas líneas)", + "linux": "
\n2. Dentro del archivo httpd.conf descomentamos la línea{WINDOWS_APACHE1}(eliminar el '#' que está al comienzo de la línea)
\n3. También encuentre que la línea ClearModuleList no esté comentada después busque y asegurese que la línea AddModule mod_rewrite.c no está comentada tampoco.\n
{APACHE1}{APACHE2_PATH1} o {APACHE2_PATH2} (o {APACHE2_PATH3}): {APACHE2}\nLuego ejecuta este comando en un Terminal: {APACHE3} {APACHE4} a {APACHE5} \n{NGINX}\n \n{NGINX}\n {NGINX_PATH} (inside \"server\" block):\n\n{NGINX}\n 1. Encontrar el archivo httpd.conf (generalmente lo encontrará en una carpeta llamada conf, config o o algo similar a esas dis líneas)", - "linux": "
\n2. Dentro del archivo httpd.conf descomentamos la línea LoadModule rewrite_module modules/mod_rewrite.so (eliminar el '#' que está al comienzo de la línea)
\n3. También encuentre que la línea ClearModuleList no esté comentada después busque y asegurese que la línea AddModule mod_rewrite.c no está comentada tampoco.\n
{APACHE1}{APACHE2}\n Después de correr esto en una sesión de Terminal:{APACHE3}{APACHE4} por {APACHE5}1. Encontrar el archivo httpd.conf (generalmente lo encontrará en una carpeta llamada conf, config o o algo similar a esas dis líneas)", + "linux": "
\n2. Dentro del archivo httpd.conf descomentamos la línea{WINDOWS_APACHE1}(eliminar el '#' que está al comienzo de la línea)
\n3. También encuentre que la línea ClearModuleList no esté comentada después busque y asegurese que la línea AddModule mod_rewrite.c no está comentada tampoco.\n
{APACHE1}{APACHE2_PATH1}, {APACHE2_PATH2}, {APACHE2_PATH3}):{APACHE2}\n Después de correr esto en una sesión de Terminal:{APACHE3}{APACHE4} por {APACHE5}\n{NGINX}\n \n{NGINX}\n {NGINX_PATH} en la sección \"server\": \n\n{NGINX}\n {APACHE1} {APACHE2} \n بعد از اجرای این دستور در ترمینال: {APACHE3} {APACHE4} برای {APACHE5} {APACHE1} {APACHE2_PATH1}, {APACHE2_PATH2}, {APACHE2_PATH3}): {APACHE2}\n بعد از اجرای این دستور در ترمینال: {APACHE3} {APACHE4} برای {APACHE5} \\n{NGINX}\\n \\n{NGINX}\\n {NGINX_PATH} در داخل «سرور»:\n\n{NGINX}\n 1. Pronađite httpd.conf datoteku (uobičajeno je u direktoriju conf, config ili nešto slično)", - "linux": "br>
\n2. Unutar httpd.conf datoteke maknite komentar sa reda LoadModule rewrite_module modules/mod_rewrite.so (maknite '#' znak na početku reda)
\n3. Provjerite i da li su ClearModuleList AddModule mod_rewrite.c također bez znaka #.\n
{APACHE1}{APACHE2}\n Nakon toga pokrenite ovaj kod na serveru:{APACHE3}{APACHE4}NA{APACHE5}1. Pronađite httpd.conf datoteku (uobičajeno je u direktoriju conf, config ili nešto slično)", + "linux": "
\n2. Unutar httpd.conf datoteke maknite komentar sa reda{WINDOWS_APACHE1}(maknite '#' znak na početku reda)
\n3. Provjerite i da li su ClearModuleList AddModule mod_rewrite.c također bez znaka #.\n
{APACHE1}{APACHE2_PATH1}, {APACHE2_PATH2}, {APACHE2_PATH3}):{APACHE2}\n Nakon toga pokrenite ovaj kod na serveru:{APACHE3}{APACHE4}NA{APACHE5}\n{NGINX}\n \n{NGINX}\n {NGINX_PATH} unutar \"server\" sekcije:\n\n{NGINX}\n 1. Keresse meg a httpd.conf fájlt (általában megtalálja azt egy mappában, amit conf, config vagy valami hasonló sorok mentén talál)", - "linux": "Matton 1. Engedélyezze a \"mod_rewrite\" beállítást. Ehhez futtassa ezeket a parancsokat egy terminálban:
\n2. A httpd.conf fájl belsejében olvassa el a LoadModule rewrite_module modulok / mod_rewrite.so sorát (távolítsa el a font \"#\" jelet a sor elejéről)
\n3. Keresse meg a ClearModuleList vonalat sem, majd keresse meg és győződjön meg róla, hogy a mod_rewrite.c AddModule vonalat nem kommentálta.\n
{APACHE1} {APACHE2}\nEzután futtassa ezt a parancsot egy terminálban: {APACHE3} {APACHE4} A {APACHE5} az Apache kiszolgáló konfigurációja az EspoCRM-hez . {APACHE1} {APACHE2_PATH1}, {APACHE2_PATH2}, {APACHE2_PATH3}): {APACHE2}\nEzután futtassa ezt a parancsot egy terminálban: {APACHE3} {APACHE4} A {APACHE5} az Apache kiszolgáló konfigurációja az EspoCRM-hez . \n{Nginx}\n \n{Nginx}\n {NGINX_PATH}:\n{NGINX}\n 1. Cari file httpd.conf (biasanya Anda akan menemukannya dalam folder bernama conf, konfigurasi atau sesuatu sepanjang garis) Situs\n2. Di dalam file httpd.conf tanda komentar pada LoadModule baris modul rewrite_module / mod_rewrite.so (menghapus pound '#' tanda dari di garis depan)
\n3. Juga menemukan garis ClearModuleList adalah tanda komentar kemudian cari dan pastikan bahwa garis AddModule mod_rewrite.c tidak komentar.\n Pre>", - "linux": "
1. Aktifkan \"mod_rewrite\". Untuk melakukannya menjalankan perintah-perintah dalam Terminal:{APACHE1}2. Mengaktifkan dukungan .htaccess. Tambahkan/edit pengaturan konfigurasi Server (/etc/apache/apache2.conf, /etc/httpd/conf/httpd.conf):{APACHE2}\n Setelah menjalankan perintah ini di Terminal:{APACHE3}3. Cobalah untuk menambahkan jalur RewriteBase, membuka file {API_PATH} .htaccess dan mengganti baris berikut:{APACHE4}Untuk{APACHE5}
For more information please visit the guideline Apache server configuration for EspoCRM.
" - } + "linux": "
1. Aktifkan \"mod_rewrite\". Untuk melakukannya menjalankan perintah-perintah dalam Terminal:{APACHE1}2. Mengaktifkan dukungan .htaccess. Tambahkan/edit pengaturan konfigurasi Server ({APACHE2_PATH1},{APACHE2_PATH2},{APACHE2_PATH3}):{APACHE2}\n Setelah menjalankan perintah ini di Terminal:{APACHE3}3. Cobalah untuk menambahkan jalur RewriteBase, membuka file {API_PATH} .htaccess dan mengganti baris berikut:{APACHE4}Untuk{APACHE5}
For more information please visit the guideline Apache server configuration for EspoCRM.
" + } }, "modRewriteTitle": { - "apache": "API Kesalahan: EspoCRM API tersedia
Kemungkinan masalah: cacat \"mod_rewrite\" di server Apache, dukungan htaccess cacat atau masalah RewriteBase Situs Apakah langkah hanya diperlukan.. Setelah setiap cek langkah jika masalah tersebut dipecahkan.", - "nginx": "API Kesalahan: EspoCRM API tersedia Situs Tambahkan kode ini ke Anda Nginx host Config (dalam \"server\" block):", - "microsoft-iis": "API Kesalahan:. EspoCRM API tersedia
masalah yang mungkin terjadi: cacat \"URL Rewrite\". Silakan periksa dan mengaktifkan \"URL Rewrite\" Modul di IIS server", - "default": "API Kesalahan:. EspoCRM API tersedia
masalah Kemungkinan: cacat Modul Rewrite. Silakan periksa dan memungkinkan Modul Rewrite di server Anda (misalnya mod_rewrite di Apache) dan dukungan .htaccess." + "apache": "API Kesalahan: EspoCRM API tersedia
Kemungkinan masalah: cacat \"mod_rewrite\" di server Apache, dukungan htaccess cacat atau masalah RewriteBase Situs Apakah langkah hanya diperlukan.. Setelah setiap cek langkah jika masalah tersebut dipecahkan.", + "nginx": "API Kesalahan: EspoCRM API tersedia
", + "microsoft-iis": "API Kesalahan:. EspoCRM API tersedia
masalah yang mungkin terjadi: cacat \"URL Rewrite\". Silakan periksa dan mengaktifkan \"URL Rewrite\" Modul di IIS server", + "default": "API Kesalahan: EspoCRM API tersedia
masalah Kemungkinan: cacat Modul Rewrite. Silakan periksa dan memungkinkan Modul Rewrite di server Anda (misalnya mod_rewrite di Apache) dan dukungan .htaccess." } }, "systemRequirements": { @@ -114,4 +114,4 @@ "dbname": "Nama database", "user": "Nama pengguna" } -} \ No newline at end of file +} diff --git a/install/core/i18n/it_IT/install.json b/install/core/i18n/it_IT/install.json index de39c1ab7c..18bdb83798 100644 --- a/install/core/i18n/it_IT/install.json +++ b/install/core/i18n/it_IT/install.json @@ -110,18 +110,17 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "
1.Trovare il file httpd.conf (di solito si trova in una cartella denominata conf , configurazione o qualcosa del genere)" + "windows": "
\n2. All'interno del file httpd.conf decommentare la riga LoadModule rewrite_module modules/mod_rewrite.so (rimuovere il simbolo '#' all'inizio della riga)
\n3. Controllare che la linea ClearModuleList è commentata, quindi trovare e fare in modo che la linea AddModule mod_rewrite.c non sia commentata.\n
1.Trovare il file httpd.conf (di solito si trova in una cartella denominata conf , configurazione o qualcosa del genere)" }, "nginx": { - "linux": "
\n2. All'interno del file httpd.conf decommentare la riga{WINDOWS_APACHE1}(rimuovere il simbolo '#' all'inizio della riga)
\n3. Controllare che la linea ClearModuleList è commentata, quindi trovare e fare in modo che la linea AddModule mod_rewrite.c non sia commentata.\n
\n\n{NGINX}\n
Per maggiori informazioni, visitare la Guida in Linea Nginx server configuration for EspoCRM.
", - "windows": "
\n\n{NGINX}\n
Per maggiori informazioni, visitare la Guida in Linea Nginx server configuration for EspoCRM.
" + "linux": "
Aggiungere questo codice al file di configurazione del server blocco Nginx{NGINX_PATH}nella sezione \"server\":\n\n{NGINX}\n
Per maggiori informazioni, visitare la Guida in Linea Nginx server configuration for EspoCRM.
" } }, "modRewriteTitle": { - "apache": "API Error: EspoCRM API non è disponibile.
Possibili problemi : disattivato \"mod_rewrite\" nel server Apache, disabilitato il supporto a .htaccess oppure un problema di RewriteBase.
Procedi un passo all volta. Dopo ogni passo controlla se il problema è risolto .", - "nginx": "API Error: EspoCRM API non è disponibile.
Aggiungere questo codice al file di configurazione del server blocco Nginx (/etc/nginx/sites-available/YOUR_SITE) nella sezione \"server\" :", - "microsoft-iis": "API Error: EspoCRM API non è disponibile.
Possibili problemi : disattivato \"URL Rewrite\". Si prega di controllare e attivare il Modulo nel IIS server \"URL Rewrite\" ", - "default": "API Error: EspoCRM API non è disponibile.
Possibili problemi : disattivato il Modulo Rewrite. Si prega di controllare e attivare il Rewrite Module sul vostro server (e.g. mod_rewrite in Apache) e il supporto .htaccess." + "apache": "API Error: EspoCRM API non è disponibile.
Procedi un passo all volta. Dopo ogni passo controlla se il problema è risolto .", + "nginx": "API Error: EspoCRM API non è disponibile.
", + "microsoft-iis": "API Error: EspoCRM API non è disponibile.
Possibili problemi : disattivato \"URL Rewrite\". Si prega di controllare e attivare il Modulo nel IIS server \"URL Rewrite\" ", + "default": "API Error: EspoCRM API non è disponibile.
Possibili problemi : disattivato il Modulo Rewrite. Si prega di controllare e attivare il Rewrite Module sul vostro server (e.g. mod_rewrite in Apache) e il supporto .htaccess." } }, "systemRequirements": { @@ -133,4 +132,4 @@ "writable": "Scrivibile", "readable": "Leggibile" } -} \ No newline at end of file +} diff --git a/install/core/i18n/lt_LT/install.json b/install/core/i18n/lt_LT/install.json index 0d257f705c..6e7aaa3796 100644 --- a/install/core/i18n/lt_LT/install.json +++ b/install/core/i18n/lt_LT/install.json @@ -107,18 +107,17 @@ "modRewriteInstruction": { "apache": { "windows": "
1. Suraskite httpd.conf failą (paprastai jį rasite aplanke, pavadintame conf, config arba kažką panašaus į šias eilutes)", - "linux": "
\n2. Failo httpd.conf viduje atkomentuokite eilutę LoadModule rewrite_module modules / mod_rewrite.so (priešais liniją nuimkite ženkliuką \"#\")
\n3. Taip pat raskite eilutę ClearModuleList yra nekomentuotų, tada suraskite ir įsitikinkite, kad eilutė AddModule mod_rewrite.c nėra komentuojama.\n
1. Įgalinti \\\"mod_rewrite\\\". Norėdami tai padaryti, paleiskite tas komandas terminale:{APACHE1}
2. Įgalinti .htaccess palaikymą. Pridėti / redaguoti serverio konfigūracijos nustatymus (/etc/apache/apache2.conf, /etc/httpd/conf/httpd.conf):{APACHE2}\\nVėliau paleiskite šią komandą į terminalą:{APACHE3}
3. Pabandykite įtraukti RewriteBase kelią, atidarykite failą {API_PATH} .htaccess ir pakeiskite šią eilutę:{APACHE4}to{APACHE5}
Daugiau informacijos rasite apsilankę EspoCRM konfigūracija \\\"Apache\\\" .
" + "linux": "
1. Įgalinti \"mod_rewrite\". Norėdami tai padaryti, paleiskite tas komandas terminale:{APACHE1}
2. Įgalinti .htaccess palaikymą. Pridėti / redaguoti serverio konfigūracijos nustatymus ({APACHE2_PATH1},{APACHE2_PATH2},{APACHE2_PATH3}):{APACHE2}\nVėliau paleiskite šią komandą į terminalą:{APACHE3}
3. Pabandykite įtraukti RewriteBase kelią, atidarykite failą {API_PATH} .htaccess ir pakeiskite šią eilutę:{APACHE4}to{APACHE5}
Daugiau informacijos rasite apsilankę EspoCRM konfigūracija \"Apache\" .
" }, "nginx": { - "linux": "
\\n\\n{NGINX}\\n
Daugiau informacijos rasite Nginx serverio konfigūracijoje EspoCRM .
", - "windows": "
\\n\\n{NGINX}\\n
Daugiau informacijos rasite Nginx serverio konfigūracijoje EspoCRM .
" + "linux": "
Pridėti šį kodą į jūsų Nginx serverio blokų konfigūracijos failą{NGINX_PATH}\"serverio\" skyriuje:\n{NGINX}\n
Daugiau informacijos rasite Nginx serverio konfigūracijoje EspoCRM .
" } }, "modRewriteTitle": { - "apache": "API Klaida: EspoCRM API nepasiekiamas.
Galimos problemos: išjungta \"mod_rewrite\" \"Apache\" serveryje, išjungtas .htaccess palaikymas arba \"RewriteBase\" problema.
Atlikite tik būtinus veiksmus. Po kiekvieno žingsnio patikrinkite, ar problema išspręsta.", - "nginx": "API Klaida: EspoCRM API nepasiekiamas.
Pridėti šį kodą į jūsų Nginx serverio blokų konfigūracijos failą (/ etc / nginx / sites-available / YOUR_SITE) \"serverio\" skyriuje:", - "microsoft-iis": "API Klaida: EspoCRM API nepasiekiamas.
Galima problema: išjungta \"URL Rewrite\". Patikrinkite ir įjunkite \"URL Rewrite\" modulį IIS serveryje", - "default": "API Klaida: EspoCRM API nepasiekiamas.
Galima problema: neįgalintas Rewrite Module. Patikrinkite ir įjunkite \"Rewrite Module\" savo serveryje (pvz., Mod_rewrite \"Apache\") ir .htaccess palaikymą." + "apache": "API Klaida: EspoCRM API nepasiekiamas.
Atlikite tik būtinus veiksmus. Po kiekvieno žingsnio patikrinkite, ar problema išspręsta.", + "nginx": "API Klaida: EspoCRM API nepasiekiamas.
", + "microsoft-iis": "API Klaida: EspoCRM API nepasiekiamas.
Galima problema: išjungta \"URL Rewrite\". Patikrinkite ir įjunkite \"URL Rewrite\" modulį IIS serveryje", + "default": "API Klaida: EspoCRM API nepasiekiamas.
Galima problema: neįgalintas Rewrite Module. Patikrinkite ir įjunkite \"Rewrite Module\" savo serveryje (pvz., Mod_rewrite \"Apache\") ir .htaccess palaikymą." } }, "systemRequirements": { @@ -130,4 +129,4 @@ "writable": "Įrašymo", "readable": "Skaitymo" } -} \ No newline at end of file +} diff --git a/install/core/i18n/lv_LV/install.json b/install/core/i18n/lv_LV/install.json index 9424503a4f..3a19a90104 100644 --- a/install/core/i18n/lv_LV/install.json +++ b/install/core/i18n/lv_LV/install.json @@ -110,18 +110,17 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "
1. Atrodiet failu \"httpd.conf\" (parasti to var atrast mapē ar nosaukumu \"conf\", \"config\" u. tml.)" + "windows": "
\n2. Failā \"httpd.conf\" atkomentējiet rindu \"LoadModule rewrite_module modules/mod_rewrite.so\" (noņemiet rindas sākumā esošās restītes \"#\" )
\n3. Tāpat pārliecinieties, ka rinda \"ClearModuleList\" ir atkomentēta un rinda \"AddModule mod_rewrite.c\" nav atzīmēta ar zvaigznīti.\n
1. Atrodiet failu \"httpd.conf\" (parasti to var atrast mapē ar nosaukumu \"conf\", \"config\" u. tml.)" }, "nginx": { - "linux": "
\n2. Failā \"httpd.conf\" atkomentējiet rindu{WINDOWS_APACHE1}(noņemiet rindas sākumā esošās restītes \"#\" )
\n3. Tāpat pārliecinieties, ka rinda \"ClearModuleList\" ir atkomentēta un rinda \"AddModule mod_rewrite.c\" nav atzīmēta ar zvaigznīti.\n
\n\n{NGINX}\n
Vairāk informācijas atradīsiet vadlīnijās Nginx server configuration for EspoCRM.
", - "windows": "
\n\n{NGINX}\n
Vairāk informācijas atradīsiet vadlīnijās Nginx server configuration for EspoCRM.
" + "linux": "
Pievienojiet šo kodu jūsu \"Nginx\" servera bloku konfigurācijas failam{NGINX_PATH}\"servera\" sadaļā:\n\n{NGINX}\n
Vairāk informācijas atradīsiet vadlīnijās Nginx server configuration for EspoCRM.
" } }, "modRewriteTitle": { - "apache": "API kļūda: \"EspoCRM\" API nav pieejams.
Iespējamās problēmas: \"Apache\" serverī nav atļauts \"mod_rewrite\", nav atļauts \".htaccess\" atbalsts vai bāzes pārrakstīšanas problēma.
Veiciet tikai nepieciešamos soļus. Pēc katra soļa pārbaudiet, vai problēma ir atrisināta.", - "nginx": "API kļūda: \"EspoCRM\" API nav pieejams.
Pievienojiet šo kodu jūsu \"Nginx\" servera bloku konfigurācijas failam (/etc/nginx/sites-available/YOUR_SITE) \"servera\" sadaļā:", - "microsoft-iis": "API kļūda: \"EspoCRM\" API nav pieejams.
Iespējamā problēma: nav atļauts \"URL Rewrite\". Pārbaudiet un atļaujiet \"URL Rewrite\" moduli IIS serverī", - "default": "API kļūda: EspoCRM API nav pieejams.
Iespējamā problēma: nav atļauts \"Rewrite\" modulis. Pārbaudiet un atļaujiet \"Rewrite\" moduli serverī (Piem., mod_rewrite \"Apache\" serverī) un \".htaccess\" atbalstu." + "apache": "API kļūda: EspoCRM API nav pieejams.
Veiciet tikai nepieciešamos soļus. Pēc katra soļa pārbaudiet, vai problēma ir atrisināta.", + "nginx": "API kļūda: \"EspoCRM\" API nav pieejams.
", + "microsoft-iis": "API kļūda: \"EspoCRM\" API nav pieejams.
Iespējamā problēma: nav atļauts \"URL Rewrite\". Pārbaudiet un atļaujiet \"URL Rewrite\" moduli IIS serverī", + "default": "API kļūda: EspoCRM API nav pieejams.
Iespējamā problēma: nav atļauts \"Rewrite\" modulis. Pārbaudiet un atļaujiet \"Rewrite\" moduli serverī (Piem., mod_rewrite \"Apache\" serverī) un \".htaccess\" atbalstu." } }, "systemRequirements": { @@ -133,4 +132,4 @@ "writable": "Rakstiski", "readable": "Lasāmi" } -} \ No newline at end of file +} diff --git a/install/core/i18n/nb_NO/install.json b/install/core/i18n/nb_NO/install.json index 0238f24379..2777d9f7a6 100644 --- a/install/core/i18n/nb_NO/install.json +++ b/install/core/i18n/nb_NO/install.json @@ -95,19 +95,18 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "
1. Finn httpd.conf file (du finner den vanligvis i en mappe kalt conf, config eller lignende)", - "linux": "
\n2. I httpd.conf-filen må du avkommentere linjen LoadModule rewrite_module modules/mod_rewrite.so (ved å fjerne '#'-symbolet i starten av linjen)
\n3. Sjekk også at linjen ClearModuleList og AddModule mod_rewrite.c er avkommentert.\n
1. Aktiver \"mod_rewrite\". For å gjøre det, kjør disse kommandoene:{APACHE1}
2. Aktiver støtte for .htaccess. Legg til / rediger tjenerens konfigurasjon (/etc/apache/apache2.conf, /etc/httpd/conf/httpd.conf):{APACHE2}\n Kjør følgende kommando etterpå:{APACHE3}
3. Forsøk å legg til RewriteBase-banen, åpne filen {API_PATH}.htaccess og erstatt følgende linje:{APACHE4}til{APACHE5}
For mer informasjon kan du gå til veiledningen \"Konfigurasjon av Apache-tjener for EspoCRM.
" + "windows": "
1. Finn httpd.conf file (du finner den vanligvis i en mappe kalt conf, config eller lignende)", + "linux": "
\n2. I httpd.conf-filen må du avkommentere linjen{WINDOWS_APACHE1}(ved å fjerne '#'-symbolet i starten av linjen)
\n3. Sjekk også at linjen ClearModuleList og AddModule mod_rewrite.c er avkommentert.\n
1. Aktiver \"mod_rewrite\". For å gjøre det, kjør disse kommandoene:{APACHE1}
2. Aktiver støtte for .htaccess. Legg til / rediger tjenerens konfigurasjon ({APACHE2_PATH1},{APACHE2_PATH2},{APACHE2_PATH3}):{APACHE2}\n Kjør følgende kommando etterpå:{APACHE3}
3. Forsøk å legg til RewriteBase-banen, åpne filen {API_PATH}.htaccess og erstatt følgende linje:{APACHE4}til{APACHE5}
For mer informasjon kan du gå til veiledningen Konfigurasjon av Apache-tjener for EspoCRM.
" }, "nginx": { - "linux": "
\n\n{NGINX}\n
For mer informasjon kan du besøke \"konfigurasjon av Nginx-tjener for EspoCRM.
", - "windows": "
\n\n{NGINX}\n
For mer informasjon kan du besøke \"konfigurasjon av Nginx-tjener for EspoCRM.
" + "linux": "
Legg følgende kode inn i nginx-tjenerens block-konfigureringsfilen{NGINX_PATH}, i \"server\"-seksjonen:{NGINX}
For mer informasjon kan du besøke \"konfigurasjon av Nginx-tjener for EspoCRM.
" } }, "modRewriteTitle": { - "apache": "API-feil: EspoCRMs API er utilgjengelig.
Mulige problemer: \"mod_rewrite\" er ikke aktivert på Apache-tjeneren, støtte for .htaccess er ikke aktivert eller problemer med RewriteBase.
Begynn øverst på listen og sjekk om problemet er løst før du prøver neste løsning.", - "nginx": "API-feil: EspoCRMs API er utilgjengelig.
Legg følgende kode inn i nginx-tjenerens block-konfigureringsfilen (/etc/nginx/sites-available/YOUR_SITE), i \"server\"-seksjonen:", - "microsoft-iis": "API-feil: EspoCRMs API er utilgjengelig.
Mulig problem: \"URL Rewrite\" er kanskje ikke aktivert, vennligst sjekk og aktiver \"URL Rewrite\"-modulen på IIS-tjeneren.", - "default": "API-feil: EspoCRMs API er utilgjengelig.
Mulig problem: Rewrite modulen er kanskje ikke aktivert. Sjekk serveren din for å finne det ut (f.eks mod_rewrite på Apache) og at .htaccess støttes." + "apache": "API-feil: EspoCRMs API er utilgjengelig.
Begynn øverst på listen og sjekk om problemet er løst før du prøver neste løsning.", + "nginx": "API-feil: EspoCRMs API er utilgjengelig.
", + "microsoft-iis": "API-feil: EspoCRMs API er utilgjengelig.
Mulig problem: \"URL Rewrite\" er kanskje ikke aktivert, vennligst sjekk og aktiver \"URL Rewrite\"-modulen på IIS-tjeneren.", + "default": "API-feil: EspoCRMs API er utilgjengelig.
Mulig problem: Rewrite modulen er kanskje ikke aktivert. Sjekk serveren din for å finne det ut (f.eks mod_rewrite på Apache) og at .htaccess støttes." } }, "systemRequirements": { @@ -116,4 +115,4 @@ "dbname": "Databasenavn", "user": "Brukernavn" } -} \ No newline at end of file +} diff --git a/install/core/i18n/nl_NL/install.json b/install/core/i18n/nl_NL/install.json index f8b3332717..bb31567ba8 100644 --- a/install/core/i18n/nl_NL/install.json +++ b/install/core/i18n/nl_NL/install.json @@ -105,15 +105,14 @@ }, "options": { "modRewriteTitle": { - "apache": "API-fout: EspoCRM API is niet beschikbaar.
Mogelijke problemen: uitgeschakeld \"mod_rewrite\" in Apache-server, uitgeschakelde .htaccess-ondersteuning of RewriteBase-probleem.
Voer alleen noodzakelijke stappen uit. Controleer na elke stap of het probleem is opgelost.", - "nginx": "API-fout: EspoCRM API is niet beschikbaar.
Voeg deze code toe aan uw Nginx-serverblokconfiguratiebestand (/ etc / nginx / sites-available / YOUR_SITE) in de sectie \"server\":", - "microsoft-iis": "API-fout: EspoCRM API is niet beschikbaar.
Mogelijk probleem: uitgeschakeld \"URL Rewrite\". Controleer en schakel de module \"URL Rewrite\" in IIS-server in", - "default": "API-fout: EspoCRM API is niet beschikbaar.
Mogelijk probleem: uitgeschakeld Herschrijfmodule. Controleer en schakel de Rewrite-module in uw server (bijvoorbeeld mod_rewrite in Apache) en .htaccess-ondersteuning in." + "apache": "API-fout: EspoCRM API is niet beschikbaar.
Voer alleen noodzakelijke stappen uit. Controleer na elke stap of het probleem is opgelost.", + "nginx": "API-fout: EspoCRM API is niet beschikbaar.
", + "microsoft-iis": "API-fout: EspoCRM API is niet beschikbaar.
Mogelijk probleem: uitgeschakeld \"URL Rewrite\". Controleer en schakel de module \"URL Rewrite\" in IIS-server in", + "default": "API-fout: EspoCRM API is niet beschikbaar.
Mogelijk probleem: uitgeschakeld Herschrijfmodule. Controleer en schakel de Rewrite-module in uw server (bijvoorbeeld mod_rewrite in Apache) en .htaccess-ondersteuning in." }, "modRewriteInstruction": { "nginx": { - "linux": "
\n\n{NGINX}\n
Ga voor meer informatie naar de handleiding Nginx-serverconfiguratie voor EspoCRM .
", - "windows": "
\n\n{NGINX}\n
Ga voor meer informatie naar de handleiding Nginx-serverconfiguratie voor EspoCRM .
" + "linux": "
Voeg deze code toe aan uw Nginx-serverblokconfiguratiebestand{NGINX_PATH}in de sectie \"server\":\n\n{NGINX}\n
Ga voor meer informatie naar de handleiding Nginx-serverconfiguratie voor EspoCRM .
" } } }, @@ -127,4 +126,4 @@ "readable": "Leesbaar", "requiredMariadbVersion": "MariaDB-versie" } -} \ No newline at end of file +} diff --git a/install/core/i18n/ru_RU/install.json b/install/core/i18n/ru_RU/install.json index 5db62d9a73..e4041584b3 100644 --- a/install/core/i18n/ru_RU/install.json +++ b/install/core/i18n/ru_RU/install.json @@ -105,18 +105,17 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "
1. Найдите файл httpd.conf (как правило, вы можете найти его в папке conf, config или в папке с похожим названием)" + "windows": "
\n2. Внутри файла httpd.conf раскомментируйте строку LoadModule rewrite_module modules/mod_rewrite.so (удалите знак '#' в начале строки)
\n3. Также убедитесь что раскомментирована строка ClearModuleList и что строка AddModule mod_rewrite.c не закомментирована.\n
1. Найдите файл httpd.conf (как правило, вы можете найти его в папке conf, config или в папке с похожим названием)" }, "nginx": { - "linux": "
\n2. Внутри файла httpd.conf раскомментируйте строку{WINDOWS_APACHE1}(удалите знак '#' в начале строки)
\n3. Также убедитесь что раскомментирована строка ClearModuleList и что строка AddModule mod_rewrite.c не закомментирована.\n
\n\n{NGINX}\n
Для получения более подробной информации, пожалуйста, перейдите Nginx server configuration for EspoCRM.
", - "windows": "
\n\n{NGINX}\n
Для получения более подробной информации, пожалуйста, перейдите Nginx server configuration for EspoCRM.
" + "linux": "
Добавьте этот код в конфигурацию Nginx{NGINX_PATH}в блок \"server\":{NGINX}
Для получения более подробной информации, пожалуйста, перейдите Nginx server configuration for EspoCRM.
" } }, "modRewriteTitle": { - "apache": "Ошибка API: EspoCRM API недоступен.
Возможные проблемы: не подключен модуль \"mod_rewrite\" к Apache серверу, отключена поддержка .htaccess или проблема с RewriteBase.
Совершайте только необходимые шаги. После каждого шага проверяйте решена ли проблема.", - "nginx": "Ошибка API: EspoCRM API недоступен.
Добавьте этот код в конфигурацию Nginx (/etc/nginx/sites-available/YOUR_SITE) в блок \"server\":", - "microsoft-iis": "Ошибка API: EspoCRM API недоступен.
Возможная проблема: не подключен модуль \"URL Rewrite\". Пожалуйста, проверьте и подключите модуль \"URL Rewrite\" к IIS серверу.", - "default": "Ошибка API: EspoCRM API недоступен.
Возможная проблема: не подключен модуль Rewrite. Пожалуйста, проверьте и подключите к серверу модуль Rewrite (например mod_rewrite в Apache) и поддержку .htaccess." + "apache": "Ошибка API: EspoCRM API недоступен.
Совершайте только необходимые шаги. После каждого шага проверяйте решена ли проблема.", + "nginx": "Ошибка API: EspoCRM API недоступен.
", + "microsoft-iis": "Ошибка API: EspoCRM API недоступен.
Возможная проблема: не подключен модуль \"URL Rewrite\". Пожалуйста, проверьте и подключите модуль \"URL Rewrite\" к IIS серверу.", + "default": "Ошибка API: EspoCRM API недоступен.
Возможная проблема: не подключен модуль Rewrite. Пожалуйста, проверьте и подключите к серверу модуль Rewrite (например mod_rewrite в Apache) и поддержку .htaccess." } }, "systemRequirements": { @@ -126,4 +125,4 @@ "dbname": "Имя БД", "user": "Имя пользователя" } -} \ No newline at end of file +} diff --git a/install/core/i18n/sk_SK/install.json b/install/core/i18n/sk_SK/install.json index 332afae676..f9187cf39c 100644 --- a/install/core/i18n/sk_SK/install.json +++ b/install/core/i18n/sk_SK/install.json @@ -93,19 +93,18 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "
1. Nájdite súbor httpd.conf (obyčajne sa nachádza v priečinku s názvom conf, config alebo niečo okolo tých riadkov)", - "linux": "
\n2. Vo vnútri httpd.conf odkomentujte riadok LoadModule rewrite_module modules/mod_rewrite.so (odstránte '#' na začiatku riadku)
\n3. Tiež skontrolujte či riadok ClearModuleList je odkomentovany a nájdite a uistite sa že riadok AddModule mod_rewrite.c nie je zakomentovaný.\n
1. Povoliť \"mod_rewrite\". Spustite v termináli príkaz:{APACHE1}
2. Povoliť podporu .htaccess. Pridajte/zmeňte nastavenia v konfigurácii servera (/etc/apache/apache2.conf, /etc/httpd/conf/httpd.conf):{APACHE2}\n Potom spustite tento príkaz v termináli:{APACHE3}
3. Skúste pridať RewriteBase cestu, otvorte súbor {API_PATH}.htaccess a vymeňte riadok:{APACHE4}za{APACHE5}
Pre viac informácií navštívte Konfigurácia Apache server pre EspoCRM.
" + "windows": "
1. Nájdite súbor httpd.conf (obyčajne sa nachádza v priečinku s názvom conf, config alebo niečo okolo tých riadkov)", + "linux": "
\n2. Vo vnútri httpd.conf odkomentujte riadok{WINDOWS_APACHE1}(odstránte '#' na začiatku riadku)
\n3. Tiež skontrolujte či riadok ClearModuleList je odkomentovany a nájdite a uistite sa že riadok AddModule mod_rewrite.c nie je zakomentovaný.\n
1. Povoliť \"mod_rewrite\". Spustite v termináli príkaz:{APACHE1}
2. Povoliť podporu .htaccess. Pridajte/zmeňte nastavenia v konfigurácii servera ({APACHE2_PATH1},{APACHE2_PATH2},{APACHE2_PATH3}):{APACHE2}\n Potom spustite tento príkaz v termináli:{APACHE3}
3. Skúste pridať RewriteBase cestu, otvorte súbor {API_PATH}.htaccess a vymeňte riadok:{APACHE4}za{APACHE5}
Pre viac informácií navštívte Konfigurácia Apache server pre EspoCRM.
" }, "nginx": { - "linux": "
\n\n{NGINX}\n
Pre podrobnejšie informácie prosím navštívte stránku s návodmi Konfigurácia Nginx servera pre EspoCRM.
", - "windows": "
\n\n{NGINX}\n
Pre podrobnejšie informácie prosím navštívte stránku s návodmi Konfigurácia Nginx servera pre EspoCRM.
" + "linux": "
Pridajte tento kód do konfiguračného súboru Vášho serveru Nginx{NGINX_PATH}do vnútra sekcie \"server\":{NGINX}
Pre podrobnejšie informácie prosím navštívte stránku s návodmi Konfigurácia Nginx servera pre EspoCRM.
" } }, "modRewriteTitle": { - "apache": "chyba API: EspoCRM API je nedostupné.
Možné problémy: zakázaný \"mod_rewrite\" v Apache serveri, zakázaná podpora .htaccess alebo záležitosť RewriteBase.
Urobte iba nevyhnutné kroky. Po každom kroku skontrolujte, či je problém vyriešený.", - "nginx": "Chyba API: EspoCRM API je nedostupné.
Pridajte tento kód do konfiguračného súboru Vášho serveru Nginx (/etc/nginx/sites-available/VAŠA_STRÁNKA) do vnútra sekcie \"server\":", - "microsoft-iis": "Chyba API: EspoCRM API je nedostupné.
Možný problém: zakázaný \"URL Rewrite\". Prosím skontrolujte a povoľte modul \"URL Rewrite\" v IIS serveri", - "default": "Chyba API: EspoCRM API je nedostupné.
Možný problém: zakázaný Rewrite Module. Prosím skontrolujte a povoľte Rewrite Module vo Vašom serveri (napr. mod_rewrite v Apache) a podporu .htaccess." + "apache": "Chyba API: EspoCRM API je nedostupné.
Urobte iba nevyhnutné kroky. Po každom kroku skontrolujte, či je problém vyriešený.", + "nginx": "Chyba API: EspoCRM API je nedostupné.
", + "microsoft-iis": "Chyba API: EspoCRM API je nedostupné.
Možný problém: zakázaný \"URL Rewrite\". Prosím skontrolujte a povoľte modul \"URL Rewrite\" v IIS serveri", + "default": "Chyba API: EspoCRM API je nedostupné.
Možný problém: zakázaný Rewrite Module. Prosím skontrolujte a povoľte Rewrite Module vo Vašom serveri (napr. mod_rewrite v Apache) a podporu .htaccess." } }, "systemRequirements": { @@ -115,4 +114,4 @@ "dbname": "Názov databázy", "user": "Používateľské meno" } -} \ No newline at end of file +} diff --git a/install/core/i18n/sr_RS/install.json b/install/core/i18n/sr_RS/install.json index 40eef7bea7..5e35a99343 100644 --- a/install/core/i18n/sr_RS/install.json +++ b/install/core/i18n/sr_RS/install.json @@ -94,19 +94,18 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "
1. Pronađite httpd.conf datoteku (uobičajeno je u fascikli conf, config ili nešto slično)", - "linux": "br>
\n2. Unutar httpd.conf datoteke skinite komentar sa reda LoadModule rewrite_module modules/mod_rewrite.so (uklonite '#' znak na početku reda)
\n3. Proverite i da li su ClearModuleList AddModule mod_rewrite.c takođe bez znaka #.\n
1.Omogućite \"mod_rewrite\". Da ovo uradite pokrenite ovaj kod u terminalu:{APACHE1}
2. Omogućite .htaccess podršku. Dodajte/izmenite podešacanja servera (/etc/apache/apache2.conf, /etc/httpd/conf/httpd.conf):{APACHE2}\n Nakon toga pokrenite ovaj kod na serveru:{APACHE3}
3. Pokuštajte da dodate RewriteBase putanju, otvorite datoteku {API_PATH}.htaccess i izmenite sledeći red:{APACHE4}NA{APACHE5}
Za više informacija posetite Apache server konfiguraciju za EspoCRM.
" + "windows": "
1. Pronađite httpd.conf datoteku (uobičajeno je u fascikli conf, config ili nešto slično)", + "linux": "
\n2. Unutar httpd.conf datoteke skinite komentar sa reda{WINDOWS_APACHE1}(uklonite '#' znak na početku reda)
\n3. Proverite i da li su ClearModuleList AddModule mod_rewrite.c takođe bez znaka #.\n
1.Omogućite \"mod_rewrite\". Da ovo uradite pokrenite ovaj kod u terminalu:{APACHE1}
2. Omogućite .htaccess podršku. Dodajte/izmenite podešacanja servera ({APACHE2_PATH1},{APACHE2_PATH2},{APACHE2_PATH3}):{APACHE2}\n Nakon toga pokrenite ovaj kod na serveru:{APACHE3}
3. Pokuštajte da dodate RewriteBase putanju, otvorite datoteku {API_PATH}.htaccess i izmenite sledeći red:{APACHE4}NA{APACHE5}
Za više informacija posetite Apache server konfiguraciju za EspoCRM.
" }, "nginx": { - "linux": "
\n\n{NGINX}\n
Za više informacija posetite Nginx server konfiguraciju za EspoCRM.
", - "windows": "
\n\n{NGINX}\n
Za više informacija posetite Nginx server konfiguraciju za EspoCRM.
" + "linux": "
Dodajte ovaj kod u svoju Nginx servera blok config datoteku{NGINX_PATH}unutar \"server\" sekcije:{NGINX}
Za više informacija posetite Nginx server konfiguraciju za EspoCRM.
" } }, "modRewriteTitle": { - "apache": "API Greška: EspoCRM API nije dostupan.
Mogući problem: \"mod_rewrite\" isključen na Apache serveru, isključena .htaccess podrška ili RewriteBase problem.
Učinite samo neophodne izmene. Posle svake proverite da li je problem rešen.", - "nginx": "API greška: EspoCRM API je dostupan
Dodajte ovaj kod u svoju Nginx servera blok config datoteku (/etc/nginx/sites-available/YOUR_SITE)unutar \"server\" sekcije:", - "microsoft-iis": "API greška: EspoCRM API je dostupan
Mogući problem: onemogućen \"URL Rewrite \". Molimo proverite i omogućite \"URL Rewrite \" modul u IIS serveru", - "default": "API greška: EspoCRM API je dostupan
Mogući problem: onemogućen Rewrite Module. Molimo proverite i omogućiti Rewrite Module u vašem serveru (npr mod_rewrite u Apachu) i .htaccess podršku." + "apache": "API Greška: EspoCRM API nije dostupan.
Učinite samo neophodne izmene. Posle svake proverite da li je problem rešen.", + "nginx": "API greška: EspoCRM API je dostupan
", + "microsoft-iis": "API greška: EspoCRM API je dostupan
Mogući problem: onemogućen \"URL Rewrite \". Molimo proverite i omogućite \"URL Rewrite \" modul u IIS serveru", + "default": "API greška: EspoCRM API je dostupan
Mogući problem: onemogućen Rewrite Module. Molimo proverite i omogućiti Rewrite Module u vašem serveru (npr mod_rewrite u Apachu) i .htaccess podršku." } }, "systemRequirements": { @@ -116,4 +115,4 @@ "dbname": "Ime baze", "user": "Korisničko ime" } -} \ No newline at end of file +} diff --git a/install/core/i18n/tr_TR/install.json b/install/core/i18n/tr_TR/install.json index 22db2a59c4..9fd0466749 100644 --- a/install/core/i18n/tr_TR/install.json +++ b/install/core/i18n/tr_TR/install.json @@ -101,18 +101,17 @@ }, "options": { "modRewriteTitle": { - "apache": "API Hatası: EspoCRM API'sı kullanılamıyor. Olası sorunlar: Apache sunucusunda \"mod_rewrite \" devre dışı, .htaccess desteği veya RewriteBase sorunu devre dışı bırakıldı.
Gerekli adımları uygulayın. Her adımın ardından sorunun çözülüp çözülmediğini kontrol edin.", - "nginx": "API Hatası: EspoCRM API'sı kullanılamıyor. \"Sunucu \" bölümünde bu kodu Nginx sunucu blok yapılandırma dosyanıza (/etc/nginx/sites-available/YOUR_SITE) ekleyin:", - "microsoft-iis": "API Hatası: EspoCRM API'sı kullanılamıyor.
Olası problem: \"URL Yeniden Yaz \" devre dışı. Lütfen IIS sunucusunda \"URL Rewrite \" Modülü'nü kontrol edin ve etkinleştirin", - "default": "API Hatası: EspoCRM API'sı kullanılamıyor.
Olası sorun: devre dışı bırakılmış Rewrite Modülü. Lütfen sunucunuzdaki Rewrite Modülü'nü kontrol edin ve etkinleştirin (örn. Apache'deki mod_rewrite) ve .htaccess desteğini etkinleştirin." + "apache": "API Hatası: EspoCRM API'sı kullanılamıyor.
Gerekli adımları uygulayın. Her adımın ardından sorunun çözülüp çözülmediğini kontrol edin.", + "nginx": "API Hatası: EspoCRM API'sı kullanılamıyor.
", + "microsoft-iis": "API Hatası: EspoCRM API'sı kullanılamıyor.
Olası problem: \"URL Yeniden Yaz \" devre dışı. Lütfen IIS sunucusunda \"URL Rewrite \" Modülü'nü kontrol edin ve etkinleştirin", + "default": "API Hatası: EspoCRM API'sı kullanılamıyor.
Olası sorun: devre dışı bırakılmış Rewrite Modülü. Lütfen sunucunuzdaki Rewrite Modülü'nü kontrol edin ve etkinleştirin (örn. Apache'deki mod_rewrite) ve .htaccess desteğini etkinleştirin." }, "modRewriteInstruction": { "apache": { - "linux": "
1. \"Mod_rewrite \" yı etkinleştirin. Bunu yapmak için şu komutları bir Terminalde çalıştırın:{APACHE1}
2. .htaccess desteğini etkinleştirin. Sunucu yapılandırma ayarlarını ekleyin / düzenleyin (/etc/apache/apache2.conf, /etc/httpd/conf/httpd.conf):{APACHE2}\n Sonra bu komutu bir Terminalde çalıştırın:{APACHE3}
3. RewriteBase yolunu eklemeyi deneyin, {API_PATH} .htaccess dosyasını açın ve aşağıdaki satırı değiştirin:{APACHE4}{APACHE5}
Daha fazla bilgi için lütfen ziyaret edin. EspoCRM için Apache sunucusu yapılandırması kılavuzunu okuyun.
" + "linux": "
1. \"Mod_rewrite \" yı etkinleştirin. Bunu yapmak için şu komutları bir Terminalde çalıştırın:{APACHE1}
2. .htaccess desteğini etkinleştirin. Sunucu yapılandırma ayarlarını ekleyin / düzenleyin ({APACHE2_PATH1},{APACHE2_PATH2},{APACHE2_PATH3}):{APACHE2}\n Sonra bu komutu bir Terminalde çalıştırın:{APACHE3}
3. RewriteBase yolunu eklemeyi deneyin, {API_PATH} .htaccess dosyasını açın ve aşağıdaki satırı değiştirin:{APACHE4}{APACHE5}
Daha fazla bilgi için lütfen ziyaret edin. EspoCRM için Apache sunucusu yapılandırması kılavuzunu okuyun.
" }, "nginx": { - "linux": "
\n\n{NGINX} \n
Daha fazla bilgi için lütfen EspoCRM için Nginx sunucu yapılandırması .
", - "windows": "
\n\n{NGINX} \n
Daha fazla bilgi için lütfen EspoCRM için Nginx sunucu yapılandırması .
" + "linux": "
Sunucu bölümünde bu kodu Nginx sunucu blok yapılandırma dosyanıza{NGINX_PATH}ekleyin:\n\n{NGINX} \n
Daha fazla bilgi için lütfen EspoCRM için Nginx sunucu yapılandırması.
" } } }, @@ -123,4 +122,4 @@ "dbname": "Veritabanı adı", "user": "Kullanıcı Adı" } -} \ No newline at end of file +} diff --git a/install/core/i18n/uk_UA/install.json b/install/core/i18n/uk_UA/install.json index df2b953ef4..ec891c218e 100644 --- a/install/core/i18n/uk_UA/install.json +++ b/install/core/i18n/uk_UA/install.json @@ -109,18 +109,17 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "
1. Знайти файл httpd.conf файл (зазвичай його можна знайти у теці, званій conf, config або ще якось так)" + "windows": "
Н2. Всередині файла httpd.conf розкоментувати рядок LoadModule rewrite_module модулі/через mod_rewrite.so (видалити знак '#' на початку рядка)
3. Також пересвідчитися, що рядок ClearModuleList некоментований і переконайтеся, що рядок AddModule mod_rewrite.c не закомментирований.
1. Знайти файл httpd.conf файл (зазвичай його можна знайти у теці, званій conf, config або ще якось так)" }, "nginx": { - "linux": "
2. Всередині файла httpd.conf розкоментувати рядок LoadModule rewrite_module модулі/через mod_rewrite.so (видалити знак '#' на початку рядка)
3. Також пересвідчитися, що рядок ClearModuleList некоментований і переконайтеся, що рядок AddModule mod_rewrite.c не закомментирований.
\n\n{NGINX}\n
Для отримання більш детальної інформації, будь ласка, перейдіть Nginx server configuration for EspoCRM.
", - "windows": "
\n\n{NGINX}\n
Для отримання більш детальної інформації, будь ласка, перейдіть Nginx server configuration for EspoCRM.
" + "linux": "
Додайте цей код до Вашого файлу конфігурації Nginx{NGINX_PATH}всередині блоку \"server\":{NGINX}
Для отримання більш детальної інформації, будь ласка, перейдіть Nginx server configuration for EspoCRM.
" } }, "modRewriteTitle": { - "apache": "Помилка API: API EspoCRM недоступне.
Можливі проблеми: бракує RewriteBase, вимкнено \"mod_rewrite\" в Apache-сервері або файлі підтримки .htaccess.", - "nginx": "Помилка API: API EspoCRM недоступне.
Додайте цей код до Вашого файлу конфігурації Nginx (/etc/nginx/sites-available/YOUR_SITE) всередині блоку \"сервер\":", - "microsoft-iis": "Помилка API: EspoCRM API недоступне.
Можлива проблема: вимкнено \"URL Rewrite\". Будь ласка, перевірте і включіть модуль \"URL Rewrite\" сервера IIS", - "default": "Помилка API: EspoCRM API недоступний.
Можлива проблема: вимкнений Rewrite Module. Будь ласка, перевірте й увімкніть Rewrite Module у вашому сервері (наприклад mod_rewrite в Apache) і підтримку .htaccess." + "apache": "Помилка API: API EspoCRM недоступне.
Виконуйте лише необхідні кроки. Після кожного кроку перевірте, чи проблема вирішена.", + "nginx": "Помилка API: API EspoCRM недоступне.
", + "microsoft-iis": "Помилка API: EspoCRM API недоступне.
Можлива проблема: вимкнено \"URL Rewrite\". Будь ласка, перевірте і включіть модуль \"URL Rewrite\" сервера IIS", + "default": "Помилка API: EspoCRM API недоступний.
Можлива проблема: вимкнений Rewrite Module. Будь ласка, перевірте й увімкніть Rewrite Module у вашому сервері (наприклад mod_rewrite в Apache) і підтримку .htaccess." } }, "systemRequirements": { @@ -133,4 +132,4 @@ "readable": "Читання", "requiredMariadbVersion": "Версія MariaDB" } -} \ No newline at end of file +} diff --git a/install/core/i18n/zh_CN/install.json b/install/core/i18n/zh_CN/install.json index 640218632e..b0040def7a 100644 --- a/install/core/i18n/zh_CN/install.json +++ b/install/core/i18n/zh_CN/install.json @@ -100,18 +100,17 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "结果<前> 1。查找httpd.conf文件(通常你会发现一个名为CONF,配置或类似的规定文件夹中)结果\n2.里面的httpd.conf文件注释行的LoadModule rewrite_module模块/ mod_rewrite.so(从行前面删除井'#'号)结果\n3.又找到行ClearModuleList下面是注释掉然后查找并确保该行加入AddModule mod_rewrite.c没有被注释掉。\n PRE>" + "windows": "结果1. 查找httpd.conf文件(通常你会发现一个名为CONF,配置或类似的规定文件夹中)结果\n2.里面的httpd.conf文件注释行的LoadModule rewrite_module模块/ mod_rewrite.so(从行前面删除井'#'号)结果\n3.又找到行ClearModuleList下面是注释掉然后查找并确保该行加入AddModule mod_rewrite.c没有被注释掉。\n" }, "nginx": { - "linux": "
\n\n{NGINX}\n
为获取更多信息,请访问帮助 EspoCRM的网页服务器配置.
", - "windows": "
\n\n{NGINX}\n
为获取更多信息,请访问帮助 EspoCRM的网页服务器配置.
" + "linux": "
将此代码添加入你的网页服务器配置文件{NGINX_PATH}在里面 \"服务器\" 部分:{NGINX}
为获取更多信息,请访问帮助 EspoCRM的网页服务器配置.
" } }, "modRewriteTitle": { - "apache": "应用程序编程接口错误: EspoCRM 应用程序编程接口是不可用的.
可能出现的问题: 禁用 \"mod_rewrite\" 在Apache 服务器, 禁用 .分布式配置文件支持或者重写数据问题.
仅执行必要操作.完成每一步需确认问题是否被解决.", - "nginx": "应用程序编程接口错误: EspoCRM 应用程序编程接口是不可用的.
将此代码添加入你的网页服务器配置文件(/etc/nginx/sites-available/YOUR_SITE) 在里面 \"服务器\" 部分:", - "microsoft-iis": "应用程序编程接口错误: EspoCRM应用程序编程接口是不可用的.
可能出现的问题: 禁用 \"网址重写\". 请核对并启用\"网址重写\" 模块在IIS服务器", - "default": "应用程序编程接口错误: EspoCRM应用程序编程接口是不可用的.
可能出现的问题: 禁用重写模块.请在你的服务器核对并启用重写模块 (e.g. mod_重写 在 Apache) 和.htaccess 支持." + "apache": "应用程序编程接口错误: EspoCRM 应用程序编程接口是不可用的.
可能出现的问题: 禁用 \"mod_rewrite\" 在Apache 服务器, 禁用 .分布式配置文件支持或者重写数据问题.
仅执行必要操作.完成每一步需确认问题是否被解决.", + "nginx": "应用程序编程接口错误: EspoCRM 应用程序编程接口是不可用的.
", + "microsoft-iis": "应用程序编程接口错误: EspoCRM应用程序编程接口是不可用的.
可能出现的问题: 禁用 \"网址重写\". 请核对并启用\"网址重写\" 模块在IIS服务器", + "default": "应用程序编程接口错误: EspoCRM应用程序编程接口是不可用的.
可能出现的问题: 禁用重写模块.请在你的服务器核对并启用重写模块 (e.g. mod_重写 在 Apache) 和.htaccess 支持." } } -} \ No newline at end of file +} diff --git a/install/core/i18n/zh_TW/install.json b/install/core/i18n/zh_TW/install.json index fc48c6f81c..3b0ec569bc 100644 --- a/install/core/i18n/zh_TW/install.json +++ b/install/core/i18n/zh_TW/install.json @@ -116,18 +116,14 @@ "options": { "modRewriteInstruction": { "apache": { - "windows": "
1. 找出 httpd.conf 的位置 (通常會在一個叫 conf, config 的資料夾,或是這行中的)" - }, - "nginx": { - "linux": "SMTP帳號", - "windows": "SMTP帳號" + "windows": "
2. 在 httpd.conf 檔案中取消註解 LoadModule rewrite_module modules/mod_rewrite.so (在要移除該行前面移除井字號 '#' )
3. 另外也找出 ClearModuleList 並取消註解,也請留意 AddModule mod_rewrite.c 這行不要被註解掉。\n
1. 找出 httpd.conf 的位置 (通常會在一個叫 conf, config 的資料夾,或是這行中的)" } }, "modRewriteTitle": { - "apache": "API錯誤:EspoCRM API無法連線。
2. 在 httpd.conf 檔案中取消註解{WINDOWS_APACHE1}(在要移除該行前面移除井字號 '#')
3. 另外也找出 ClearModuleList 並取消註解,也請留意 AddModule mod_rewrite.c 這行不要被註解掉。\n
可能的問題:在Apache中停用了 mod_rewrite,停用了.htaccess 功能或 RewriteBase 功能。
請試必要的步驟。在試過每個步驟之後,回來檢查問題是否已解決。", - "nginx": "API錯誤:EspoCRM API無法連線。
將此和式碼加入到 Nginx 伺服器內的配置文件 (/etc/nginx/sites-available/YOUR_SITE):", - "microsoft-iis": "API錯誤:EspoCRM API無法連線。
可能的問題:停用了 URL Rewrite。請檢查並啟用 IIS 中的 URL Rewrite 模組", - "default": "API錯誤:EspoCRM API無法連線。
可能的問題:停用了 Rewrite 模組。請檢查並啟用伺服器中的 Rewrite 模組 (例如Apache 中的 mod_rewrite)和 .htaccess 功能。" + "apache": "API錯誤:EspoCRM API無法連線。
可能的問題:在Apache中停用了 mod_rewrite,停用了.htaccess 功能或 RewriteBase 功能。
請試必要的步驟。在試過每個步驟之後,回來檢查問題是否已解決。", + "nginx": "API錯誤:EspoCRM API無法連線。
", + "microsoft-iis": "API錯誤:EspoCRM API無法連線。
可能的問題:停用了 URL Rewrite。請檢查並啟用 IIS 中的 URL Rewrite 模組", + "default": "API錯誤:EspoCRM API無法連線。
可能的問題:停用了 Rewrite 模組。請檢查並啟用伺服器中的 Rewrite 模組 (例如Apache 中的 mod_rewrite)和 .htaccess 功能。" } }, "systemRequirements": { @@ -140,4 +136,4 @@ "readable": "邀請", "requiredMariadbVersion": "允許自定義選項" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index f4c7ee359b..205adb0fd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "espocrm", - "version": "6.1.4", + "version": "6.1.5", "description": "", "main": "index.php", "repository": { diff --git a/upgrades/6.1.4-6.1.5/scripts/AfterUpgrade.php b/upgrades/6.1.4-6.1.5/scripts/AfterUpgrade.php index 18c09b4e3f..46692b1289 100644 --- a/upgrades/6.1.4-6.1.5/scripts/AfterUpgrade.php +++ b/upgrades/6.1.4-6.1.5/scripts/AfterUpgrade.php @@ -49,7 +49,9 @@ class AfterUpgrade ]; foreach ($fileList as $file) { - if (!file_exists($file)) continue; + if (!file_exists($file)) { + continue; + } $result = unlink($file); @@ -72,7 +74,9 @@ class AfterUpgrade ]; foreach ($directoryList as $directory) { - if (!file_exists($directory)) continue; + if (!file_exists($directory)) { + continue; + } $this->container->get('fileManager')->removeInDir($directory, true); } diff --git a/upgrades/6.1.4-6.1.5/scripts/BeforeUpgrade.php b/upgrades/6.1.4-6.1.5/scripts/BeforeUpgrade.php index 98bba2da66..a481307e36 100644 --- a/upgrades/6.1.4-6.1.5/scripts/BeforeUpgrade.php +++ b/upgrades/6.1.4-6.1.5/scripts/BeforeUpgrade.php @@ -49,7 +49,9 @@ class BeforeUpgrade ]; foreach ($fileList as $file) { - if (!file_exists($file)) continue; + if (!file_exists($file)) { + continue; + } $result = unlink($file); @@ -72,7 +74,9 @@ class BeforeUpgrade ]; foreach ($directoryList as $directory) { - if (!file_exists($directory)) continue; + if (!file_exists($directory)) { + continue; + } $this->container->get('fileManager')->removeInDir($directory, true); } diff --git a/upgrades/6.1/scripts/AfterUpgrade.php b/upgrades/6.1/scripts/AfterUpgrade.php index 0cf969fe9d..1696d5cb8a 100644 --- a/upgrades/6.1/scripts/AfterUpgrade.php +++ b/upgrades/6.1/scripts/AfterUpgrade.php @@ -29,6 +29,8 @@ class AfterUpgrade { + private $container; + public function run($container) { $this->container = $container; @@ -38,5 +40,51 @@ class AfterUpgrade $config->set('pdfEngine', 'Tcpdf'); $config->save(); + + $this->removeUnnecessaryFiles(); + $this->removeUnnecessaryDirectories(); + } + + public function removeUnnecessaryFiles() + { + $fileList = [ + 'vendor/spatie/async/.git/objects/pack/pack-14ab89d3ff365322e20cfd44252880928aaa4ed6.idx', + 'vendor/spatie/async/.git/objects/pack/pack-14ab89d3ff365322e20cfd44252880928aaa4ed6.pack', + 'vendor/zordius/lightncandy/.git/objects/pack/pack-8b009a4f84cb95d704fb194c5fee79c724dee033.pack', + 'vendor/zordius/lightncandy/.git/objects/pack/pack-8b009a4f84cb95d704fb194c5fee79c724dee033.idx', + ]; + + foreach ($fileList as $file) { + if (!file_exists($file)) { + continue; + } + + $result = unlink($file); + + if (!$result) { + $this->container->get('fileManager')->getPermissionUtils()->chmod($file, [ + 'file' => '0664', + 'dir' => '0775', + ]); + + unlink($file); + } + } + } + + public function removeUnnecessaryDirectories() + { + $directoryList = [ + 'vendor/spatie/async/.git', + 'vendor/zordius/lightncandy/.git', + ]; + + foreach ($directoryList as $directory) { + if (!file_exists($directory)) { + continue; + } + + $this->container->get('fileManager')->removeInDir($directory, true); + } } } diff --git a/upgrades/6.1/scripts/BeforeUpgrade.php b/upgrades/6.1/scripts/BeforeUpgrade.php new file mode 100644 index 0000000000..a481307e36 --- /dev/null +++ b/upgrades/6.1/scripts/BeforeUpgrade.php @@ -0,0 +1,84 @@ +container = $container; + + $this->removeUnnecessaryFiles(); + $this->removeUnnecessaryDirectories(); + } + + public function removeUnnecessaryFiles() + { + $fileList = [ + 'vendor/spatie/async/.git/objects/pack/pack-14ab89d3ff365322e20cfd44252880928aaa4ed6.idx', + 'vendor/spatie/async/.git/objects/pack/pack-14ab89d3ff365322e20cfd44252880928aaa4ed6.pack', + 'vendor/zordius/lightncandy/.git/objects/pack/pack-8b009a4f84cb95d704fb194c5fee79c724dee033.pack', + 'vendor/zordius/lightncandy/.git/objects/pack/pack-8b009a4f84cb95d704fb194c5fee79c724dee033.idx', + ]; + + foreach ($fileList as $file) { + if (!file_exists($file)) { + continue; + } + + $result = unlink($file); + + if (!$result) { + $this->container->get('fileManager')->getPermissionUtils()->chmod($file, [ + 'file' => '0664', + 'dir' => '0775', + ]); + + unlink($file); + } + } + } + + public function removeUnnecessaryDirectories() + { + $directoryList = [ + 'vendor/spatie/async/.git', + 'vendor/zordius/lightncandy/.git', + ]; + + foreach ($directoryList as $directory) { + if (!file_exists($directory)) { + continue; + } + + $this->container->get('fileManager')->removeInDir($directory, true); + } + } +}