Page 1 of 1

import_contacts.py only displays code.

Posted: Wed Aug 16, 2006 5:19 pm
by constant
.
When I point my browser to import_contacts.py all that happens is the code is displayed in the browser.

If I do "python import_contacts.py" at the command prompt it comes back with errors.

I have searched here, google, and python.org with no result.
.

Posted: Wed Aug 16, 2006 5:49 pm
by dkelly
How did you install import_contacts.py ? Did you follow the readme ?

Cheers

Dave

Posted: Wed Aug 16, 2006 7:00 pm
by constant
.
I'm using SuSE 10.0 and the install.sh put a copy of import_contacts.conf in /opt/scalix/global/http. However, it did not create the /import directory under the document root directory, but under the / directory. I ran the script as root. I moved the import directory into the document root directory, being /srv/www/htdocs/. That is where I'm at.
.

Posted: Wed Aug 16, 2006 7:09 pm
by constant
.
If it helps, I run python 2.4.1-3, apache 2.0.54-10, and apache2-mod_python 3.1.3-43.
.

Check Apache Conf

Posted: Tue Sep 12, 2006 5:38 pm
by mhacleth
Hi,
It looks like your webserver does not recognize python scripts. Try adjusting your Apache config file to allow python scripts to be executed instead of being displayed. :)

Posted: Mon Sep 18, 2006 7:04 pm
by constant
.
Thanks for that. I'm much more like a sys admin than a programer. When one installs php, it just goes. But with python I had to put lines in the apache config file to make it work.
.