1

Topic: 404, DB connection issues on fresh Ubuntu 12.04

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Linux/BSD distribution name and version: Ubuntu 12.04 LTS
- Related log if you're reporting an issue:
====

First thanks for creating something so complicated incredibly easier.

I have a VPS at linode, I deployed an absolute fresh installation of Ubuntu 12.04. The installation process went on smooth.

All the relavant pages give 404. The url itself says "It Works" like the fresh apache webserver

http://your_server/mail/ (or /webmail, /roundcube)       
iRedAdmin (admin panel)    httpS://your_server/iredadmin/        
phpMyAdmin    httpS://your_server/phpmyadmin/        
phpLDAPadmin    httpS://your_server/phpldapadmin/        
Awstats    httpS://your_server/awstats/awstats.pl?config=web (or ?config=smtp)

Steps I followed:

1) As per stackexchange (http://stackoverflow.com/questions/1167 … -in-ubuntu), I changed roundcubemail.conf file.
2) Restarted the server which gave
Syntax error on line 26 of /etc/apache2/conf.d/awstats.conf:
Invalid command 'AuthMySQL', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!
3) Fixed the error by apt-get install libapache2-mod-auth-mysql
4) restarted apache successfully
5) My url now lands on roundcube page but it says
DATABASE ERROR: CONNECTION FAILED!


I am giving up hope on redmail. Its a complete fresh installation of ubuntu 12.04. What exactly is going on ? I'll truly appreciate some help .

Thanks in advance

2

Re: 404, DB connection issues on fresh Ubuntu 12.04

sami1255 wrote:

All the relavant pages give 404. The url itself says "It Works" like the fresh apache webserver

What's the error in Apache log file (/var/log/apache2/*)?

sami1255 wrote:

DATABASE ERROR: CONNECTION FAILED!

Please check Roundcube config file: /usr/share/apache2/roundcubemail/db.inc.php, make sure you have correct SQL server address, username, password set in parameter $rcmail_config['db_dsnw']. It's a good idea to verify them with MySQL/PGSQL command line tool first.