Web Development: Apache Modules: mod_python vs mod_php

I have been using PHP for over 12 years with Apache (aka mod_php) for my network development work. I recenlty discovered python and its real power (I still don't understand why this is not always the best product that is becoming the most famous). I just opened mod_pythonfor Apache. I already googled, but without success, things like mod_python vs mod_php. I would like to know the differences between the two mod_php, and mod_pythonin terms of:

  • speed
  • Performance
  • protection (I know that `python is the most productive and convenient language in the world, but it is the same for web programming with Apache)
  • accessibility of functions, such as cookies and session processing, databases, protocols, etc.
+3
source share
2 answers

I understand that PHP was designed with the Internet / Internet in mind, but Python for a more general purpose.

Now most people leave mod_python for mod_wsgi, which is more reliable and flexible.

To answer other questions:

  • speed: python is faster. (PHP is slower than ruby ​​and python)
  • performance: at least the same as php with numerous libraries
  • service: python is clear and neat
  • Features: More than you need, I would say.

Python was not popular on the Internet because it did not focus on the network at all. It has too many web frameworks (more frameworks than programming languages), so the community is not as strong as Ruby on Rails.

+2
source

mod_php mod_python...

PHP -, Python.

- Python, , , Python, -, Python- . -.

Python - (, , , ) PHP.

+1

Source: https://habr.com/ru/post/1746135/


All Articles