Trouble getting perl cgi working

Posted on 2008-11-19
Last Modified: 2012-05-05
Hello All,

  I'm having trouble getting perl cgi working, below is the error messages in my apache error log:

[Wed Nov 19 18:11:19 2008] [error] [client] Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/' for module DBD::mysql: cannot open shared object file: Permission denied at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/ line 230.
[Wed Nov 19 18:11:19 2008] [error] [client]  at /var/www/cgi-bin/ line 64
[Wed Nov 19 18:11:19 2008] [error] [client] Compilation failed in require at /var/www/cgi-bin/ line 64.
[Wed Nov 19 18:11:19 2008] [error] [client] BEGIN failed--compilation aborted at /var/www/cgi-bin/ line 64.
[Wed Nov 19 18:11:19 2008] [error] [client] Premature end of script headers:
Question by:sirdi
    LVL 48

    Expert Comment

    What is the permission on


    Author Comment

    Here it is:

    root@apollo init.d]# ls -l /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/
    -r-xr-xr-x  1 root apache 278154 Nov 19 15:09 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/
    [root@apollo init.d]#

    LVL 39

    Accepted Solution

    What about the permission of all the directories leading to that file?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (,  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now