Python telepítése Apache 2 webkiszolgálóhoz
su root
sudo apt-get install python
sudo apt-get install libapache2-mod-python
Szerkesszük meg a config fájlt:
sudo gedit /etc/apache2/mods-available/mod_python.conf
Adjuk hozzá ezt:
AddType application/x-httpd-python .py
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
Mentsük és zárjuk be.
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/mod_python.conf mod_python.conf
sudo /etc/init.d/apache2 restart
Készen is van!