Trying to access ISPConfig via browser, getting "Index of /" and a folder list.

Discussion in 'Installation/Configuration' started by Watchman, Apr 26, 2014.

  1. Watchman

    Watchman New Member

    Hello all,

    Using:
    Ubuntu Server 14.04 LTS
    ISPConfig 3.0.5.4p1

    I did the installation of ISPConfig3 and when I tried to access the login screen via a browser I get the following:
    the heading is "Index of /" with a list of folders:
    apps/
    html/
    ispconfig/
    webalizer/

    Here are the results from the ISPConfig test script:

    Code:
    ##### SERVER #####
    IP-address (as per hostname): [localhost]
    IP-address(es) (as per ifconfig): ***.***.***.***
    [WARN] ip addresses from hostname differ from ifconfig output. Please check your
     ip settings.
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 5.5.9-1ubuntu4
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 2096)
    [INFO] I found the following mail server(s):
            Postfix (PID 1974)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 964)
    [INFO] I found the following imap server(s):
            Dovecot (PID 964)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 1998)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:21           (1998/pure-ftpd)
    ***.***.***.***:53              (1129/named)
    [localhost]:53          (1129/named)
    [anywhere]:22           (962/sshd)
    [anywhere]:25           (1974/master)
    [localhost]:953         (1129/named)
    [anywhere]:993          (964/dovecot)
    [anywhere]:995          (964/dovecot)
    [localhost]:10024               (1166/amavisd-new)
    [localhost]:10025               (1974/master)
    [anywhere]:3306         (1018/mysqld)
    [anywhere]:587          (1974/master)
    [anywhere]:110          (964/dovecot)
    [anywhere]:143          (964/dovecot)
    [anywhere]:465          (1974/master)
    *:*:*:*::*:21           (1998/pure-ftpd)
    *:*:*:*::*:53           (1129/named)
    *:*:*:*::*:22           (962/sshd)
    *:*:*:*::*:25           (1974/master)
    *:*:*:*::*:953          (1129/named)
    *:*:*:*::*:443          (2096/apache2)
    *:*:*:*::*:993          (964/dovecot)
    *:*:*:*::*:995          (964/dovecot)
    *:*:*:*::*:587          (1974/master)
    [localhost]10           (964/dovecot)
    [localhost]43           (964/dovecot)
    *:*:*:*::*:8080         (2096/apache2)
    *:*:*:*::*:80           (2096/apache2)
    *:*:*:*::*:8081         (2096/apache2)
    *:*:*:*::*:465          (1974/master)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    fail2ban-dovecot-pop3imap  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports
     110,995,143,993
    fail2ban-pureftpd  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 21
    fail2ban-ssh  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain fail2ban-dovecot-pop3imap (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    Chain fail2ban-pureftpd (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    

    Thanks for the help
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Are you sure that you entered the correct url?
    The output seems to be from the default host that is often called when accessing http://12.34.56.78/
    ISPConfig is at http(s)://12.34.56.78:8080/ !
     
  3. Watchman

    Watchman New Member

    Hi Marius Cramer,

    Yes, that is the strange thing. I made sure that I entered the :8080 port after the ipaddress.

    And when I click on the ispconfig folder that is shown I get the php code not the login page.

    I even added this hotfix in apache2.conf:
    websites are displaying the contents of PHP files rather than running them as scripts hot fix.

    Code:
    AddType application/x-httpd-php .php
    
     
  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    It seems that your server is not correctly set up.
    Did you follow the "perfect server tutorial" from howtoforge to set up the server prior to installing ISPConfig?
     
  5. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Please paste your ls -l /etc/fail2ban/filter.d/

    Br//
    Srijan
     
  6. Watchman

    Watchman New Member

    Hi Marius Cramer and Srijan,

    Thank you both for your replies and help.
    I re-checked the perfect server tutorial and to my shame found that I was following the 12.04-lts tutorial and not the 14.04.

    So I started the installation from scratch and now everything is working.... sigh.

    Would have been interesting to see how we could have fixed this problem but time is not on my side.

    Once again thank you.
     

Share This Page