HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Roundcube installation and a domain created with ISPConfig3 (http://www.howtoforge.com/forums/showthread.php?t=46049)

voltron81 21st May 2010 16:47

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/sho...=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).

Any suggestion?
Thanks
Michele

yoplait 22nd May 2010 00:32

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 ?

voltron81 24th May 2010 10:16

yes I agree that the error is not coming from Roundcube... so probably I'm missing something...:confused:

voltron81 25th May 2010 11:44

I'm quite confused... :confused:

According to this link: http://www.howtoforge.com/forums/sho...56&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?

Thanks
Michele

till 25th May 2010 12:29

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?

voltron81 25th May 2010 12:36

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).

Quote:

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

Thanks
Michele

till 25th May 2010 12:38

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

Quote:

It's working fine without the creation of a site from ISPconfig. (just editing apache manually).
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.

voltron81 25th May 2010 12:54

Quote:

Originally Posted by till (Post 229169)
Is the IP of the subdomain of this website is identical with the IP address that you selcted in the website settings

actually the domain is redirect to another domain


Quote:

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.
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:
Code:

<VirtualHost *:80>
        ServerName www.domain.com
        DocumentRoot /var/www/homepage/
        <Directory /var/www/homepage/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        ServerSignature Off
</VirtualHost>

Code:

<VirtualHost *:80>
        ServerName mail.domain.com
        DocumentRoot /var/www/roundcube
        <Directory /var/www/roundcube>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        ServerSignature Off
</VirtualHost>


till 25th May 2010 12:57

Quote:

actually the domain is redirect to another domain
Redirects wont work in apache as apache is not able to determine the correct vhost then. Please create a dns A-Record that points to the IP address of this website.

voltron81 25th May 2010 14:41

Quote:

Originally Posted by till (Post 229172)
Redirects wont work in apache as apache is not able to determine the correct vhost then. Please create a dns A-Record that points to the IP address of this website.

I already have an A-Record for the domain.com that is pointing to the ISPConfig server. Then ISPConfig is setup as redirect to another webpage.
Is it correct?

thanks
Michele


All times are GMT +2. The time now is 04:57.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.