Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: cgi script can't load my module

by Cody Pendant (Prior)
on Jul 29, 2007 at 20:26 UTC ( [id://629438]=note: print w/replies, xml ) Need Help??


in reply to cgi script can't load my module

Well, does it work from the command line?

And how about you give us some actual code? And some paths? It could be a typo for all we know at the moment.



Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...

Replies are listed 'Best First'.
Re^2: cgi script can't load my module
by headybrew (Beadle) on Jul 29, 2007 at 21:19 UTC
    OK... I moved the folder containing the modules to a standard location, (/Library/Perl . I'm on OSX). It works fine in that folder. It's just inconvenient to develop in one folder and move stuff there.

    I changed the permissions all the way up the tree of my user directory as a test, but it didn't help...

    I'm absolutely sure there are no typos in the path. I've done the use lib thing before many times, just not with cgi. I'm new at the perl cgi part.

    I really think it might have something to do with my apache server setup.

    But anyway, I guess I'm just going to move it there for now, because I'm in a hurry to get some work done.

    Thanks for the tips. I'll check back later in case anyone has any other thoughts.

      I changed the permissions all the way up the tree of my user directory as a test, but it didn't help...  I'm absolutely sure there are no typos in the path.

      In that case it could be restricted access due to some SELinux or AppArmor configuration (the latter is likely if the box is running a newer SUSE Linux).  It's hard to tell, though, as you haven't told us anything about the platform this is...  (Update: Sorry, I overlooked the OSX in your reply...)

      I had a thought! I had two thoughts. They are:
      • tell us if it works from the command line
      • tell us what the code and the paths actually are

      Oh and as for:

      It's just inconvenient to develop in one folder and move stuff there.
      So ... just don't do that then.


      Nobody says perl looks like line-noise any more
      kids today don't know what line-noise IS ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://629438]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-03-29 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found