phpmyadmin+roundcube ghost with php-fpm

Discussion in 'ISPConfig 3 Priority Support' started by chico11mbit, Aug 1, 2016.

  1. chico11mbit

    chico11mbit Member HowtoForge Supporter

    Hi,
    i installed phpmydamin and roundcube with perfect server ipsconfig3. all is working fine.
    i use the aliases /datenbank für phpmyadmin and /mail-relay for roundcube.

    When i use fastcgi for the websites, the links www.domain.com/datenbank and www.domain.com/mailrelay works fine.
    but when i switch to php-fpm. the links are broken and the error.log from the page shows:
    Code:
    AH01071: Got error 'Primary script unknown\n'
    what i have to change to run these links with php-fpm?

    best regards
    chico

    p.s. in the headline i mean not "ghost" but"vhost" :)
     
    Last edited: Aug 1, 2016
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What do you mean with links? Normally phpmyadmin and roundcube are accessed trough a global alias in the apache config. And whch Linux distribution do you use?
     
  3. chico11mbit

    chico11mbit Member HowtoForge Supporter

    i use ubuntu 14.04LTS with apache2. And sorry for misunderstanding. I mean the global alias, not "links". It works when fast-cgi is used for the domain, but not with php-fpm. the PHP version is 5.6.10.
     
    Last edited: Aug 1, 2016
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look into the phpmyadmin and roundcube apache config files, they should contain:

    SetHandler application/x-httpd-php

    inside the <Directory ......> stanza for the install directory of the application. If this is missing, try to add it and restart apache.
     
  5. chico11mbit

    chico11mbit Member HowtoForge Supporter

    I don't know where to pu it in. Give me a öittle hint plz. Here is my phpmyadmin conf file ( /etc/apache2/conf-enabled/phpmyadmin.conf)
    Code:
    # phpMyAdmin default Apache configuration
    
    Alias /datenbank /usr/share/phpmyadmin
    
    <Directory /usr/share/phpmyadmin>
            Options FollowSymLinks
            DirectoryIndex index.php
            AllowOverride All
    
            <IfModule mod_php5.c>
                    AddType application/x-httpd-php .php
    
                    php_flag magic_quotes_gpc Off
                    php_flag track_vars On
                    php_flag register_globals Off
                    php_admin_flag allow_url_fopen Off
                    php_value include_path .
                    php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
                    php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/
            </IfModule>
    
    </Directory>
    
    # Authorize for setup
    <Directory /usr/share/phpmyadmin/setup>
        <IfModule mod_authn_file.c>
        AuthType Basic
        AuthName "phpMyAdmin Setup"
        AuthUserFile /etc/phpmyadmin/htpasswd.setup
        </IfModule>
        Require valid-user
    </Directory>
    
    # Disallow web access to directories that don't need it
    <Directory /usr/share/phpmyadmin/libraries>
        Order Deny,Allow
        Deny from All
    </Directory>
    <Directory /usr/share/phpmyadmin/setup/lib>
        Order Deny,Allow
        Deny from All
    </Directory>
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Add it after the "AddType application/x-httpd-php .php" line.
     
  7. chico11mbit

    chico11mbit Member HowtoForge Supporter

    Sorry, not working... and on fast-cgi sites then the design is broken (seems no CSS)

    Here are my changes...

     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    I'll try to test it here on my server to see if I can reproduce the issue.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    I have found a workaround for this issue, the problem has been solved in the git-stable branch, so it should be working as soon as you update to ISPConfig 3.1 when it gets released.
     
  10. chico11mbit

    chico11mbit Member HowtoForge Supporter

    thx a lot. i thought it is the fault of my installation. Hoping now for 3.1...
     

Share This Page