3 ms·
Installing mod_php: apt-get install libapache2-mod-php5 a2enmod php Installing mod_perl: apt-get install libapache2-mod-perl2 a2enmod perl But, in g
by jrockway 17y ago
Installing mod_php:
apt-get install libapache2-mod-php5
a2enmod php
Installing mod_perl:
apt-get install libapache2-mod-perl2
a2enmod perl
But, in general, running app code in the webserver is a bad idea. This is why everyone uses fastcgi in production, and why every web framework (except PHP) ships a standalone dev server for development work.
PHP is the one that's hard to use now, unless you are developing on an already-configured system.