Chapter 22. Troubleshooting mod_perl
When something goes wrong, we expect the software to report the problem. But if we don’t understand the meaning of the error message, we won’t be able to resolve it. Therefore in this chapter we will talk about errors specific to mod_perl, as reported by a mod_perl-enabled Apache server.
Many reports are produced by Perl itself. If you find them unclear,
you may want to use the use diagnostics pragma in
your development code. With the diagnostics
pragma, Perl provides an in-depth explanation of each reported
warning and error. Note that you should remove this pragma in your
production code, since it adds a runtime overhead.
Errors that may occur during the build and installation stages are covered in the respective troubleshooting sections of Chapter 3. This chapter deals with errors that may occur during the configuration and startup, code parsing and compilation, runtime, and shutdown and restart phases.
Configuration and Startup
This section covers errors you might encounter when you start the server.
libexec/libperl.so: open failed: No such file or directory
If you get this error when you start the server, it probably means that your version of Perl was itself compiled with a shared library called libperl.so. mod_perl detects this and links the Apache executable to the same Perl shared library. This error simply means that the shared library cannot be found by searching the paths that Apache knows about.
Make sure you have Perl installed on the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access