Hey!
I downloaded matomo and pasted the matomo folder in the webapps folder in the tomcat server. But when I hit the url i.e myserver:8080/matomo, a 404 error is shown.
Thanks alot for replying!
I did what you asked me to do. I was not getting the info page.
So by this it means that php is not present in the tomcat server.
So as a solution, I need to install php separately in it or change the server. Do you know if glassfish server will work?
Will installing php separately in the tomcat server fix the issue?
My web application is built in spring. So I need to use a server like tomcat or glassfish.
I don’t know tomcat well enought to know if it can forward requests to PHP.
But you don’t need to run Matomo with the same webserver as your web application. You could e.g. run Nginx or Apache in front of both your web app and Matomo and forward the requests to php-fpm or tomcat.
Or you could install Matomo on a completly separate webserver that has nothing to do with your web application.
Suppose I set up matomo in apache server and run the web application I developed in tomcat, will the php requests from the tracking code be sent to matomo even though it is running on tomcat server? Will I have to download php in tomcat for it to work?
Matomo and your webapp can run on completely different servers that have no connection to each other. The only important thing is that the browser of the website visitor can access both of them as the only connection is that your webapp adds the JS tracking code which makes the requests to Matomo via HTTPS.