[Xapian-discuss] Getting Omega to execute and generate XML

Floris Bos flbos at hotmail.com
Sun Aug 14 13:20:59 BST 2005


Hello,

I've been posting recently and James helped me quite a bit but I'm afraid I 
need a little bit more help. I can't get Omega to execute any scripts. I've 
been reading the documentation and relevant mail list postings over and over 
but I can't seem to figure it out on my own. I think I'm missing out on 
something that I'm not aware of at all. Can someone help me out here?

Here's my situation:

I've builded Xapian and Omega using Cygwin on my Windows XP configuration. 
I've build my dynamic website using PHP and Mysql and now I'm trying to add 
search functionality with Omega/Xapian as backend. I've been able to 
implement php code that generates a text file (scriptindex input file) and 
run omegascript to put the new document in the Xapian database. This works 
fine.

Now I want to request XML from PHP using a predefined omega template but I 
can't get this to work. Can someone be more specific about how to do this 
because I really don't get it. I thought it would be a nice start to try and 
open a template page (the shipped xml template) just to test if everything 
works ok. After that I would change the php script so that it would request 
the output of this page.

I've tried the following:

I've put the xml template in my websites cgi-bin directory. I thought I 
would be able to generate xml by directing my browser to the following url:
http://localhost/test/cgi-bin/xml?DB=default&P=searchterm1+searchterm2      
(in this 'test' is the name of my website)

When I do this I just get the script from the xml template viewed in my 
browser. The script isn't carried out but being displayed in my browser?! Is 
this because I didn't configure Omega the right way or do I need to call 
Omega in a different way than the way I do currently?

What files do I need to copy to my cgi-bin directory? I tested with copying 
omega.exe to my cgi-bin dir but I also tried copying the whole Omega 
installation to my cgi-bin dir. It just doesn't work.

As I said I'm pretty sure I'm missing out on something very essential here 
(or maybe even more than one thing) but I can't figure it out. I've been 
trying a lot of different things and did hours of reading and websearching 
but I'm running out of options. Is there someone that can point me in the 
right direction?

Any help would be very much appreciated, thanks in advance!!





More information about the Xapian-discuss mailing list