2009-02-01 02:44 |
peter
Peter Sommerfeld < <peter at rubrica.at>
Hello everyone! I've successfully installed Sputnik as described on webfaction. At least xavante works on 8080 if started and everything seem to be in place. Now I want to run it as CGI from Apache but I don't know where to copy sputnik.cgi to. /usr/lib/cgi-bin/ as described in the installation instructions does not exist. Or do I have to create cgi-bin? The document root ist in webapps/htdocs/ but this does not work too. What do I have to do to get it running? Peter _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-01 02:44 |
yuri
Yuri Takhteyev < <yuri at sims.berkeley.edu>
> Now I want to run it as CGI from Apache but I don't > know where to copy sputnik.cgi to. /usr/lib/cgi-bin/ > as described in the installation instructions does > not exist. Or do I have to create cgi-bin? Unfortunately, where you put your CGI script really depends on the server configuration. /usr/lib/cgi-bin is where it would go on a default installation of most Linux distros, assuming you are root. On shared hosting, including webfaction, you can usually put cgi scripts in the same directory as your html documents. ~/webapps/htdocs/ in your case. You can, if you want, create a directory cgi-bin and put your file in ~/webapps/htdocs/cgi-bin/sputnik.cgi. Or you can just put it in ~/webapps/htdocs/sputnik.cgi. In this case you'll need to change your BASE_URL from /cgi-bin/sputnik.cgi to just /sputnik.cgi. >The > document root ist in webapps/htdocs/ but this does > not work too. This is probably a matter of permission. Webfaction in very picky about permissions on CGI scripts. You should "chmod" your file at 711: chmod 711 sputnik.cgi That is: "group" and "world" should only have "execute" access. If they don't have "execute" access, then the server cannot run your script. If they have read or write access, then the server will refuse to execute it as a matter of security. - yuri -- http://spu.tnik.org/ _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-01 02:44 |
peter
Peter Sommerfeld < <peter at rubrica.at>
Thnaks Yuri! It works. Now I have to dig into the details. Peter _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-04 20:02 |
vieuxtech
Sam Roberts < <vieuxtech at gmail.com>
Hey Peter, for what its worth, I'm using webfaction, I've a staticcgi app just for sputnik, and the app is mounted on wiki.octetcloud.com. My permissions are: -rwxrwxr-x /home/octet/webapps/sputnik/index.cgi By calling it index.cgi, http://wiki.octetcloud.com/ directed to it without explicit reference, so I set my BASE_URL="/". The RSS feeds seem to know where they are, so I think its working. Cheers, Sam _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-04 20:02 |
peter
Peter Sommerfeld < <peter at rubrica.at>
Sam Roberts schrieb: > My permissions are: > > -rwxrwxr-x /home/octet/webapps/sputnik/index.cgi > > By calling it index.cgi, http://wiki.octetcloud.com/ directed to it > without explicit reference, so I set my BASE_URL="/". The RSS feeds > seem to know where they are, so I think its working. Hey Sam, renaming to index.cgi works for the toplevel only. Other pages use still ?p=xyz. The approach described by Jim & Yury works perfekt. I did not check RSS though. Will look into it later. Peter _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-04 20:02 |
yuri
Yuri Takhteyev < <yuri at sims.berkeley.edu>
> -rwxrwxr-x /home/octet/webapps/sputnik/index.cgi Perhaps they made their CGI policy a little less draconian. They used to be picky about their group permissions as well. > By calling it index.cgi, http://wiki.octetcloud.com/ directed to it > without explicit reference, so I set my BASE_URL="/". This doesn't quite do what Peter was asking: you still have ?p= in the URLs: This works: http://wiki.octetcloud.com/?p=Another_Page This does not: http://wiki.octetcloud.com/Another_Page To get rid of ?p=, you should leave BASE_URL to point to your .cgi or .ws file, set NICE_URL to what you want to use as the prefix before the page name ("/" in Peter's case, "/en/" in mine), and then use rewrite rules to map NICE_URL/(.*) to BASE_URL.."?p=$1". - yuri -- http://spu.tnik.org/ _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-04 20:02 |
yuri
Yuri Takhteyev < <yuri at sims.berkeley.edu>
> I did not check RSS though. Will look into it later.
You should set DOMAIN to "rubrica.webfactional.com". RSS requires
absolute URLs, so you need to tell Sputnik what your full domain is.
- yuri
--
http://spu.tnik.org/
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list