Bug 13056 - roundcubemail web installer does not work for configuring roundcube
Summary: roundcubemail web installer does not work for configuring roundcube
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Spuhler
QA Contact:
URL:
Whiteboard: Needs Info
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 08:38 CET by Remco Rijnders
Modified: 2015-11-10 17:26 CET (History)
2 users (show)

See Also:
Source RPM: roundcubemail-0.9.5-1.mga4.src.rpm
CVE:
Status comment:


Attachments

Description Remco Rijnders 2014-03-20 08:38:36 CET
Description of problem:
After installing the package, I tried to configure roundcubemail by pointing my browser to: http://localhost/roundcubemail/installer/

Filling out the prompts on that page, and upon proceeding to the next page I get the following errors:

main.inc.php (download)
[Warning: could not read the config template file]

db.inc.php (download)
[Warning: could not read the config template file]



Reproducible: 

Steps to Reproduce:
Remco Rijnders 2014-04-11 11:15:58 CEST

CC: (none) => remco

Remco Rijnders 2014-04-11 11:16:52 CEST

Assignee: mageia => thomas

Comment 1 Thomas Spuhler 2014-04-12 01:45:21 CEST
When you installed roundcubemail-0.9.5 you got the following message:
configuration/upgrade
-------
Use the GUI to do the configuration/upgrade:
RoundCube provides an installer which can help you to do all
the installation/upgrade. The feature is disabled by default for
security reasons but you can enable it in 'main.inc.php' by
setting the 'enable_installer' variable to 'true'.
Once done, browse http://server/roundcubemail/installer

Use the CLI to do the configuration/upgrade:
You will need to edit %{_sysconfdir}/roundcubemail/main.inc.php and
%{_sysconfdir}/roundcubemail/db.inc.php appropriately for your site before you
can use Roundcube. You must at least configure an appropriate mail
server and port in main.inc.php, and change the
$rcmail_config['des_key'] setting. In db.inc.php you must configure
an appropriate database location and user; in the most simple
configuration, you would create a new user and database both named
'roundcubemail' on a MySQL server running on the same machine, give
the roundcubemail user full read/write access to the roundcubemail
database, and set db.inc.php appropriately.

Information:
- you can drop all of the tables and use the '*.initial.sql' file
to fully recreate the database.
- If any database change is needed, go to %{_datadir}/roundcubemail/SQL
and use '*.update.sql' where '*' is your database backend type.


Did you follow these instructions, especially did you enable the installer?

Status: NEW => ASSIGNED

Thomas Spuhler 2014-07-20 00:18:53 CEST

Whiteboard: (none) => Needs Info

Comment 2 Thomas Spuhler 2014-09-06 00:04:14 CEST
The last activity is now close to 5 month old and no replay received.
I am going to close this as invalid. Please reopen it again if it's still valid.

Status: ASSIGNED => RESOLVED
Resolution: (none) => INVALID

Comment 3 AL13N 2015-09-20 20:53:51 CEST
ok, i was able to reproduce in mga5...

the problem is that the 2nd step (create config) in the installer, actually is missing the template files... which i don't actually know where or what they are and where the installer expects them...

Status: RESOLVED => REOPENED
CC: (none) => alien
Version: 4 => 5
Resolution: INVALID => (none)

Comment 4 AL13N 2015-09-20 21:16:19 CEST
apparently the config constant is being overwritten somewhere and becomes /usr/share/roundcubemail/config instead of /etc/roundcubemail ... probably due to packaging somewhere...
Comment 5 AL13N 2015-09-20 21:17:08 CEST
i added a symlink to be able to configure it
Comment 6 AL13N 2015-09-20 21:38:34 CEST
test page for installer shows:

Warning: file(/usr/share/roundcubemail/SQL/mysql.initial.sql): failed to open stream: No such file or directory in /usr/share/roundcubemail/installer/rcube_install.php on line 397

which is because the files are moved into doc...
Comment 7 Thomas Spuhler 2015-10-14 18:10:28 CEST
AL13N
This bug is for mga4. I am thinking about closing it, and open a new bug report.
mga5 has a very different version (1.0.6) and the installer has been removed.
Comment 8 AL13N 2015-10-14 20:35:59 CEST
i have 1.0.6 in mga5 and i had this issue with installer... it wasn't removed, it just wasn't set by default, but there was no default config either... so...

how would you do this? the installer is still kind of required, no?
Comment 9 Thomas Spuhler 2015-10-15 01:05:25 CEST
(In reply to AL13N from comment #8)
> i have 1.0.6 in mga5 and i had this issue with installer... it wasn't
> removed, it just wasn't set by default, but there was no default config
> either... so...
> 
> how would you do this? the installer is still kind of required, no?

Please, show me where it is in >= vers.1.0.0
Comment 10 Thomas Spuhler 2015-11-06 18:52:51 CET
The installer was removed when upgrading to 1.0.0, REV. 613094
I don't remember the reason, but the spec was adapted from the developers.
AL13N I can add it again, if you need it.
Comment 11 Thomas Spuhler 2015-11-10 17:26:22 CET
I think the installer was removed because it's a security issue. After installing, it has to be removed and there is no guarantee this will be done.
So I am going to close it as invalid.
If someone needs it, it would be easy for him to download the srpm, make the small change in the spec file and rebuild the package.

Status: REOPENED => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.