I’ve installed Lucee/Tomcat, Apache, Mysql on a CentOS 7 server (vps). It’s all working fine my CF application.
But I want to upload another application in the same server. Is that possible? What should I do?
I just changed the /opt/lucee/tomcat/conf/server.xml file (adding new site), created a new folder on /opt/lucee/tomcat/webapps/root/app1 and /app2 and that didn’t worked for me. I read some stuff but couldn’t get that done. Anyone made that work?
As mafimo wrote, for tomcat and lucee, add an entry for each site in /opt/lucee/tomcat/conf/server.xml
For apache add an entry for each site in /etc/httpd/conf.d by creating a new conf-file for each site.
The WEB-INF folder will be created if you wait a few minutes after the restart of the web services.
systemctl restart httpd
systemctl restart lucee_ctl
After this the lucee server and web administrator can be reached for the new site.
http://[domain]/lucee/admin/server.cfm
http://[domain]/lucee/admin/web.cfm
First of all, ignore httpd until you are able to make it work with the Tomcat port, e.g. 8888. Once it’s running properly when you connect directly to Tomcat, you can fix any issues with httpd.
Did you check the log files? Check the Tomcat log files first. There might be an error there that prevents Lucee from starting up. The default location for the logs is at {tomcat}/logs but there’s a good chance that in your setup they are somewhere else. Find the “catalina out” and “catalina err” or “stdout” and “stderr” (exact filenames may vary depending on setup) and inspect them for errors.
Seems that if I put anything into /opt/lucee/tomcat/conf/server.xml then Lucee seems not to run. If I clear server.xml then it runs OK.
Now Lucee is running alright. But couldn’t get multiple sites yet. Just one CFM site on /opt/lucee/tomcat/webapps/ROOT/ folder.
I tried to create /opt/lucee/tomcat/webapps/ROOT/site1 and /opt/lucee/tomcat/webapps/ROOT/site2 and put WEB-INF in each folders but didn’t work (feels like Lucee doens’t run if change server.xml)
If by not starting up you see the “white screen of death” when loading the sites in a browser, Lucee started but something is wrong with the tomcat - apache setup. If Lucee can’t start, check the logs.
I don’t think there is a centos7+Lucee+Apache guide out there explaining everything step by step… I have a few sites running on centos6+Lucee+Apache VPS using the virtualmin control panel, virtualmin is probably another level of complexity you don’t want to know about …