1 (edited by gab 2010-08-31 09:02:38)

Topic: Fresh install of iRedOS - phpmyadmin, iredadmin etc. all unavailable.

Hello there,

I'm usually an Ubuntu user, this is my first adventure with iRedOS (which I'm trying as iRedMail failed to work on my Ubuntu server - probably because it wasn't a fresh install - I was messing around with postfix before...)

Anyway - during system installation i filled in my hostname (myfancypolishdomain.pl)

[root@myfancypolishdomain conf.d]# hostname --fqdn
smok-wawelski.pl
[root@myfancypolishdomain conf.d]#       

as well as my virtual domain (myvirtuallithuaniandomain.lt)
After the installation finished I was able to log in to webmail (http://myvirtuallithuaniandomain.lt/mail) and I saw 2 emails coming from "root@localhost.localdomain". I didn't think it could be a problem until I read "iRedMail tips for mail server administrator" and I saw:

email addresses of postmaster and www - correctly - as *@myvirtuallithuaniandomain.lt

But all the web - based services...

WebMail(Roundcubemail):
    * URL:
        - http://localhost.localdomain/mail/
        - http://localhost.localdomain/webmail/
    * Login account:
        - Username: www@myvirtuallithuaniandomain.lt, password: Sup3r5eCr3T

phpLDAPadmin:
    * URL:
        - /var/www/phpldapadmin-1.2.0.5
        - https://localhost.localdomain/phpldapadmin/
        - https://localhost.localdomain/ldap/
    * Login account:
        - LDAP root account:
            + Username: cn=Manager,dc=myfancypolishdomain,dc=pl
            + Password: Sup3r5eCr3T
        - Mail admin:
            + Username: cn=vmailadmin,dc=myfancypolishdomain,dc=pl
            + Password: blablabla

phpMyAdmin:
    * Login account:
        - Username: root, password: Sup3r5eCr3T
        - Username: vmailadmin, password: blablabla
    * URL:
        - https://localhost.localdomain/phpmyadmin

Awstats:
    * Login account:
        - Username: postmaster@myvirtuallithuaniandomain.lt, password: Sup3r5eCr3T
    * URL:
        - https://localhost.localdomain/awstats/awstats.pl
        - https://localhost.localdomain/awstats/awstats.pl?config=localhost.localdomain
        - https://localhost.localdomain/awstats/awstats.pl?config=mail
    
Official Web-based Admin Panel (iRedAdmin):
    * Version: 0.1.3
    * URL:
        - https://localhost.localdomain/iredadmin/
    * Login account:
        - Username: postmaster@myvirtuallithuaniandomain.lt, password: Sup3r5eCr3T
    * Settings:

        [iredadmin]
        dbn = mysql
        host = localhost
        port = 3306
        db = iredadmin
        user = iredadmin
        passwd = blablabla

        [ldap]
        uri = ldap://127.0.0.1:389/
        protocol_version = 3
        basedn = o=domains,dc=myfancypolishdomain,dc=pl
        domainadmin_dn = o=domainAdmins,dc=myfancypolishdomain,dc=pl
        bind_dn = cn=vmailadmin,dc=myfancypolishdomain,dc=pl
        bind_pw = blablabla

        [policyd]
        dbn = mysql
        host = localhost
        port = 3306
        db = policyd
        user = policyd
        passwd = blablabla

as you see - the are all supposedly hosted on localhost.localdomain.

I checked locally on localhost, localhost.localdomain, 127.0.0.1, eth0 IP, domain names, nothing.  - all of them - 404.

Can you please explain me where did it go wrong?
What should I fix?

P.S.
It's my second attempt. The first time haven't noticed the hostname dialog and I left is as blabla.iredmail.org or something - and that's where the addresses in this email were pointing me to.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Fresh install of iRedOS - phpmyadmin, iredadmin etc. all unavailable.

Can you please check apache error log in /var/log/httpd/error_log and /var/log/httpd/ssl_error_log first?

3

Re: Fresh install of iRedOS - phpmyadmin, iredadmin etc. all unavailable.

ZhangHuangbin wrote:

Can you please check apache error log in /var/log/httpd/error_log and /var/log/httpd/ssl_error_log first?

/var/log/httpd/error.log:

[Mon Aug 30 23:35:19 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Aug 30 23:35:19 2010] [notice] Digest: generating secret for digest authentication ...
[Mon Aug 30 23:35:19 2010] [notice] Digest: done
[Mon Aug 30 23:35:20 2010] [notice] Apache configured -- resuming normal operations
[Mon Aug 30 23:35:45 2010] [error] [client 111.222.333.444] Directory index forbidden by Options directive: /var/www/html/
[Mon Aug 30 23:35:48 2010] [error] [client 111.222.333.444] File does not exist: /var/www/html/favicon.ico
[Mon Aug 30 23:35:48 2010] [error] [client 111.222.333.444] File does not exist: /var/www/html/favicon.ico
[Mon Aug 30 23:35:57 2010] [error] [client 111.222.333.444] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 00:06:06 2010] [notice] caught SIGTERM, shutting down
[Tue Aug 31 00:08:05 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 31 00:08:05 2010] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 31 00:08:05 2010] [notice] Digest: done
[Tue Aug 31 00:08:07 2010] [notice] Apache configured -- resuming normal operations
[Tue Aug 31 00:12:01 2010] [error] [client 208.51.40.2] Attempt to serve directory: /var/www/html/
[Tue Aug 31 03:14:03 2010] [notice] caught SIGTERM, shutting down
[Tue Aug 31 03:16:00 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 31 03:16:00 2010] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 31 03:16:00 2010] [notice] Digest: done
[Tue Aug 31 03:16:02 2010] [notice] Apache configured -- resuming normal operations
[Tue Aug 31 03:28:19 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/iredadmin
[Tue Aug 31 03:28:19 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:28:22 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:28:25 2010] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Tue Aug 31 03:28:33 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/awstats
[Tue Aug 31 03:28:39 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/awstats
[Tue Aug 31 03:28:53 2010] [error] [client 111.222.333.444] Directory index forbidden by Options directive: /var/www/html/
[Tue Aug 31 03:28:54 2010] [error] [client 111.222.333.444] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:28:57 2010] [error] [client 111.222.333.444] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:33:57 2010] [error] [client 111.222.333.444] File does not exist: /var/www/html/phpmyadmin
[Tue Aug 31 03:34:11 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/phpmyadmin
[Tue Aug 31 03:34:11 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:34:14 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:53:17 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/iredadmin
[Tue Aug 31 03:54:10 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/iredadmin
[Tue Aug 31 03:54:10 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:54:13 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:54:26 2010] [error] [client 192.168.1.252] File does not exist: /var/www/html/iredadmin
[Tue Aug 31 03:54:26 2010] [error] [client 192.168.1.252] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 03:54:29 2010] [error] [client 192.168.1.252] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 04:03:40 2010] [notice] caught SIGTERM, shutting down
[Tue Aug 31 13:10:15 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 31 13:10:15 2010] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 31 13:10:15 2010] [notice] Digest: done
[Tue Aug 31 13:10:17 2010] [notice] Apache configured -- resuming normal operations
[Tue Aug 31 13:13:18 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/iredadmin
[Tue Aug 31 13:13:21 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Tue Aug 31 13:13:28 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/phpmyadmin
[Tue Aug 31 13:13:31 2010] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico

/var/log/httpd/ssl_error.log

[Mon Aug 30 23:35:19 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Aug 30 23:35:19 2010] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Mon Aug 30 23:35:20 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Aug 30 23:35:20 2010] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Tue Aug 31 00:08:05 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 31 00:08:05 2010] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Tue Aug 31 00:08:07 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 31 00:08:07 2010] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Tue Aug 31 03:16:00 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 31 03:16:00 2010] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Tue Aug 31 03:16:02 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 31 03:16:02 2010] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Tue Aug 31 13:10:15 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 31 13:10:15 2010] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Tue Aug 31 13:10:17 2010] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 31 13:10:17 2010] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?

4

Re: Fresh install of iRedOS - phpmyadmin, iredadmin etc. all unavailable.

[Mon Aug 30 23:35:45 2010] [error] [client 111.222.333.444] Directory index forbidden by Options directive: /var/www/html/

Can you please show me the output of command:

# ls /var/www/
# ls /var/www/html/

Seems your iRedMail was not installed successfully.

5

Re: Fresh install of iRedOS - phpmyadmin, iredadmin etc. all unavailable.

ls -all /var/www

drwxr-xr-x 11 root root 4096 sie 30 23:32 .
drwxr-xr-x 23 root root 4096 sie 30 23:51 ..
drwxr-xr-x  9 root root 4096 sie 31 04:01 awstats
drwxr-xr-x  2 root root 4096 kwi  5 00:23 cgi-bin
drwxr-xr-x  3 root root 4096 sie 30 23:31 error
drwxr-xr-x  2 root root 4096 sie 30 23:32 html
drwxr-xr-x  3 root root 4096 sie 30 23:32 icons
lrwxrwxrwx  1 root root   24 sie 30 23:32 iredadmin -> /var/www/iRedAdmin-0.1.3
drwxr-xr-x  8 root root 4096 sie 30 23:32 iRedAdmin-0.1.3
lrwxrwxrwx  1 root root   29 sie 30 23:32 phpldapadmin -> /var/www/phpldapadmin-1.2.0.5
drwxr-xr-x 11 root root 4096 sty 30  2010 phpldapadmin-1.2.0.5
lrwxrwxrwx  1 root root   41 sie 30 23:32 phpmyadmin -> /var/www/phpMyAdmin-2.11.10-all-languages
drwxr-xr-x 10 root root 4096 sie 30 23:32 phpMyAdmin-2.11.10-all-languages
lrwxrwxrwx  1 root root   28 sie 30 23:32 roundcubemail -> /var/www/roundcubemail-0.3.1
drwxr-xr-x 11 root root 4096 paź 31  2009 roundcubemail-0.3.1

ls -all /var/www/html

razem 24
drwxr-xr-x  2 root root 4096 sie 30 23:32 .
drwxr-xr-x 11 root root 4096 sie 30 23:32 ..
-rw-r--r--  1 root root  213 sie 30 23:32 robots.txt

6

Re: Fresh install of iRedOS - phpmyadmin, iredadmin etc. all unavailable.

You have all components installed, I'm confused why it happened, no idea yet. sad

7

Re: Fresh install of iRedOS - phpmyadmin, iredadmin etc. all unavailable.

Strange thing is - on my second laptop it worked like a charm...

So you may consider it unnecessary to solve (although I'm still curious what happened and I don't reformat that machine yet - for further investigation...)