|
Hi
I have 10 days (-2 days) grace on Gandi VPS so I wanted to get started with testing some Spod. First issue is their installer interface can no longer be used when I activate root, so I am reluctant to activate root if there is a way to install neko via uploading for instance a Ruby script to the Ubuntu space, and create a rails app to run it?! I have not auto installed python or perl but I can if it would be helpful. Also if I enable root I really not sure if I can just install neko from command line or if for instance I should grab the haxeneko zip folder from hugh blog and put it somewhere in the directory structure. Below is how the server directory structure is setup. Currently I have the following packages installed.. apache 2.0, MySql 5.0, ProFTPd, PHP 5.2, Php My Admin, Awstats, Ruby (mod_ruby i think), Ruby on Rails, cachePHP Now I presume I need to have a server to connect my html page to neko code, I presume mod_tora is what I need, so what do I need to set that up? In the end I want to be able to query my mysql from neko and connect to flash, but I am missing a lot of understanding of principles on the backend side of just setting up neko before I even attempt that, maybe it's partially covered at haxe.org but not in away that I follow. There are just enough gaps for me to be totally lost, I am not scared to use the commandline but probably need to understand a bit more on the wiring side, before I google up terminal commands. Also reading the info on Tora it sort of assumes quite a bit of knowledge and understanding which is a shame, since I think once the holes are filled it allows former flashers to get creative with some powerfull backend tech. Sorry if these questions seem very basic but since Neko is rarely available on server space it would be good if we have more info on setting it up on VPS for the total backend noobs like me, so I can concentrate on explaining how to use haxe flash to java devs, and maybe even one day I will be able to help them setup a VPS neko! Any assistance most welcome :) Also any links to suitable book or good literature, I have been googling round, but the web has a lot of crap and very little well written useful material. Cheers ;j -- haXe - an open source web programming language http://haxe.org |
|
Justin, I need to write real fast, but here's a basic outlook:
- You will have to activate root if you want to install mod_neko or mod_tora anyway. There's no way a script could do it, since that script will have to still have root permissions. - mod_tora is what you need (or mod_neko) to do that. It works as a plugin for apache, and after installed, you will have the same functionality as php - which means that anyone who access your .n file over the web server, it will execute the script. Tora uses less memory. 2010/7/7 [hidden email] <[hidden email]> Hi -- haXe - an open source web programming language http://haxe.org |
|
Mod tora isn't hard to work with. It doesn't require any knowledge of the process (though it is always good to know about it). You just have to install. I don't remember well all the steps needed, maybe we can make this topic into a step by step, to later post on the docs. So, I recommend you to go get the root access, if you can, start with a fresh install. I recommend going with Ubuntu since it has much more detailed support on the net, and it won't matter much what distro you choose for the server.
Then try running the installer. : ) Hopefully all will be ok and woohoo I had to build them from sources, but it isn't hard at all to achieve this. In ubuntu, you will grow very familiar with apt-get and aptitude , which will automatically install most of what you need (though not haXe :( ). With them, you install the basics to get the sources, like CVS, svn, ocamlc, gcc, etc. Then, starting by neko, go and try to compile it. ./configure , then make install . It will require some libs, like mysql, zlib, etc... You should get them over apt-get . The good part is that it will already configure the environment variables, which really are hard to find on the haXe docs which ones should be setup. With neko setup, the next (possible) step is to install haXe. Download the sources, and run ocaml install.ml (or something like that). It should run fine, and get you a nice haXe executable in the bin folder. (more later, need to finish a job right now!) Caue 2010/7/7 Cauê Waneck <[hidden email]> Justin, I need to write real fast, but here's a basic outlook: -- haXe - an open source web programming language http://haxe.org |
|
So far instructions for getting tora working on ubuntu VPS. su - root apt-get install haxe apt-get autoremove tar zxvf hxinst-linux.tgz sudo ./hxinst-linux haxelib setup haxelib install tora haxelib path tora ( returns path to tora ) cd /usr/lib/haxe/lib/tora/1,3/ haxe tora.hxml neko run.n [2010-07-08 03:09:06] Starting Tora server on 127.0.0.1:6666 with 32 threads Now I am stuck on the next part... apt-get install nano find -name 'httpd.conf' ( returns path to httpd.conf ) nano etc/apache2/httpd.conf Not sure exactly what to put in httpd.conf ?? On 8 Jul 2010, at 00:01, Cauê Waneck wrote: Mod tora isn't hard to work with. It doesn't require any knowledge of the process (though it is always good to know about it). You just have to install. I don't remember well all the steps needed, maybe we can make this topic into a step by step, to later post on the docs. So, I recommend you to go get the root access, if you can, start with a fresh install. I recommend going with Ubuntu since it has much more detailed support on the net, and it won't matter much what distro you choose for the server. -- haXe - an open source web programming language http://haxe.org |
|
Hey! That's great news!!
So... You don't actually run tora directly... here's the script http://haxe.org/doc/build/neko_linux # add NEKOPATH variable to apache2 environment vars and then upload a test.n file to your webserver path, and be happy! :) One thing to note is that all paths from tora are, differently from php, relative to the root of your file system. So to get the web path of where your .n file is, you need to call Web.getCwd() cheers 2010/7/7 [hidden email] <[hidden email]>
-- haXe - an open source web programming language http://haxe.org |
|
Caue
Really greatful for the time you put in, I am getting a restart error... root@justinfront:/# /etc/init.d/apache2 restart * Restarting web server apache2 * We failed to correctly shutdown apache, so we're now killing all running apache processes. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now! apache2: Syntax error on line 183 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/neko.load: Cannot load /usr/local/lib/neko/mod_neko2.ndll into server: /usr/local/lib/neko/mod_neko2.ndll: cannot open shared object file: No such file or directory ...fail! So I am just looking through your scripts to see if I can see what might be the prob with how my system is setup. Cheers ;j On 8 Jul 2010, at 01:59, Cauê Waneck wrote: Hey! That's great news!! -- haXe - an open source web programming language http://haxe.org |
|
just checking where stuff is... root@justinfront:/# find -name "neko.load" ./etc/apache2/mods-available/neko.load ./etc/apache2/mods-enabled/neko.load root@justinfront:/# find -name "mod_neko2.ndll" ./usr/lib/neko/mod_neko2.ndll On 8 Jul 2010, at 02:20, [hidden email] wrote:
-- haXe - an open source web programming language http://haxe.org |
|
In reply to this post by jlm@justinfront.net
hey, ! no problem :)
So.. it seems that apache can't find /usr/local/lib/neko/mod_neko2.ndll . Make sure it's there, otherwise (try to) locate in your system the ndll and cp to there cheers! On Jul 7, 2010, at 10:20 PM, [hidden email] wrote:
-- haXe - an open source web programming language http://haxe.org |
|
In reply to this post by jlm@justinfront.net
Should that be mod_tora rather than mod_noko in the scripts... just retrying your code
with changes. On 8 Jul 2010, at 02:20, [hidden email] wrote:
-- haXe - an open source web programming language http://haxe.org |
|
ok... so you have to make the changes it made yourself...
e.g. write sudo vi /etc/apache2/mods-available/neko.load once in vi write /mod_neko to find where it included this sentence press i to enter on insert mode replace mod_neko to mod_tora press esc then :x to exit and save sry : S On Jul 7, 2010, at 10:28 PM, [hidden email] wrote:
-- haXe - an open source web programming language http://haxe.org |
|
In reply to this post by jlm@justinfront.net
Progress update: the Apache2 is now running but browser seems to be just showing the binary content of the index.n and not processing it, off to sleep but if anyone has a solution let me know Cheers ;j
su - root apt-get install haxe apt-get autoremove tar zxvf hxinst-linux.tgz sudo ./hxinst-linux haxelib setup haxelib install tora sudo grep "NEKOPATH" /etc/apache2/envvars || echo "export NEKOPATH=/usr/local/lib/neko" >> /etc/apache2/envvarssudo test -f /etc/apache2/mods-available/neko.conf || echo "AddHandler neko-handler .n" >> /etc/apache2/mods-available/neko.conf( - should this line be tora-handler )?-- haXe - an open source web programming language http://haxe.org |
|
How do I remove the current NEKOPATH and change it to /usr/lib/neko
as currently etc/apache2/envvars seems to be giving /usr/local/lib/neko On 8 Jul 2010, at 05:15, [hidden email] wrote:
-- haXe - an open source web programming language http://haxe.org |
| Powered by Nabble | See how NAML generates this page |
