Jump to content
Froxlor Forum
  • 0

Nginx + PHP5-FPM, Pma als SubApp. NachLogin redirect nach root index.php


MeinerEiner

Question

Hallo,

 

ich habe folgendes Problem, Wenn ich PMA als symLink im Froxlor Root-Verzeichnis platziere um mir die PHP-FPM Konfig zu sparen, kann ich auch soweit www.domain.tld/pma aufrufen. Mache ich jetzt ein login dann werde ich auf das Froxlor-Panel, also auf www.domain.tld/index.php umgeleitet.

 

Das gleiche Spiel ist auch wenn ich pma als zus?tzliche Root mit PHP-FPM-Konfig hinzuf?ge.

 

Stehe mal wieder auf dem Schlauch und w?re f?r einen Schubs dankbar  :rolleyes:

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

Hallo,

 

leider nein. Vielleicht gebe ich mehr Infos. Pma liegt in /var/www/htdocs/tools paralell zu froxlor (/var/www/htdocs/froxlor), diesmal nicht als Symlink.

 

- phpMyAdmin phpMyAdmin-4.3.9

- Roundcube und MostaFTP klappen einwandfrei 

 

In die Ports-Config hab ich folgendes eingef?gt:

 

  # PhpMyAdmin
       location /pma {
              root /var/www/htdocs/tools;
              index index.php index.html index.htm;
              location ~ ^/pma/(.+\.php)$ {
                     include /etc/nginx/froxlor-php5-fpm-settings.conf;
              }
       }
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
try_files $fastcgi_script_name =404;
fastcgi_param HTTPS on;
fastcgi_pass unix:/var/run/nginx/froxlor.panel-isp-01.domain.tld-php-fpm.socket;
fastcgi_index index.php;

Seite ist soweit erreichbar. Nur der Login wird wieder mal auf domain.tld umgeleitet...

 

Auch wenn ich es direct unter die Froxlor Root kopiere, dann bleibt immer noch der Redirect. Ich sehe das ein http-Post auf pma/index.php geht und dann wird aber index.php ausgeliefert.

Link to comment
Share on other sites

Geht es denn wenn du phpMyAdmin einfach mit in das Froxlor-Docroot packst. Also /var/www/htdocs/froxlor/pma/ - Ich weiss halt nicht wie nginx da bei so rum-inkluderei reagiert und selbst nachbauen und testen will ich das auch gerade nicht unbedingt. Am einfachsten ist es eigentlich, du installierst phpMyAdmin in ein Kunden-Docroot - so machen es eigentlich die meisten.

Link to comment
Share on other sites

- pma in Kundenweb installiert

 

Dann kann er doch garnich zu froxlor redirecten...da muss was anderes nicht stimmen. Pack PMA bitte in ein Kunden-Docroot und nopaste dann die generierten Configs uns eine Fehlermeldung dazu bitte

Link to comment
Share on other sites

Und hier die Config aus dem Customer Web mit 4.3.10:

 

<?php
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 4.3.10 setup script
 * Date: Mon, 23 Feb 2015 13:46:13 +0100
 */


/* Servers configuration */
$i = 0;


/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'isp-01.domain.tld';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = true;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'secret';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';


/* End of servers configuration */


$cfg['blowfish_secret'] = 'secret';
$cfg['UploadDir'] = '/var/customers/tmp/froxlor.panel/';
$cfg['SaveDir'] = '/var/customers/tmp/froxlor.panel/';
$cfg['ForceSSL'] = true;
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
//$cfg['PmaAbsoluteUri'] = 'https://www.domain.tld/pma';
?>

Http Log Auszug:

 

xxx.xxx.xxx.xxx - - [23/Feb/2015:13:49:12 +0100] "POST /pma/index.php HTTP/1.1" 302 5 "https://www.domain.tld/pma/" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
xxx.xxx.xxx.xxx - - [23/Feb/2015:13:49:12 +0100] "GET /index.php?lang=en&collation_connection=utf8mb4_unicode_ci&token=2745351d6803fe08c7c6070ccaeff798 HTTP/1.1" 404 141 "https://www.domain.tld/pma/" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...