Problems with tomcat and Apache and Nginx

Apache and Nginx are web servers (or static resource servers) that deal with images, js, css, and html static web pages.
and tomcat is the server used to handle dynamic resources.
now there is a question:
for dealing with database additions, deletions, changes and queries, they are all dynamic, for example: PHP files need to perform database operations. Display the required data on the web page. Do you need tomcat to handle this? If you use Tomcat to handle it, when you deploy the project on linux, you don"t have a Tomcat server installed, and the website can run.

can someone explain it?

Apr.02,2022

PHP all operations are dynamic and must be handled by a server that supports PHP parsers, but not necessarily Tomcat , Apache and PHP-FPM can execute PHP scripts. So, there is no Tomcat , but there are Apache , FPM and even php-S open built-in Web servers can run PHP sites


first of all, Apache, Nginx can not be called a static resource server, it is a powerful high-performance Web and reverse proxy server, is a very powerful Web application service capabilities. For details, see Wikipedia . While Tomcat is more of an Java application server, if your Web application is developed in JAVA, Tomcat is the first choice for dynamic resources. According to your example, the dynamic website developed by PHP is more based on Apache or Nginx plus php parsing module as the dynamic server.
see the link for more detailed comparisons of these servers.


php is not run with tomcat

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b7e61-1d3e4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b7e61-1d3e4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?