in reply to Re: Apache Server restart fails
in thread Apache Server restart fails

This is my httpd.conf file:
Alias /www /home/Documents/ <Directory /home/Documents/*/perl/> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders AddHandler cgi-script .cgi Options +ExecCGI </Directory>
The mods-available and mods-enabled directories exist, and there is a bunch of .load files in them. What should I look for there?

Replies are listed 'Best First'.
Re^3: Apache Server restart fails
by Anonymous Monk on Mar 02, 2012 at 14:28 UTC

    I am guessing you are using a Debian-based distribution, then.

    If so, you can type a2enmod perl to create the appropriate symlink.

    If not, you should find a .load file in mods-available that loads the mod_perl .so file, and create a symbolic link of that file to mods-enabled, like this:

    # cd /etc/apache2/mods-enabled # ln -s ../mods-available/perl.load .
Re^3: Apache Server restart fails
by Anonymous Monk on Mar 02, 2012 at 14:56 UTC

    Oh, and in the case it /is/ a debian-based distribution, please paste the output of dpkg -l|fgrep apache, so we can look for any missing packages. You should at least have libapache2-mod-perl2 (if you installed mod_perl through your distribution's package manager (which is highly recommended))

      Thanks for the suggestions. I created the symlink with a2enmod perl. When I to restart the server now, I get a slightly different error message :
      rianne@rianne-OXYL015:~$ sudo a2enmod perl Enabling module perl. To activate the new configuration, you need to run: service apache2 restart rianne@rianne-OXYL015:~$ service apache2 restart ulimit: 88: error setting limit (Operation not permitted) apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax + error on line 1 of /etc/apache2/mods-enabled/perl.load: Cannot load +/usr/lib/apache2/modules/mod_perl.so into server: /usr/lib/apache2/mo +dules/mod_perl.so: cannot open shared object file: No such file or di +rectory Action 'configtest' failed. The Apache error log may have more information. ...fail!
      I do have the libapache2-mod-perl2 installed:
      dpkg -l|fgrep apache ii apache2 2.2.20-1ubuntu1.2 + Apache HTTP Server metapackage ii apache2-mpm-worker 2.2.20-1ubuntu1.2 + Apache HTTP Server - high speed threaded model ii apache2-threaded-dev 2.2.20-1ubuntu1.2 + Apache development headers - threaded MPM ii apache2-utils 2.2.20-1ubuntu1.2 + utility programs for webservers ii apache2.2-bin 2.2.20-1ubuntu1.2 + Apache HTTP Server common binary files ii apache2.2-common 2.2.20-1ubuntu1.2 + Apache HTTP Server common files rc libapache2-mod-perl2 2.0.5-2ubuntu1 + Integration of perl with the Apache2 web server ii libbatik-java 1.7.ubuntu-6ubuntu1 + xml.apache.org SVG Library
      Do you see anything missing in there ? Cheers, Rianne
        To find what is missing run ldd /usr/lib/apache2/modules/mod_perl.so