I have a current web page on a local server mounted on apache tomcat 6.0.20.
What I am looking for is to install wordpress in this apache, but I cannot achieve it due to compatibility problems.
Has anyone experienced this problem or know of a solution?
As a formal answer to your question, it is possible to use a bridge that allows Tomcat to use PHP and serve your website.
There are several options:
install PHP on the server, get the latest version of php-java-bridge (last updated in 2018), and configure everything (as indicated here ).
Use PECL to extend PHP and add the php_java extension. As a problem, it is tested for PHP 5 and Wordpress may require a more recent version. (taken from this answer ).
Follow the Apache documentation , but it's for very old versions.
Perhaps the most viable, using Quercus, which I understand to be an implementation of PHP (I think PHP5) in Java. This guide explains what to do, which is basically:
In general, the recommendation to avoid so many hacks and turns, is that Tomcat take care of what corresponds to it, the servlets, and that someone else serves the PHP content. Two nodes (two services on the same server or on different servers, as you prefer). Apache HTTP or Nginx or many others are very good. Facing them, a reverse proxy can define which routes go to tomcat and which routes go to wherever wordpress is.