Squirrelmail and Phpmyadmin download index.php

Discussion in 'Installation/Configuration' started by Ripeed, Feb 3, 2014.

  1. Ripeed

    Ripeed Member

    Hi to all, I just install new server with Primary and Secondary DNS on Debian7 with ISPconfig 3.0.5.3 by the tutorial.

    ISPconfig admin pannel works great, I can log to it. But when I open mydomain.tld/phpmyadmin or /webmail I get to download file.

    It is something wrong with php. Everythink is set by the tutor.

    Thanks for any advice!

     
    Last edited: Feb 3, 2014
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    apt-get install libapache2-mod-php5
     
  3. Ripeed

    Ripeed Member

    Thanks Till, but I already run that... already the newest version. :confused:
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then it might be that mod_php is not loaded in apache. Try:

    a2enmod php5

    and then restart apache. if this wont help, try a:

    apt-get install --reinstall libapache2-mod-php5
     
  5. Ripeed

    Ripeed Member

    Its still the same. This is what I did:

    Code:
    [email protected]:~# a2enmod php5
    Module php5 already enabled
    [email protected]:~# /etc/init.d/apache2 restart
    [....] Restarting web server: apache2[Mon Feb 03 09:24:00 2014] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Mon Feb 03 09:24:00 2014] [warn] NameVirtualHost *:80 has no VirtualHosts
     ... waiting [Mon Feb 03 09:24:01 2014] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Mon Feb 03 09:24:01 2014] [warn] NameVirtualHost *:80 has no VirtualHosts
    . ok 
    [email protected]:~# apt-get install --reinstall libapache2-mod-php5
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
    Need to get 0 B/2,666 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    (Reading database ... 57820 files and directories currently installed.)
    Preparing to replace libapache2-mod-php5 5.4.4-14+deb7u7 (using .../libapache2-mod-php5_5.4.4-14+deb7u7_amd64.deb) ...
    Unpacking replacement libapache2-mod-php5 ...
    Setting up libapache2-mod-php5 (5.4.4-14+deb7u7) ...
    [....] Reloading web server config: apache2[Mon Feb 03 09:24:34 2014] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Mon Feb 03 09:24:34 2014] [warn] NameVirtualHost *:80 has no VirtualHosts
    . ok 
    [email protected]:~# /etc/init.d/apache2 restart
    [....] Restarting web server: apache2[Mon Feb 03 09:25:00 2014] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Mon Feb 03 09:25:00 2014] [warn] NameVirtualHost *:80 has no VirtualHosts
     ... waiting [Mon Feb 03 09:25:01 2014] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Mon Feb 03 09:25:01 2014] [warn] NameVirtualHost *:80 has no VirtualHosts
    . ok 
    
    I have ISPconfig by tutor in DEBIAN 6. Is there any change in instalation on DEBIANv7?
     
    Last edited: Feb 3, 2014
  6. tahunasky

    tahunasky New Member

    I always download and install the latest version of phpmyadmin and put it in /opt

    Then I create my own apache config file:


    #/etc/apache2/conf.d/phpmyadmin.conf
    Alias /phpmyadmin /opt/phpMyAdmin-4.0.0
    Alias /phpMyAdmin /opt/phpMyAdmin-4.0.0
    <Directory /opt/phpMyAdmin-4.0.0>
    Options +FollowSymLinks
    Order allow,deny
    allow from all

    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    </Directory>

    then restart apache and try it by:

    domain.tld/phpmyadmin

    10.0.0.1/phpmyadmin
     
  7. Ripeed

    Ripeed Member

    If I create phpinfo.php in var/www/ then run in browser pc.mydomain.tld/phpinfo.php I get 500 error.

    In apache2.log is:

    Code:
    [Tue Feb 04 09:24:55 2014] [error] [client IP] SoftException in Application.cpp:350: UID of script "/var/www/phpinfo.php" is smaller than min_uid
    [Tue Feb 04 09:24:55 2014] [error] [client IP] Premature end of script headers: phpinfo.php
    
    I check rights of it... and its same like on my older working server. Will try to check PHP configuration...

    Any advice will be welcome.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Change the owner of the phpinfo.php file to the apache user (e.g. www-data on debian).
     
  9. Ripeed

    Ripeed Member

    I tryed
    Code:
    chown www-data:www-data phpinfo.php
    
    Its still the same... 500 error. Its very weird just do every step in tutorial and have this problem.

    I tryed reinstall PHP5, apache2, libapache2-mod-php5. ---- no change
    I put into apache2.conf:
    Code:
    LoadModule php5_module modules/libphp5.so
    AddType application/x-httpd-php .php
    
    After restart: module php5_module is already loaded, skipping...
     
    Last edited: Feb 4, 2014
  10. Ripeed

    Ripeed Member

    Now have one chage:

    When I changed in suphp.conf:
    Code:
    min_uid=0
    
    min_gid=0
    
    Then infophp.php starts to work. But /webmail and /phpmyadmin still not work. (give me file to download)

    :( ... any I think that uid and gid I cant left on 0.
     
  11. Ripeed

    Ripeed Member

    Hey Till, my mistake. I just install by old tutor for Debian 6. Now I just looking on This tutor for DEBIAN 7.

    I change config by tutor of suPHP and now it works.

    Will reinstall is by your new tutor.
     
  12. zartus

    zartus New Member

    Thanks very much. I spent whole day to solve this problem.
     

Share This Page