- Install the mod_python module for Apache2
- Open the default file at /etc/apache2/sites-available/
(Note that you will need super-user privileges for editing this)gedit /etc/apache2/sites-available/default
- Go to the section
Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all #Uncomment this directive is you want to see apache2's #default start page (in /apache2-default) when you go to / #RedirectMatch ^/$ /apache2-default/ - Append this to the end of section
AddHandler mod_python .py .psp PythonHandler mod_python.publisher|.py PythonHandler mod_python.psp|.psp PythonDebug On
To read more about Apache directives, visit http://httpd.apache.org/docs/1.3/mod/mod_mime.html - Restart Apache2:
/etc/init.d/apache2 resart
- That’s all folks!
Now you can play with .py and .psp
Original Post July 17, 2007 (https://dumith.wordpress.com/2007/07/17/enable-both-py-and-psp-in-apache2/)
No comments:
Post a Comment