in reply to Re^2: Invalid Command 'PerlModule' perhaps misspelled or defined by a module not included in the server configuration
in thread Invalid Command 'PerlModule' perhaps misspelled or defined by a module not included in the server configuration

Just do 'make install' again, it should tell you where mod_perl.so gets stored. If not, enter this at the command line:

find /usr -name 'mod_perl.so*' -print

That should tell you the location of the file, if it is somewhere in /usr. If not, change /usr to / in above line, that will search your whole file system

Normally the LoadModule line should be in the file /etc/apache2/mods-available/perl.load. There also should be a symbolic link in /etc/apache2/mods-enabled/ to this file. If that is the case, this file is executed automatically.

If you don't find the line in there, try the following command:

grep -r 'LoadMod' /etc/apache2

This will tell you where that text is in any files below /etc/apache2.

If that symbolic link is not in mods-enabled, add it and also add a symbolic link from perl.conf in mods-available. If you don't have the mods-* dirs, you should ask on an ubuntu list which file in /etc/apache2 is for local configurations. Often you can just add files into /etc/apache2/conf.d/ and they will be included automatically

  • Comment on Re^3: Invalid Command 'PerlModule' perhaps misspelled or defined by a module not included in the server configuration
  • Select or Download Code

Replies are listed 'Best First'.
Re^4: Invalid Command 'PerlModule' perhaps misspelled or defined by a module not included in the server configuration
by ashrocks (Initiate) on Aug 19, 2010 at 18:38 UTC
    What would be a command to run mod_perl in apache. I used LoadModule but that seems to be already running. I'm trying to install RT.
      You might enable the server info module, see http://httpd.apache.org/docs/2.2/mod/mod_info.html. After enabling it, looking at http://localhost/server-info will list all installed modules and any commands enabled by the module.
        I tried adding a server info module on my apache2.conf file. But the problem still persists. I cannot laod the localhost server info page, neither can i find how many modules are enabled in the server. Is there any other place other than this and mod_perl.so -> which i cannot find, can i see for the perl modules installed in the server. The error says that My webserver need to be configured to "run" mod_perl handler. My config file contains a PerlHandler and a PerlResponse Handler required to initate and run the perl_module process. Do you think its a mistake in directing the root folder of the virtual host i created. I am running on port 443, as port 80 returned a error. Thanks for your prompt replies. I appreciate it.