CGI access

I'm trying to set up the command line version on my netbook as a test prior to trying it on a server app on my Android tablet. The reason for the test of my, Windows, netbook is because the server app costs money that I'd rather not spend if I didn't have to (because I can't get this to work ;))

Anyway, I've had a look at the instructions for IPP 2.0 and they seem relatively simple but, unfortunately, I can't get them to work. I'm using the xampp installation of Apache/PHP/MySQL which works perfectly for all other tests I've run (including a WordPress installation) but I've never done anything with the cgi-bin before so I'm posting here in the hope that someone can provide some simpler instructions.

For the record, I love rpginspiration.com but I game at a location without internet access and the generators I've created use copyrighted material so I can't share them :(

Anyway, the instructions say
  • Copy the ipad2cgi program and base.htm into the cgi-bin directory Done
  • Add the following to httpd-conf or .htaccess
    Action application/x-httpd-ipad /cgi-bin/ipad2cgi
    AddType application/x-httpd-ipad ipt
    
    Done (I've tried both)
  • Copy .ipt file onto server Done (I've put it under http://localhost/ipt/sample.ipt and also tried with the .ipt file in the cgi-bin directory
Nothing works though, it just comes up with a 500 Internal Server Error :(

For the record, xampp is installed directly into the C: drive (to get around Windows' UAC issues). The cgi-bin is at C:/xampp/cgi-bin and the .ipt has been tried at C:/xampp/cgi-bin/sample.ipt and C:/xampp/htdocs/ipt/sample.ipt

Grateful for any assistance that can be given :)

Thanks.

Comments

  • edited April 2013
    I got it to work. With the Windows/XAMPP set-up the entries need to be:

    C:\xampp\apache\conf\httpd.conf: AddType application/x-httpd-ipad ipt
    C:\xampp\apache\conf\extra\httpd-xampp.conf: Action application/x-httpd-ipad /cgi-bin/ipad2cgi.exe

    Then put your *.ipt files in root of your domain and visit http://localhost/test.ipt (changing localhost and test.ipt to reflect your domain/file name).

    Now I just need to work out how to get it running under Android ;)
  • Supplementary question...

    Is there any way to change the number of rows produced by the generator? For example, say I only want 5 items (rather than the default 10), would it be possible to use http://localhost/test.ipt?result=5 or something similar?

    Thanks.

Leave a Comment