May 7, 2016, 8:34 AM
Post #5 of 5
Re: [hpg4815] Recompile Perl Module for Apache
[In reply to]
can I do this? Build & compile Perl in a custom location, update the make file for mod_perl src rpm to point to that custom Perl install, build the module and just copy it place so Apache can read it with the loadmodule directive?Yes, that should work.
if yes, do i still need to adjust all my calls to the Perl binary to point to the perl in the custom location?If you're referring to CGI scripts and not scripts running under mod_perl, then yes, the shebang line needs to point to the location of the perl version you want to use and you'll probably need to configure a virtual host section as well. When running under mod_perl, I don't think you need to have a shebang line, but I could be mistaken.