You could just have them running at different ports (accessible from outside), if this is what you prefer. This is the easiest solution. The other solution would be to have one unique access port.
This case is very difficult to fix since OpenERP needs Python+PostgreSQL+Mod_WSGI and SugarCRM needs PHP+MySQL, which are unique components to both. Therefore, I would strongly encourage you to use Bitnami Cloud Hosting, which base stack includes all of those, and which also give you the option to install one on top of the other.
If not, you would have to choose one of the following:
- Installing on top of a stack which includes all those components (for example, Meanstack but does not include mod_wsgi, or our Amazon AMI images which include everything).
- Using a reverse proxy. This would imply having two different Apache servers.
- Using the OS's original components (httpd, python), and install MySQL, PostgreSQL, mod wsgi separately.
I would strongly recommend you using Bitnami Cloud Hosting, since it is not easy with your desired application selection (since they use very different components). If you prefer, you can just launch an image without any apps and copy the folders for
SUGARCRM_INSTALLDIR/apps/sugarcrm, add the "Includes" to the new
/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf and migrate the databases to the new instance.
The second option could be the best one if you want to do things quickly. You would have to have a main stack (for instance, SugarCRM) and add something like this to the Bitnami SugarCRM installation's Apache configuration (where 22222 is the port for OpenERP's Apache), for instance, to
ProxyPass /openerp http://localhost:22222
ProxyPassReverse /openerp http://localhost:22222
If you want to keep the initial state of the applications, the quickest step would be to just copy the entire
SUGARCRM_INSTALLDIR/mysql/data directories (or the whole directories if you prefer). You could also export the databases but this would take a bit more time.
Hope it helps.