I'm sorry to take your time for newbie problems but I've been searching what to do about the problem with my apache server I have. I work with ubuntu dapperdrake I put the last apache server on it and I tried to put the mod_python module to work. the only answer I got was that apache didn't find api structure in the module. afterwards I read I didn't need this module to work with python (only a speed difference as I understand) but the problem is nomatter where I put my .py file. everytime I trie to reach it I get a downloadable textfile instead of the execution of the file. I gave it the permission to execute with chmod but it seems I'm forgetting something else to make it work properly.
ubuntu 6.06LTS
apache2
python 2.4
to make the module mod_python work I changed apache2.conf
AddHandler mod_python .py
and I even tried changing httpd.conf but I got this as a result
Syntax error on line 6 of /etc/apache2/httpd.conf:
Can't locate API module structure `mod_python' in file
/usr/lib/apache2/modules/mod_python.so:
/usr/lib/apache2/modules/mod_python.so: undefined symbol:
mod_python
what concerns the textfile instead of the execution of the file.
I tried to put the file in the cgi-bin directory I made in /var/www, (didn't find the file) then I put it in the /usr/lib/cgi-bin directory and I only get the textfile if I try for instance http://127.0.0.1/cgi-bin/*.py
127.0.0.1 is the localhost while I don't have a domainname for it
I've been reading for several days now and I tried several things other people explained me but it doesn't work out wel for the moment.
greetings and thx in advance
ubuntu 6.06LTS
apache2
python 2.4
to make the module mod_python work I changed apache2.conf
AddHandler mod_python .py
and I even tried changing httpd.conf but I got this as a result
Syntax error on line 6 of /etc/apache2/httpd.conf:
Can't locate API module structure `mod_python' in file
/usr/lib/apache2/modules/mod_python.so:
/usr/lib/apache2/modules/mod_python.so: undefined symbol:
mod_python
what concerns the textfile instead of the execution of the file.
I tried to put the file in the cgi-bin directory I made in /var/www, (didn't find the file) then I put it in the /usr/lib/cgi-bin directory and I only get the textfile if I try for instance http://127.0.0.1/cgi-bin/*.py
127.0.0.1 is the localhost while I don't have a domainname for it
I've been reading for several days now and I tried several things other people explained me but it doesn't work out wel for the moment.
greetings and thx in advance
Comment