newLISP Fan Club

Forum => So, what can you actually DO with newLISP? => Dragonfly => Topic started by: joejoe on November 13, 2009, 05:14:57 PM

Title: How to Dragonfly on nearlyfreespeech.net ?
Post by: joejoe on November 13, 2009, 05:14:57 PM
Hi -



Ive set up a domain w/ nearlyfreespeech.net, and ssh'd in and retreived the dragonfly code w/ the hg command, changed directory to the example-site as indicated in the Getting Started docs, and then ran:



./newlispServer



When I go to mysite.com:8080 the site just hangs.



If I navigate to the example-site directory like this:



http://mysite.com/dragonfly-newlisp/example-site



I get this error:



ERR: problem accessing file : "/home/public/dragonfly-framework/lib/utils.lsp"



Is there something else that needs configuring?



Thanks!



also -- if this is not the place to ask Dragonfly-related questions, please direct me to the appropriate place. I would think that it would almost merit its own Forum on the nL Fan Club forums? thanks again! :D
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: Kirill on November 13, 2009, 05:19:09 PM
You can't use newLISP http server, you have to use Apache. Place the contents of the example-site directory into your /home/public. Then go to <whatever>.nfshost.com.
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: cormullion on November 14, 2009, 01:34:42 AM
The two problems I've encountered with NFS are file permissions, newLISP versions, and file permissions. :)



I say 'newLISP versions' because the NFS installed version of newLISP is rarely the very latest, unless you install your own private version. They're currently running 10.1.00 on BSD, so don't rely on anything flagged as being 10.1.1 or later here (//http) being available.
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: hilti on November 14, 2009, 05:28:39 AM
QuoteYou can't use newLISP http server, you have to use Apache. Place the contents of the example-site directory into your /home/public. Then go to <whatever>.nfshost.com.


That's right! We use this method for runDragonfly.com which also runs at nfshost.com

Just copy all files from the directory "example-site" to "/public" and set the file permission.



It should work out of the box! No SSH is required.



Cheers!

Hilti
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: joejoe on November 14, 2009, 08:55:35 AM
Super! thanks for the help.



I moved the contents of example-site to the /home/public folder and w/out permission changes it loaded the home page. When I go to any other page from the menu, it says:



Not Available

You have requested a page or object that was not found on the server. This may be the result of a typo or broken link.



I ran


chgrp web index.cgi

because i understand that the host requires pages that write content be chgrp to web, but im not sure what further permissions to change.



would anyone on nearlyfreespeech.net w/ dragonfly be so kind to share these permissions? thanks very kindly for the responses and assistance.
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: cormullion on November 14, 2009, 10:45:59 AM
Is that a nfs.net error rather than a Dragonfly error? (The formatting of the error should tell you.)



I would check the permissions on all files and folders likely to be accessed. For example, in views/, partials/ should be 755. Index.cgi should be at least 755 - if it's 744 you'll see (or rather I saw) a "Error 500 Internal Server Error (Premature end of script headers: index.cgi)" error). If plugins-active/ is set to 754 rather than 755, I see the dragonfly error page. And so on.



Sorry this is unscientific. I usually just hack my way to the answer - others try to adopt a more intelligent approach, like understanding the principles... ;)
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: Kirill on November 14, 2009, 12:42:13 PM
Don't forget about .htaccess...
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: joejoe on November 14, 2009, 12:50:22 PM
thanks for helping!



perhaps there is no issue, but here is what i do exactly.



in the /home/public i type:


hg clone https://dragonfly-newlisp.googlecode.com/hg/ dragonfly-newlisp

then i


cp -r dragonfly-newlisp/example-site/* .

and so i have everything that was in example-site now in /home/public



at this point, i go to xyz.com and i see the dragonfly default page with the welcome and ten reasons loading fine.



this is with no file permission changes at all.



then i click on "Welcome", which is the url xyz.com/welcome and i get this message:


www.xyz.com
http://www.xyz.com/welcome

You have requested a page or object that was not found on the server. This may be the result of a typo or broken link.

Error 404 Not Found (File does not exist: welcome)
nearlyfreespeech.net


when i look at permissions for the views folder, it is already set to 775.



inside the views folder, all the html pages are set to 664.



i chang the welcome.html permission to 775 and reload /welcome and still the same message. even when i chmod welcome.html to 777 i get the same 404 not found (from nearlyfreespeech.net).



/views/partials is already set to 775 so i dont change that, and so is every other folder in /home/public, including the dragonfly-framework/plugins-active, and that is where i am.



it loads the homepage default page fine, but any link off the menubar gives the Not Available 404 not found (a nearlyfreespeech.net page).



Do any of the files/folder need to be set to 777? Anything else i might be missing?



*** i see Kirill just mentioned a .htacess file. I dont see one next to the index.cgi -- is this something i create?



thanks much again!
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: joejoe on November 14, 2009, 12:55:03 PM
got it! --



i guess when i copied the files from example-site to the /home/public, i did not carry over the .htacess file.



i just did it again and it worked fine, including copying over the .htaccess file.



okay, cool!! :D



so, for the record, no file permission changes were necessary to load the default site and all its pages.



thanks a lot! that is quite easy! :0)
Title: Re: How to Dragonfly on nearlyfreespeech.net ?
Post by: hilti on November 15, 2009, 05:18:24 AM
I'm glad You figured it out!



Have fun with Dragonfly!

Hilti