import_contacts.py only displays code.

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

constant
Posts: 87
Joined: Wed Sep 14, 2005 2:27 am
Location: Cooroy, Australia

import_contacts.py only displays code.

Postby constant » Wed Aug 16, 2006 5:19 pm

.
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.
.

dkelly
Scalix
Scalix
Posts: 593
Joined: Thu Mar 18, 2004 2:03 pm

Postby dkelly » Wed Aug 16, 2006 5:49 pm

How did you install import_contacts.py ? Did you follow the readme ?

Cheers

Dave

constant
Posts: 87
Joined: Wed Sep 14, 2005 2:27 am
Location: Cooroy, Australia

Postby constant » Wed Aug 16, 2006 7:00 pm

.
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.
.

constant
Posts: 87
Joined: Wed Sep 14, 2005 2:27 am
Location: Cooroy, Australia

Postby constant » Wed Aug 16, 2006 7:09 pm

.
If it helps, I run python 2.4.1-3, apache 2.0.54-10, and apache2-mod_python 3.1.3-43.
.

mhacleth

Check Apache Conf

Postby mhacleth » Tue Sep 12, 2006 5:38 pm

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. :)

constant
Posts: 87
Joined: Wed Sep 14, 2005 2:27 am
Location: Cooroy, Australia

Postby constant » Mon Sep 18, 2006 7:04 pm

.
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.
.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 4 guests