ISPmanager 6 Lite, Pro, Host Documentation

Configuring links to email client, phpMyAdmin, phpPgAdmin

ISPSystem

The link to the external function is formed using the internal mechanisms of the control panel. To manage the link formation process, use the path parameters of ISPmanager 6 Lite (Pro, Host) panel configuration file:

  • path webmail-redirect — the mail client template link. The default value: http://$site/roundcube/
  • path phpmyadmin-redirect — phpMyAdmin template link. The default value: http://$site/phpmyadmin/
  • path phppgadmin-redirect — phpPgAdmin template link. The default value: http://$site/phppgadmin/

Note

  1. If you use an nginx proxy, the path parameter will be ignored. path
  2. When you go to phpmyadmin, the link contains the IP address of the control panel. If you have restricted access to phpmyadmin (for example, through the .htaccess file or the fail2ban service), add the control panel's IP address to the list of allowed ones. 

Path templates can use the $site macro, which expands to the domain from which the transition is made.

If you changed the value of the parameter after the $site macro, also change the web server configuration file. For example, you changed the phpmyadmin-redirect parameter from http://$site/phpmyadmin to http://$site/phpmyadmin_new. The control panel uses nginx as a web server. For the web server to use the changed parameter, add this path in the location section of the /etc/nginx/vhosts-includes/phpmyadmin.conf configuration file:

Example of the configuration file
location /phpmyadmin_new {
	alias /usr/share/phpMyAdmin;
	index index.php;
}
location ~* ^/phpmyadmin_new/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
	alias /usr/share/phpMyAdmin/$1;
	error_page 404 @apache;
}
location ~ ^/phpmyadmin_new/(.+\.php)$ {
	alias /usr/share/phpMyAdmin/$1;
	fastcgi_pass unix:/var/run/php-fpm.apache.sock;
	fastcgi_index index.php;
	fastcgi_param SCRIPT_FILENAME $request_filename;
	include fastcgi_params;
	error_page 502 = @apache;
	error_page 404 = @apache;
}
location @apache {
	error_log /dev/null crit;
	proxy_pass http://127.0.0.1:8080;
	proxy_redirect http://127.0.0.1:8080 /;
	proxy_set_header Host $host;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header X-Forwarded-Proto $scheme;
}

location ^~ /phpmyadmin_new/setup {
	deny all;
}
Thank you for your feedback!
Was the article useful?
Tell us why not:

it does not match the title

it was hard to understand

I didn't find the answer

recommendations from the article did not help

other

Tell us what you didn't like in the article: