Installing Adminer on a server with ispmanager 6
Adminer web application can be used to manage PostgreSQL within the ispmanager 6 control panel.
Adminer is a PHP script, which means it does not require the installation of any additional packages; simply download the latest version of the script and place it on the website of your choice.
For the script to function, enable the pgsql and pdo_pgsql extensions in the PHP settings for the website where the script is hosted.
You can provide access to the Adminer web interface via a button that will appear in the Main menu.
To do this, create and configure the necessary files for the control panel. Create the following files:
touch /usr/local/mgr5/etc/xml/ispmgr_mod_adminer.xml
touch /usr/local/mgr5/addon/myaddon.sh
Add the following configuration to the file /usr/local/mgr5/etc/xml/ispmgr_mod_pg.xml:
<?xml version="1.0" encoding="UTF-8"?>
<mgrdata>
<mainmenu level="user+">
<modernmenu>
<node name="my_adminer" customicon="/manimg/icons/pg.svg">
<node name="open_adminer" function="https://<имя_сайта>/adminer.php" />
</node>
</modernmenu>
</mainmenu>
<handler name="myaddon.sh" type="xml">
<func name="open_adminer" />
</handler>
<lang name="en">
<messages name="desktop">
<msg name="modernmenu_my_adminer">PostgreSQL</msg>
<msg name="modernmenu_open_adminer">Adminer</msg>
</messages>
</lang>
</mgrdata>
For the function value, specify the website where you have placed the Adminer file.
Add a single line to the file /usr/local/mgr5/addon/myaddon.sh:
#!/bin/bash
Restart the panel:
/usr/local/mgr5/sbin/mgrctl -m ispmgr -R