HOWTO: Webmail for Hmail, RoundCube, XAMPP

This section contains user-submitted tutorials.
Post Reply
armo
New user
New user
Posts: 29
Joined: 2011-11-04 21:39

HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by armo » 2011-11-11 08:14

Hi guys;
I lost a lot of time trying make this work with IIS, PHP, Mysql on windows boxes and hit my head against the wall more than once for nothing :( :( :( :( :( . I don't want you to go through the same torture, so here is the easy how to.

Prerequisits
1. Xampp USB lite, executable version downloadable http://www.apachefriends.org/en/xampp-windows.html
2. RoundCube webmail downloadable at http://roundcube.net/
3. 7zip, if you don't have it already downloadable at http://www.7-zip.org/

Installation
1. Install Xampp USB lite using the default settings. This will install PHP5, Apache web server and Mysql database version in C:\xampp
2. Browse to C:\xampp and create a shortcut for xampp-control.exe on your desktop
3. Launch xampp-control, click on service on top and check to run xampp control panel as a service, as well under start these modules choose both mysql and apache. Leave the rest of the fields as default, click ok. It will prompt you to install xampp as service, accept and check in your services applet, that the service xampp is set to automatic.
4. Launch your internet browser and enter localhost as address. This will take you to the xampp welcome page, choose your language.
5. Click the security link on the left, then click the link in the middle of the page that reads http://localhost/security/xamppsecurity.php
6. Here you must enter a new password for the root user then retype the new password. Leave the old password blank.
7. Using the xampp-control, restart mysql service.
8. Now navigate to http://localhost/phpmyadmin, enter root as username and the password that you just created.
9. Click on databases, create new database called roundcubemail. Then on the left, from the available databases, click the one you just created, click on privileges tab then click add a new user.
10. In the username field enter roundcube, host field enter localhost, choose a password for the user account and retype.
11. Under database for user, choose grant all privileges on database roundcubemail then click go on the bottom.
12. Click the home icon on the left top corner, choose the roundcubemail database, privileges tab and make sure that the user we just created is there.
13. Using 7zip, unzip the rouncube package, simply rename the folder as roundcube and copy it to C:\xampp\htdocs folder
14. Browse to C:\xampp\htdocs\roundcube\config folder, copy and rename db.inc.php.dist and main.inc.php.dist to db.inc.php and main.inc.php respectively within the same folder.
15. Open main.inc.php in notepad and make modifications as below
• $rcmail_config['default_host'] = 'localhost';
• $rcmail_config['smtp_server'] = 'localhost';
• $rcmail_config['smtp_user'] = '%u';
• $rcmail_config['smtp_pass'] = '%p';
• $rcmail_config['enable_installer'] = true;
Save the file.
16. Open db.inc.php in notepad and make modifications as below
$rcmail_config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcubemail';
This is the username and password of the database user that we created at step 9. Save the file.
17. Launch your internet browser and navigate to http://localhost/roundcube/installer
18. Make sure that there is nothing highlighted in Red and click next on the bottom of the page.
19. Make sure there is noting highlighted in red on the last page and run SMTP and IMAP connection tests. Remember you must use a valid user on the hmail server to run the test. Use username@domainname.xxx format for user credentials
These two steps will create the tables in your databse. Once done, delete the installer folder from the roundcube directory as well modify the rcmail_config['enable_installer'] variable in main.inc.php file to show false and save the file
20. Now navigate to C:\xampp\apache\conf directoy and open httpd.conf file in notepad.
21. Modify the DocumentRoot variable to point to "/xampp/htdocs/roundcube". This step is very important to secure the files and folders within xampp/htdocs directory.
22. At this point, launch the xampp-control and restart the apache service
23. Now navigate to C:\xampp\PHP folder and open the php.ini file in notepad. Make sure that file_uploads variable is on, as well the upload_max_filesize variable set to 20 MB (or whatever you want, as this will effect the size of email attachments). Save the file.
24. Launch your internet browser and navigate to http://localhost and voila..

:D :D :D :D :D :D :D

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by mattg » 2011-11-13 13:02

Thanks for sharing
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

armo
New user
New user
Posts: 29
Joined: 2011-11-04 21:39

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by armo » 2011-11-14 23:33

mattg wrote:Thanks for sharing
Welcome Matt. Anyone having troubles with this pm me.

djonik
New user
New user
Posts: 9
Joined: 2010-11-20 12:10
Location: Russia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by djonik » 2011-11-15 16:27

Can you make screenshots this web interface?

armo
New user
New user
Posts: 29
Joined: 2011-11-04 21:39

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by armo » 2011-11-15 16:50

djonik wrote:Can you make screenshots this web interface?
here you go
http://roundcube.net/screens

djonik
New user
New user
Posts: 9
Joined: 2010-11-20 12:10
Location: Russia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by djonik » 2011-11-17 13:28

Thank you. Very good!
Question: can i run xampp without apache on IIS 7.5?

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by dzekas » 2011-11-17 18:24

djonik wrote:Thank you. Very good!
Question: can i run xampp without apache on IIS 7.5?
Install PHP with microsoft web platform bundle. Add mysql server from mysql.com and setup your system to use PHPMyAdmin.

armo
New user
New user
Posts: 29
Joined: 2011-11-04 21:39

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by armo » 2011-11-17 18:43

djonik wrote:Thank you. Very good!
Question: can i run xampp without apache on IIS 7.5?
If you absolutely want to run it on IIS, then you will need to install and configure PHP on your IIS first, then install mysql and configure it.
Peice of advice, the whole article was put to avoid those headaches.

djonik
New user
New user
Posts: 9
Joined: 2010-11-20 12:10
Location: Russia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by djonik » 2011-11-17 18:46

armo wrote:
djonik wrote:Thank you. Very good!
Question: can i run xampp without apache on IIS 7.5?
If you absolutely want to run it on IIS, then you will need to install and configure PHP on your IIS first, then install mysql and configure it.
Peice of advice, the whole article was put to avoid those headaches.
Thank's. I'm thinking that apache with iis better.

djonik
New user
New user
Posts: 9
Joined: 2010-11-20 12:10
Location: Russia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by djonik » 2011-11-18 14:13

I make system on IIS 7.5 without apache. Nive working. I take mysql, php, phpMyAdmin, roundcubemail from xampp, add 2 sites (for roundcube and phpMyAdmin), add PHP FastCGIModule. All work. And without headaches.
Thank you author these HOWTO! It's me very help.

P.S. Sorry for my English.

armo
New user
New user
Posts: 29
Joined: 2011-11-04 21:39

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by armo » 2011-11-18 17:50

djonik wrote:I make system on IIS 7.5 without apache. Nive working. I take mysql, php, phpMyAdmin, roundcubemail from xampp, add 2 sites (for roundcube and phpMyAdmin), add PHP FastCGIModule. All work. And without headaches.
Thank you author these HOWTO! It's me very help.

P.S. Sorry for my English.

Glad to help someone.

bfsistemi
Normal user
Normal user
Posts: 32
Joined: 2011-12-05 10:16

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by bfsistemi » 2011-12-05 10:21

first of all sorry for my english...
fantastic guide...works very well...but I'have just a problem. It's works in lan but not extra lan.
I open the firewall ports, I nat the ip public with the ip server but if I try access from remote I cant visualize the login page.
I think that there are something parameters to change in apache...can you help me?

hi
Fabio

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by mattg » 2011-12-07 14:52

have you forwarded web ports (ie port 80) from your router to your web server?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by Pern » 2012-02-01 00:12

i have
hmailserver: v 5.3.3-b1846
xampp:
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
mysql: 5.1.41
roundcube: roundcubemail-0.7.1
i set up roundcube a few times now and im having really big problems, i am now the farthest i have gotten tho.

i setup per this post, and i can login and get the first page fine.

when going to the compose email i cant get the html compose box to show right its offset just even with the carbon copy line and takes up the rest of the page.
i cant send both icons are grayed out.
i cant do any editing, items are there in the menu but nothing happens.

i dont get any messages there are messages on the server too, and i can see them and send fine in outlook.

i havent a clue whats wrong, i been trying to battle this since version roundcube 0.40, ive re-installed many times, and i just did a fresh install today, i dont get it. ive done other installs and i know what im doing, it all seams fine, install is green across the board and send and test the two test items on the last page just fine.

thank you in advance for any help you may provide
Johnny - aka Pern
WebSite: dragonsworkshop.com ** Happy Holidays**

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by dzekas » 2012-02-01 00:25

Pern wrote:thank you in advance for any help you may provide
Could you change browser address line to http://roundcubeforum.net/

We can't diagnose your webmail issues or errors/filtering in your browser. Make sure that your browser is supported by roundcube. Make sure that you don't have problems with ad blocking plugins or javascript filters. Make sure that you don't have errors in browser's javascript console or webserver logs.

User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by Pern » 2012-02-01 00:35

i fixed it i realized that the .htaccess files are stopping xampp from working(they always have on my setup, renamed them it works fine now

stops beating my head on the wall now
Johnny - aka Pern
WebSite: dragonsworkshop.com ** Happy Holidays**

aschinnerl
New user
New user
Posts: 14
Joined: 2012-05-23 22:38

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by aschinnerl » 2012-05-31 23:04

Hi, i also tried to use iis with php an hmailserver with roundcube. Now i use xampp - iis isnt so fast with php as iis.

aschinnerl
New user
New user
Posts: 14
Joined: 2012-05-23 22:38

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by aschinnerl » 2012-06-01 23:51

Hi, thanks for that great how to, everything works fine.

I also configured in apache that https connections are alowed.

Now i have got another question, is it possible to access the xampp webpage for further configuration or webanalytics?
I think the problem is the documentroot in apache.

Thanks for help.

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by mattg » 2012-06-02 08:29

it should be - this tutorial is just a vanilla install
Check with the XAMPP documentation
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

aschinnerl
New user
New user
Posts: 14
Joined: 2012-05-23 22:38

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by aschinnerl » 2012-06-06 13:30

Hi, thanks for you help. Now i get it.

Now i have another question - when i enable auto-ban in hmailserver and i hit the password in roundcube 3 times wrony the ip 127.0.0.1 will banned.
After that no login is possible!?

Is it possible to chance that?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by ^DooM^ » 2012-06-06 13:47

aschinnerl wrote:Now i have another question - when i enable auto-ban in hmailserver and i hit the password in roundcube 3 times wrony the ip 127.0.0.1 will banned.
After that no login is possible!?

Is it possible to chance that?
Change the My Computer IP range to something over 25
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

aschinnerl
New user
New user
Posts: 14
Joined: 2012-05-23 22:38

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by aschinnerl » 2012-06-06 16:06

What do you mean - IP oder priority?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by ^DooM^ » 2012-06-06 16:12

Sorry yes, the Priority to be 25+
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

aschinnerl
New user
New user
Posts: 14
Joined: 2012-05-23 22:38

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by aschinnerl » 2012-06-06 22:12

^DooM^ wrote:Sorry yes, the Priority to be 25+
Thank you that worked. But the auto-ban feature doesnt work when i do that.
So its better to disable it or?

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by dzekas » 2012-06-06 22:22

aschinnerl wrote:
^DooM^ wrote:Sorry yes, the Priority to be 25+
Thank you that worked. But the auto-ban feature doesnt work when i do that.
So its better to disable it or?
Autoban works for any other range. It is useful outside of localhost. Webmails should implement autoban internally as only they know client IP address.

aschinnerl
New user
New user
Posts: 14
Joined: 2012-05-23 22:38

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by aschinnerl » 2012-06-06 23:38

The access to roundcube is only external, not internal. I think hmail only knows contact by roundcube from localhost.

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by dzekas » 2012-06-07 00:06

aschinnerl wrote:The access to roundcube is only external, not internal. I think hmail only knows contact by roundcube from localhost.
Your email server can be accessed without roundcube. Autoban helps there. If you want to prevent password attacks in roundcube, you need something that does it internally within roundcube. hmailserver can't be used for that. As you said all webmail connections are from one IP address.

amsbas
New user
New user
Posts: 10
Joined: 2011-06-25 08:18

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by amsbas » 2012-06-29 18:51

is work with windows 2008 Server R2 x64 ? I tried to do it step by step but in http://localhost step it's show nothing and XAMPP service dosen't start, olease help :cry:

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by dzekas » 2012-06-29 21:53

amsbas wrote:is work with windows 2008 Server R2 x64 ? I tried to do it step by step but in http://localhost step it's show nothing and XAMPP service dosen't start, olease help :cry:
Check if you have IIS services enabled? For example 'WWW service' can prevent default apache startup. XAMPP is not service.

User avatar
carywinton
New user
New user
Posts: 9
Joined: 2012-07-20 08:08
Location: Kentucky, USA
Contact:

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by carywinton » 2012-07-23 21:48

djonik wrote:I make system on IIS 7.5 without apache. Nive working. I take mysql, php, phpMyAdmin, roundcubemail from xampp, add 2 sites (for roundcube and phpMyAdmin), add PHP FastCGIModule. All work. And without headaches.
Thank you author these HOWTO! It's me very help.

P.S. Sorry for my English.
I would like to see how this was done if you care to write a tutorial and post it here. I am having a very hard time doing this on Windows 2003 Server, IIS6.0, MySql 5 and PHP 5.3,FastCGI, phpMyAdmin, Roundcube.

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by dzekas » 2012-07-23 22:51

carywinton wrote:I would like to see how this was done if you care to write a tutorial and post it here. I am having a very hard time doing this on Windows 2003 Server, IIS6.0, MySql 5 and PHP 5.3,FastCGI, phpMyAdmin, Roundcube.
1. Install Win2k3
2. Enable IIS in windows without SMTP service component
3. Add PHP (php.net or ms webplatform installer)
4. Install mysql (from mysql.com)
5. phpMyAdmin and Roundcube are only scripts. If you have working PHP setup, all you have to do is to configure them.

Which part is not working for you? Learn fishing instead of asking for fish. Your work depends on understanding how your setup works and not on ability to read guides written by others.

chornfeldt
New user
New user
Posts: 2
Joined: 2013-01-02 17:05

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by chornfeldt » 2013-01-02 17:15

I am running into an issue with this setup. First time I ran through it the SMTP config test and the IMAP config test worked like a charm. Got everything done then realized I forgot to initialize the db. Ran through the installer portion, initialized the db and now when I try to do the

SMTP test I get the error: SMTP send: NOT OK(Connection failed: Invalid response code received from server)

IMAP test I get the error: NOT OK(Login failed for root@xxx.xxxfrom 127.0.0.1. Empty startup greeting (localhost:143))


Why would they work the first time but not after I initialize the db?

Any help would be GREATLY appreciated.

chornfeldt
New user
New user
Posts: 2
Joined: 2013-01-02 17:05

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by chornfeldt » 2013-01-02 18:15

-- UPDATE --


Scrapped it all and ran through it one more time and was successful this time. Not sure where I went wrong, but thank you for posting this. Was a LIFESAVER

rponcec
New user
New user
Posts: 2
Joined: 2013-01-28 15:26

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by rponcec » 2013-01-28 15:29

I dont understand the number 19, I am stuck there,

19. Make sure there is noting highlighted in red on the last page and run SMTP and IMAP connection tests. Remember you must use a valid user on the hmail server to run the test. Use username@domainname.xxx format for user credentials

Server: localhost
Port: 25
User: the database user?
Password:

Sender What sender I have to put
Recipient and this aswell

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by mattg » 2013-01-28 23:41

On your hMailserver, lets say that you have a domain called 'mydomain.com', and then within that domain you have a user called 'person'

The username for step 19 will be 'person@mydomain.com'
The password will be their normal hMailserver account password


There is nothing is step 19 that is sending mail, so I don't understand the recipient question
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

rponcec
New user
New user
Posts: 2
Joined: 2013-01-28 15:26

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by rponcec » 2013-01-29 08:23

Thank you Mattg for your quick response, well I realized that i missed something, the Hmail server ... upps! so i need to install one before continue. Thank you!!

dkbk
New user
New user
Posts: 1
Joined: 2013-02-21 01:22

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by dkbk » 2013-02-21 01:30

Hi there

Thanks for the tutorial however I'm running into some issues.

I currently have a working install of hmailserver which is working great but I'd like to add webmail capability to it so I found this howto.

My hmailserver database currently runs under mysql so xampp detects it's already running (which is fine) but it can,t manage any of it.

Should I create a xampp-only version of mysql with a different service name and port for xampp than my regular hmailserver mysql install ? That would seem to be the easy solution but I'm sure it'd be much less of a ressource drain if I could direct xampp to use the current hmailserver mysql install but I see no obvious way of doing so.

I am no mysql (or any database for that matter) guru by any strech of the imagination so I'm at a loss as to the proper next steps.

Any help or ressources on how to accomplish what I seek would be greatly appreciated!

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by mattg » 2013-02-21 13:09

If you already have hMailserver and MySQL, then check the Roundcube site. You may just need Appache or another web server to run Roundcube.

Remember this is hMailserver forum. Check with Roundcube support on how to install their product.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

denieru88x
New user
New user
Posts: 1
Joined: 2013-06-10 18:35

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by denieru88x » 2013-06-10 18:39

hi all thanks por the how to it work fine but i het this error Error de conexión con el servidor IMAP. when i try to log on :( :( i need help please i will wait for your answer thanks again :)

well y solved this problem sorry jeje but i have other :( i send menssages and it dosent desplay in any mail box i see that i have send a mail but it dont display in the receiver HEELP!!! PLEASE THANKS :D

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by mattg » 2013-06-11 00:48

denieru88x wrote:hi all thanks por the how to it work fine but i het this error Error de conexión con el servidor IMAP. when i try to log on :( :( i need help please i will wait for your answer thanks again :)

well y solved this problem sorry jeje but i have other :( i send menssages and it dosent desplay in any mail box i see that i have send a mail but it dont display in the receiver HEELP!!! PLEASE THANKS :D
Seriously, please start a new thread. Link back t this if you think relevant. DO NOT post further unrelated questions in this thread.

Please DON'T use Bold for all text.
Please post twice, and not answer yourself in the same post.

All of these things make this hard to read.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

pcl
New user
New user
Posts: 1
Joined: 2013-10-11 14:08

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by pcl » 2013-10-11 14:11

Ok, I've missed something here. The only thing I get is the roundcube icon on the browser tab any ideas?

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by mattg » 2013-10-12 04:23

pcl wrote:Ok, I've missed something here.
Yep the previous post
mattg wrote:Seriously, please start a new thread. Link back t this if you think relevant. DO NOT post further unrelated questions in this thread.
Or perhaps the previous one of mine a couple of posts higher up
mattg wrote:Remember this is hMailserver forum. Check with Roundcube support on how to install their product.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Spazzma
New user
New user
Posts: 5
Joined: 2013-10-14 12:45

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by Spazzma » 2013-10-15 09:22

Great manual, thanks for sharing

BigPaul
New user
New user
Posts: 5
Joined: 2014-04-04 14:57

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by BigPaul » 2014-10-07 08:59

Hello,
i do not have the following files in the folder:
14. Browse to C:\xampp\htdocs\roundcube\config folder, copy and rename db.inc.php.dist and main.inc.php.dist to db.inc.php and main.inc.php respectively within the same folder.

Thanks

rwalker1
New user
New user
Posts: 7
Joined: 2014-10-07 04:05

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by rwalker1 » 2014-10-08 04:00

I noticed the same thing as well. The two files are not in the config

User avatar
SorenR
Senior user
Senior user
Posts: 6308
Joined: 2006-08-21 15:38
Location: Denmark

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by SorenR » 2014-10-08 15:30

A lot of things have changed with Roundcube 1.0.x - including the configuration files..

http://trac.roundcube.net/wiki/Howto_Install
SørenR.

Woke is Marxism advancing through Maoist cultural revolution.

karishma
Normal user
Normal user
Posts: 30
Joined: 2016-09-26 05:52

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by karishma » 2016-10-06 09:49

I cant find the db.inc.php.dist and main.inc.php.dist files in my roundcube 1.1.6 or 1.2.2
Can someone help me how can i made the config changes for these versions of roundcube?

User avatar
Dravion
Senior user
Senior user
Posts: 2071
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by Dravion » 2016-10-06 11:01

Thanks for sharing.

susan123
New user
New user
Posts: 1
Joined: 2016-11-20 11:00

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by susan123 » 2016-11-20 11:04

karishma wrote:I cant find the db.inc.php.dist and main.inc.php.dist files in my roundcube 1.1.6 or 1.2.2
Can someone help me how can i made the config changes for these versions of roundcube?
I am having same issue. I tried aforementioned method but i am unable to get it done!

User avatar
mattg
Moderator
Moderator
Posts: 22435
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by mattg » 2016-11-20 11:16

Try their (roundcube's) official support community
https://github.com/roundcube/roundcubem ... figuration
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

harimurti
New user
New user
Posts: 1
Joined: 2019-04-09 16:44

Re: HOWTO: Webmail for Hmail, RoundCube, XAMPP

Post by harimurti » 2019-04-09 16:52

[Update] Installation on Windows 10:
===
Ps: This written How to are base on my personal experience, as we know case per case would be slightly different in how to conduct. Credite goes to "armo" as the first person posting this article.

===
1. Install Xampp 7.1.27 (Newest Version) 64bit using the default settings. This will install PHP, Apache web server and Mysql database in C:\xampp
2. Browse to C:\xampp and create a shortcut for xampp-control.exe on your desktop -- For newest version Xampp this no longer needed. After installation at point [1] you have icon on your windows tray icon.
3. Launch xampp-control (make sure "run as Administrator", click on service on top and check to run xampp control panel as a service, as well under start these modules choose both mysql and apache. Leave the rest of the fields as default, click ok. It will prompt you to install xampp as service, accept and check in your services applet, that the service xampp is set to automatic.
4. Launch your internet browser and enter localhost as address at your browser address. This will take you to the "Dashboard" page.
5. Click the security link on the left, then click the link in the middle of the page that reads http://localhost/security/xamppsecurity.php <<--- This no longer exist on newer version of Xampp. So i just ignore it.
6. Using the xampp-control (run as Administrator), restart mysql service.
7. Click on databases, create new database called roundcubemail. Then on the left, from the available databases, click the one you just created, click on privileges tab then click add a new user.
8. In the username field enter roundcube, host field enter localhost, choose a password for the user account and retype.
9. Under database for user, choose grant all privileges on database roundcubemail then click go on the bottom.
10. Click the home icon on the left top corner, choose the roundcubemail database, privileges tab and make sure that the user we just created is there.
11. Unzip the rouncube package (in my case: i use winrar to unzip), simply rename the folder as roundcube and copy it to C:\xampp\htdocs folder
12. Browse to C:\xampp\htdocs\roundcube\config folder, you have to edit two files in this folder. [1] "defaults.inc.php" and [2] "config.inc.php" , in my case: i use notepad++ to edit those two files.

13. Open files: defaults.inc.php and make modifications as below
find this line:
$config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
edit that line to be:
$config['db_dsnw'] = 'mysql://roundcube:myp4ssw0r8@localhost/roundcubemail';
[ Note: change "pass" with your roundcube password that you use when you create my sql database for roundcube. username and password of the database user that we created previously (step 8); in my situation user: roundcube pass:myp4ssw0r8).
---- make sure this parameter exist:
$config['default_host'] = 'localhost';
$config['smtp_server'] = 'localhost';
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['enable_installer'] = true;
---- Save the file.
14. Open config.inc.php make modifications as below
find this line:
$config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
edit that line to be:
$config['db_dsnw'] = 'mysql://roundcube:myp4ssw0r8@localhost/roundcubemail';
[ Note: change "pass" with your roundcube password that you use when you create my sql database for roundcube. username and password of the database user that we created previously (step 8); in my situation user: roundcube pass:myp4ssw0r8).
15. Launch your internet browser and navigate to http://localhost/roundcube/installer
16. Make sure that there is nothing highlighted in Red and click next on the bottom of the page.
17. Make sure there is noting highlighted in red on the last page and run SMTP and IMAP connection tests. Remember you must use a valid user on the hmail server to run the test. Use username@domainname.xxx format for user credentials
These two steps will create the tables in your databse. Once done, delete the installer folder from the roundcube directory as well modify the $config['enable_installer'] = true; variable in defaults.inc.php file to show false and save the file
18. Now navigate to C:\xampp\apache\conf directoy and open httpd.conf file in notepad.
19. Modify the DocumentRoot variable to point to "/xampp/htdocs/roundcube". This step is very important to secure the files and folders within xampp/htdocs directory.
20. Now navigate to C:\xampp\PHP folder and open the php.ini file in notepad. Make sure that file_uploads variable is on, as well the upload_max_filesize variable set to 20 MB (or whatever you want, as this will effect the size of email attachments). Save the file.
21. on folder C:\xampp\htdocs - go edit php.ini files, in my situation i use notepad++. Go find this line: header('Location: '.$uri.'/dashboard/'); and change it to be:
header('Location: '.$uri.'/roundcube/');\
22. At this point, launch the xampp-control and restart the apache service
23. Launch your internet browser and navigate to http://localhost and voila..

if you would like to secure phpmyadmin, you can made a root password as follows:
24 . Now navigate to http://localhost/phpmyadmin, To create root password in PHPMyAdmin in UI easy way, you can follow simple steps below:
==> go to http://localhost/phpmyadmin
==> click "User accounts" menu bar on the top of the page
==> on the User Account Overview table you will see user name: root on the left then click "Edit privileges" on the right
==> Then click on "Change password" menu bar on the top
==> Enter your desired password then click "Go" on the button on the bottom.
At this point you're no longer can access: http://localhost/roundcube/installer

Post Reply