Python/Apache Oddness On OSX
Diez B. Roggisch
deets at nospam.web.de
Mon Oct 24 15:01:58 EDT 2005
John Abel wrote:
> Hi,
>
> I'm running Python 2.3.5/2.4.2 on OSX 10.4.2, and am trying to run CGI
> scripts using the builtin Apache. For ease, I've symlinked my custom
> modules into the /Library/Python/2.3/site-packages directory, and they
> import OK via command line python. However, when I perform the import
> from a cgi script, python fails to find the module. It is definately
> something to do with the symlink, as the CGI works OK if I copy the
> directory into site-packages. Is there some oddness with Python/Apache
> and symlink imports?
>
> Any pointers would be most useful.
Not sure if that is the case here, but I know that apache has some
directives that are named FollowSymlinks and the like - might be that
this affects your situation.
Regards,
Diez
More information about the Python-list
mailing list