Tutorial help configuration files

Discussion in 'HOWTO-Related Questions' started by Tony321, Oct 1, 2018.

  1. Tony321

    Tony321 New Member

    Last edited: Oct 1, 2018
    Frankenstein likes this.
  2. Frankenstein

    Frankenstein Member

    I just dont know clearly what u mean but the main configs of phpmyadmin (if installed with apt-get install) in /etc/phpmyadmin.config.inc.php

    The settings for the web-application is on /usr/share/phpmyadmin/config.sample.inc.php if u do not changes anything. If yes perhaps on /usr/share/phpmyadmin/config.inc.php
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Nginx directives field of a website in ISPConfig (see options tab of the site).
     
  4. Tony321

    Tony321 New Member

    Thanks for the reply.

    I mean where do I put the below code for example as it says add them to the phpmyadmin and squirrel configuration:

    If you use https instead of http for your vhost, you should add the line fastcgi_param HTTPS on; to your phpMyAdmin configuration like this:

    location /phpmyadmin {
    root /usr/share/;
    index index.php index.html index.htm;
    location ~ ^/phpmyadmin/(.+\.php)$ {
    try_files $uri =404;
    root /usr/share/;
    fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
    fastcgi_param HTTPS on; # <-- add this line
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $request_filename;
    include /etc/nginx/fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 256 4k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    fastcgi_intercept_errors on;
    }
    location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
    root /usr/share/;
    }
    }
    location /phpMyAdmin {
    rewrite ^/* /phpmyadmin last;
    }


    And this:
    If you use https instead of http for your vhost, you should add the line fastcgi_param HTTPS on; to your SquirrelMail configuration like this:
    location /roundcube {
    root /usr/share/;
    index index.php index.html index.htm;
    location ~ ^/roundcube/(.+\.php)$ {
    try_files $uri =404;
    root /usr/share/;
    fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
    fastcgi_param HTTPS on; # <-- add this line
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $request_filename;
    include /etc/nginx/fastcgi_params;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 256 4k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    fastcgi_intercept_errors on;
    }
    location ~* ^/roundcube/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
    root /usr/share/;
    }
    }
    location /webmail {
    rewrite ^/* /roundcube last;
    }


    Does it mean in the options tab in ISPconfig for each website or otherwise?
     
    Last edited: Oct 1, 2018
  5. Tony321

    Tony321 New Member

    I did this already, I know of the options tab but am speaking of the code that I replied to Frankestein about.

    The tutorial states to add the code to PHPmyadmin and squirrel etc in the configuration files but no idea where these files are located.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The tutorial states "To do this, paste the following into the nginx Directives field on the Options tab of the web site in ISPConfig"
     
    Frankenstein likes this.
  7. Tony321

    Tony321 New Member

    Ok Till, just to be clear all this code needs to be in each website options tab along with all the other configuration code etc?

    Thanks in advance for clarifying.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. Tony321

    Tony321 New Member

    Right, I want to use the default way to access those urls, the main point I want to follow those parts of the tutorial is to enable the https for control panel, phpmyadmin and webmail because I am struggling with that.
     

Share This Page