apache - Perl CGI Scripts cannot find modules in library -
this apache / perl problem having.
i using cpan module in perl cgi application. spreadsheet::parseexcel
i have installed cpan module tar.gz files.
i have installed dependencies.
however, did non-root user. library contains these files under user folder, /home/user/lib
now, have configured apache2 on box. html directory /var/www/html , cgi folder /var/www/html/cgi-bin. have verified work because of scripts in folder not require special modules work in firefox browser, ie. hello world, data dumps, simple forms.
however, when try run scripts use "spreadsheet::parseexcel", error module cannot found in @inc. however, have "use lib" statement @ beginning of script adds library.
the scripts can run in putty without problem. when running script browser getting issue.
this web application written on box , works fine on box. because developped there of course. put apache2 on personal ubuntu machine, , installed web application , modules here, , works on local box.
i have set "chmod -r a+rx" user library folder, think apache has access folder, unless settings of parent directory blocking it? don't have run on /home/user folder, or worse, /home folder, i?
any insights on issue?
thank time!
the apache user cannot access /home/user/lib if not have access /home/user, if permissions on /home/user/lib allow access it.
for example, if own file in /root still cannot access if don't have access /root.
Comments
Post a Comment