Python Import error while running through apache -
actually i've included python script inside cgi script back-ticks. while running script have error "importerror: no module named skimage" through apache web server. when run via command line working properly.
os: rhel 6.5
python: 2.7.8
$pythonpath = /usr/local/bin
httpd conf (only cgi part):
<directory /home/*/public_html/cgi-bin> options execcgi addhandler cgi-script .py .cgi sethandler cgi-script </directory> scriptalias /cgi-bin/ "/var/www/cgi-bin/" <directory "/var/www/cgi-bin"> allowoverride none options execcgi order allow,deny allow </directory>
note: 1. selinux disabled
2. shebang lines included.
can help?.
thanks in advance.
maybe library installed , not root. put library script in same folder of main script , try.
Comments
Post a Comment