Roundcube installation and a domain created with ISPConfig3

Hi to everybody.
I've a server with ISPConfig 3.0.1.6
Until now I was using it as just mailserver and I was managing few domains, so I didn't use the Sites functionality of ISPConfig to manage it, but I've setup manually Apache (modifying the file /etc/apache2/sites-enabled/000-default).

Now I want to manage domains using ISPConfig, so I've created a website.
I had a look to this link http://www.howtoforge.com/forums/showthread.php?t=34259&highlight=redirect+path, so I've setup fast-cgi, I've created then a FTP user and I've update the roundcube folder in /var/www/domain.com/web/
The question is: if I don't want to install roundcube from the beginning, but just use the same installation that I was using till now, can I copy the /var/www/webmail folder in /var/www/domain.com/web????
I've tried to do it, but it's not working (The requested URL / was not found on this server).

On my server, roundcube uses a database, you surely have to indicate the right database or migrate this one.
The "not found on this server" is not a roundcube problem in my opinion. Can you just create a index.html file in the /var/www/domain.com/web and see it on your browser ?

According to this link: http://www.howtoforge.com/forums/showpost.php?p=198956&postcount=2 I've created a website, then a database in ISPConfig.
Since I would like to use the same roundcube installation of before, I've copied the roundcube folder in /var/www/domain.com/web/, then I've setup the file db.inc.php with the details of the database, but I still have as error:

Code:

Not Found
The requested URL / was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

So it's definetely not a roundcube problem, but an issue with apache and ISPConfig...
Where am I wrong?

Looks like an issue with roundcube. Have you installed the roundcube that you used before from a debian package? Then it can not be copied to a website as it uses files in other directories. Better install a new roundcube version from tar.gz.

And you have been able to access this site before you installed roundcube?

Hi till,
I've installed roundcube from a tar.gz package, but without the install file... just adding the sql file in the database and editing the config files.
It's working fine without the creation of a site from ISPconfig. (just editing apache manually).

And you have been able to access this site before you installed roundcube?

Is the IP of the subdomain of this website is identical with the IP address that you selcted in the website settings?

It's working fine without the creation of a site from ISPconfig. (just editing apache manually).

Click to expand...

Thats not a good idea as this can cause conflicting websites which may casuse some or all websites to not work on your server. So do not add vhosts manually. You should eiser use ispconfig to create the websites or uninstall ispconfig if you want to manage the vhosts on your server manually, but do not combine manually management together with a controlpanel.

Is the IP of the subdomain of this website is identical with the IP address that you selcted in the website settings

Click to expand...

actually the domain is redirect to another domain

Thats not a good idea as this can cause conflicting websites which may casuse some or all websites to not work on your server. So do not add vhosts manually. You should eiser use ispconfig to create the websites or uninstall ispconfig if you want to manage the vhosts on your server manually, but do not combine manually management together with a controlpanel.

Click to expand...

This is the point: till now I've an installation where I'm not using the "sites" function of ISPConfig, but I was editing the file /etc/apache2/sites-enabled/000-default, adding the domains like:

You need a DNS A-record for mail.domain.com pointing to the IP address of the server. A record for just domain.com is not enough. You do not need any redirect as you added a vhost for this subdomain, if you added a redirect, then delete it.

Yes sorry, I've already setup a DNS A record for mail.domain.com.
So at the end I've 2 DNS A records:
domain.com -> 123.456.789.012
mail.domain.com -> 123.456.789.012

You do not need any redirect as you added a vhost for this subdomain, if you added a redirect, then delete it.

Click to expand...

That's the point. I want now use the ISPConfig to manage domains, so I've cancel from 000-default apache file the lines for that domain...
Anyway even like that it's not working.
If I restart Apache, I've this warning message:

domain.com and www.domian com are different (sub)domains, they have nothing to do with mail.domain.com. Just create a new website for mail.domain.com and make sure that you have nowhere a redirect for mail.domain.com pointing to another domain.