📁
SKYSHELL MANAGER
PHP v8.1.34
Create
Create
Path:
root
/
home
/
terracebizon
/
public_html
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
config.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
38793.64 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: remoteip.py
from typing import Optional from defence360agent.subsys.panels.base import PanelException from defence360agent.utils import ( OsReleaseInfo, check_run_outside_sandbox, ) from defence360agent.subsys import web_server from im360.subsys.panels.base import RemoteIPInterface _INSTALL_YUM_CMD = ["yum", "-y", "install", "ea-apache24-mod_remoteip"] # underscore to dash _INSTALL_APT_CMD = ["apt", "-y", "install", "ea-apache24-mod-remoteip"] _NOT_SUPPORTED = "mod_remoteip is supported with EasyApache 4 only" class RemoteIP(RemoteIPInterface): async def remoteip_activated(self) -> bool: return await self._is_loaded_to_apache() async def remoteip_install(self) -> Optional[str]: # type: ignore if not web_server.is_EA4_available(): raise PanelException(_NOT_SUPPORTED) # DEF-41613: package install fires RPM/apt scriptlets whose LSM # transition on exec is blocked by the agent unit's NNP. if OsReleaseInfo.id_like() & OsReleaseInfo.DEBIAN: await check_run_outside_sandbox(_INSTALL_APT_CMD) else: await check_run_outside_sandbox(_INSTALL_YUM_CMD)
Save