Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we keep python & php both with same apache server?

Tags:

python

php

apache

I am familiar with PHP-MYSQL on Apache Server, Now i want to Try PYTHON with Apache & Mysql. My Machine is Already Installed With Apache-PHP-MYSQL. So i want to know is it possible to configure Python on the same server. Please let me know some links for documentation on this.

like image 274
Sumant Avatar asked Apr 28 '12 06:04

Sumant


People also ask

Will Python go away?

The sunset date has now passed; it was January 1st, 2020. What happens now? As of January 1st, 2020 no new bug reports, fixes, or changes will be made to Python 2, and Python 2 is no longer supported. A few changes were made between when we released Python 2.7.

Where should I store Python?

Create a folder called PythonPrograms on your C:\ drive. You will be storing all your Python programs in this folder.

Is it better to learn Python 2 or 3?

While Python 2 had its heyday in the early 2000s, Python 3 is the best choice to learn in 2022. You might find some circumstances in which you need to use Python 2, but on the whole, Python 3 is the most popular language. Since Python 2 was sunsetted in 2020, Python 3 has dominated the programming world.

Is Python 2 still used?

Although Python 2 is almost outdated, it is still used today by some software professionals due to some of its special features.


2 Answers

You probably want mod_wsgi, which will allow you to run Python code (built against WSGI) from httpd.

like image 174
Ignacio Vazquez-Abrams Avatar answered Sep 30 '22 05:09

Ignacio Vazquez-Abrams


Absolutely possible, as a matter of fact have you heard of PiP? I have even called Python without PiP and echo out lines in an HTML table before. Works like a charm.

like image 41
dc5553 Avatar answered Sep 30 '22 03:09

dc5553