Are there any issues when installing apache tomcat with apache webserver already installed under Windows 7? - apache

I am currently trying to install apache tomcat for running on localhost as I am planning to run a new development project using Java.
Will this be a problem if I have already apache webserver installed locally on my machine already? In other words, will there be any port conflicts or anything other issues with the two servers running on the same machine?

No. Because Tomcat uses default port 8080 for the webserver while the "normal" webserver uses port 80 for html displaying. You can change that in the catalina properties of the tomcat server but on first install the defaults are not causing problems with a port 80 webserver.

Related

Why does AEM dispatcher refuse to connect?

I tried to follow the instruction from
https://helpx.adobe.com/experience-manager/kt/platform-repository/using/dispatcher-macos-technical-video-setup.html
to set up an AEM dispatcher on my MacBook.
The version of my operating system is Catalina 10.15.1, so there should not be an issue of macOS Mojave. Since AEM does not support builtin Apache anymore, I installed brew's Apache on homebrew. Then, I start my AEM server on my localhost:4053, and started my Apache dispatcher.
Then, I go to the following link:
http://aem-publish.local/content/we-retail/us/en.html
It gave the error of
aem-publish.local refused to connect.
What can be possibly causing this error?
The problem was just that The tutorial uses port 80, but Apache uses port 8080 by default.
I just have to change the port number to 8080 on aem-publish.local.conf file.
Or, I can change the port number to 80 in httpd.conf file.

Can I have apache and glassfish running on one server machine?

There's a physical server machine with apache running on it, some apps deployed there. I'm gonna need a glassfish server. Is it possible to set it up on that machine and have both apache and glassfish running simultaneously? If yes, then what problems could that cause?
Yes, you can.
Normally this shouldn't cause problems, because Glassfish is running on port 8080 per default and Apache is running on port 80 and 443.
If your Apache is configured to run on port 8080 this won't work or you have to change the default port of your Glassfish server.
See also:
How to run glassfish 4 on port 80 instead of 8080
Binding to Addresses and Ports - Apache HTTP Server Version 2.4

Does Starting A Tomcat Server On CentOS Crash PHP Sites Running On Apache

I am running some PHP sites on a CentOS 6.6 server,
I have installed Tomcat.
If I start the Tomcat server will it crash my websites running in the www diron Apache?
Or can Tomcat and Apache run at the same time?
No. As long as they are running on different ports which they do by default you are all set.

liferay portal not opening

I'm new to liferay. I installed the liferay+tomcat bundle and tried to start liferay by running the startup.bat file. The liferay setup wizard should open in the browser by itself but it is not happening. The following is being displayed. How do I open the liferay setup wizard?
Apache - version 2.2.22
PHP - version 5.4.5
Server is up and running
The default Apache context is www in the Apache installation folder
It seems something else is running on port 8080 - e.g. some installation of Apache. You can try this if you just access http://localhost:8080 without starting tomcat/Liferay first.
Either you need to shut that down, move it to another port or move Tomcat/Liferay to another port. If you want the later, look for a file called conf/server.xml, in there locate the three active port=... instructions and change them to unused ports. Then start again.
You can change the port number by editing server.xml , you can find it in tomcat>>conf>>server.xml
Change all the ports from 8080 to say 9080 and restart the server.
I mistaken had CATALINA_HOME configured to a different tomcat setup and not the tomcat bundled with Liferay. This made it trigger the port 8080 of the other setup which in return blocked the port before Liferay could listen to it. Make sure CATALINA_HOME is not pointing to some other tomcat installation. Make sure port 8080 , 8005 and 8009 is reserved for tomcat.

Passenger with apache and nginx on the same development box

I've got Apache and passenger on my notebook. I want to test Nginx and passenger on the same machine. I can install Nginx on 8080 and apache on 80. But can I install passenger with both the same server on the same machine?
Yes, simply install the apache module and then the nginx module. You'll probably need to make sure each server has a different PassengerTempDir setting too.
I had both Apache and Nginx with passenger installed and working fine on the same Arch Linux machine, serving a Rails app. Once, with apache running and listening on port 80, I started nginx listening on the same port and got an (expected) error about the port being already bound. I stopped apache and nginx, restarted nginx and started getting Bad Gateway errors whenever I tried to access the Rails app under Nginx. I still haven't figured out what the problems is and how to fix it. Rebooting doesn't seem to help.