Upload Files catalog

Hello

Tell me what the problem is

Through the file manager, files in the directory /home/test/web/example.com/public_html are loaded without problems.
But in /home/test/web/example.com/ it doesn’t work. Why is that and how to fix it?

Hi @jekasumy

Using load do you mean that you can’t upload files to /home/test/web/example.com/ or that you can’t view the dirs and files in that dir?

I can view it. But after uploading the archive to this directory, it is not displayed there. Apparently, it is not uploaded at all. But the file manager says that the file is uploaded. You need to upload the storage folder there for the opencart site. So that it is outside the home directory, but slightly higher.

php_admin_value[open_basedir] = /home/%user%/.composer:/home/%user%/web/%domain%/public_html:/home/%user%/web/%domain%/private:/home/%user%/web/%domain%/public_shtml:/home/%user%/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt

Could this be related to openbasedir?
You can default to dashboard templates by adding /home/%user%/web/%domain%

I don’t think it will harm security. There are different sites, there are times when you need to put a folder with some files outside the public_html directory.

Default perms for dir /home/test/web/example.com are 551 so no write perms for your user.

Execute this and you will be able to upload files.

Note: keep in mind that users could break the conf and this change will affect to all the users.

v-change-sys-config-value DOMAINDIR_WRITABLE yes
v-rebuild-web-domains YourUser

Maybe you should also edit the php template that is using your web site, or better create a new php template to add that dir /home/%user%/web/%domain% to open_basedir directive.

1 Like

Helped v-change-sys-config-value DOMAINDIR_WRITABLE yes

Please tell me which configuration may be broken?

The user can remove the dirs stats, logs, document_errors, etc. and that will break the conf for your site.

It’s not scary. The main thing is that it can download files

Perhaps you can also tell me how to change the file manager language to Ukrainian.
Since the system language of the panel is Ukrainian, but the file manager itself is in English. Or so that the file manager sets the language itself depending on the user’s settings.

You can edit the file /usr/local/hestia/web/fm/configuration_sample.php and replace english by the language you need:

'language' => 'english',

The list of supported languages is here but I’m afraid ukranian is not supported by the file manager (FileGator).

/usr/local/hestia/web/fm/configuration.php

Here are the parameters. But it doesn’t work.

;
if (!empty($_SESSION[“language”])) {
$lang = $_SESSION[“language”];
} elseif (!empty($_SESSION[“LANGUAGE”])) {
$lang = $_SESSION[“LANGUAGE”];
} else {
$lang = “ru”;
}
// Update list of languages when new language is added on Hestia or Filegator side
switch ($lang) {
case “es”:
$dist_config[“frontend_config”][“language”] = “spanish”;
break;
case “de”:
$dist_config[“frontend_config”][“language”] = “german”;
break;
case “id”:
$dist_config[“frontend_config”][“language”] = “indonesian”;
break;
case “tr”:
$dist_config[“frontend_config”][“language”] = “turkish”;
break;
case “lt”:
$dist_config[“frontend_config”][“language”] = “lithuanian”;
break;
case “pt”:
case “pt-pt”:
$dist_config[“frontend_config”][“language”] = “portuguese”;
break;
case “nl”:
$dist_config[“frontend_config”][“language”] = “dutch”;
break;
case “zh”:
case “zh-cn”:
case “zh-tw”:
$dist_config[“frontend_config”][“language”] = “chinese”;
break;
case “bg”:
$dist_config[“frontend_config”][“language”] = “bulgarian”;
break;
case “sr”:
$dist_config[“frontend_config”][“language”] = “serbian”;
break;
case “fr”:
$dist_config[“frontend_config”][“language”] = “french”;
break;
case “sk”:
$dist_config[“frontend_config”][“language”] = “slovak”;
break;
case “pl”:
$dist_config[“frontend_config”][“language”] = “polish”;
break;
case “it”:
$dist_config[“frontend_config”][“language”] = “italian”;
break;
case “ko”:
$dist_config[“frontend_config”][“language”] = “korean”;
break;
case “cs”:
$dist_config[“frontend_config”][“language”] = “czech”;
break;
case “gl”:
$dist_config[“frontend_config”][“language”] = “galician”;
break;
case “ru”:
$dist_config[“frontend_config”][“language”] = “russian”;
break;
case “hu”:
$dist_config[“frontend_config”][“language”] = “hungarian”;
break;
case “sv”:
$dist_config[“frontend_config”][“language”] = “swedish”;
break;
case “ja”:
$dist_config[“frontend_config”][“language”] = “japanese”;
break;
case “sl”:
$dist_config[“frontend_config”][“language”] = “slovenian”;
break;
case “he”:
$dist_config[“frontend_config”][“language”] = “hebrew”;
break;
case “ro”:
$dist_config[“frontend_config”][“language”] = “romanian”;
break;
case “ar”:
$dist_config[“frontend_config”][“language”] = “arabic”;
break;
case “pt-br”:
$dist_config[“frontend_config”][“language”] = “portuguese_br”;
break;
case “fa”:
$dist_config[“frontend_config”][“language”] = “persian”;
break;
case “et”:
$dist_config[“frontend_config”][“language”] = “estonian”;
break;
default:
$dist_config[“frontend_config”][“language”] = “english”;
break;
}

I don’t know why you are editing configuration.php, if you want to change the language to russian, edit file /usr/local/hestia/web/fm/configuration_sample.php and replace

        'language' => 'english',

by

        'language' => 'russian',

Everything is installed but it doesn’t work. My panel version is 1.9

I didn’t install Hestia 1.9 yet so I can’t test it.