How to Dragonfly on nearlyfreespeech.net ?

Started by joejoe, November 13, 2009, 05:14:57 PM

Previous topic - Next topic

joejoe

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">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

Kirill

#1
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.

cormullion

#2
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 http://www.newlisp.org/downloads/newLISP-10.1-Release.html">here being available.

hilti

#3
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
--()o Dragonfly web framework for newLISP

http://dragonfly.apptruck.de\">http://dragonfly.apptruck.de

joejoe

#4
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.

cormullion

#5
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... ;)

Kirill

#6
Don't forget about .htaccess...

joejoe

#7
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!

joejoe

#8
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)

hilti

#9
I'm glad You figured it out!



Have fun with Dragonfly!

Hilti
--()o Dragonfly web framework for newLISP

http://dragonfly.apptruck.de\">http://dragonfly.apptruck.de