I’ve been using Apache+php for several years and, as far as I remember, installing it was a breeze.
Now I want to add Perl for some number crunching so that I don’t have to run scripts from terminal all the time and I want the output to look nice and comprehensible, but can’t find a simple way to integrate it with Apache.
I added mod_perl to Apache, which created a basic mod_perl.conf file, and if I put a test.pl script into “/srv/www/cgi-bin/” it kind of serves (browser shows file content) but does not execute.
The same script located in my “public_html” is still offered as a download option.
There are tons of guides on Apache+Perl setup on the internet but they are all very long, start with building from sources, and everything must be done manually, carefully replacing generic package names and locations to user’s own OS setup.
Then there’s cgi scripts vs mod_perl issue.
I hope there’s an easier way.
What I want is inserting perl code in html pages just as it’s done with php, and I want to keep perl scripts in my website directory, not in /srv/www/cgi-bin/ where I can’t edit anything without root access. It would also be nice if I didn’t need to change permissions on every .pl script to executable, just as it’s done with php.
I hope it’s not too much to ask.