How to Dragonfly on nearlyfreespeech.net ?

A web framework in newLISP

How to Dragonfly on nearlyfreespeech.net ?

Postby joejoe » Sat Nov 14, 2009 1:14 am

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
joejoe
 
Posts: 134
Joined: Thu Jun 25, 2009 5:09 pm

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby Kirill » Sat Nov 14, 2009 1:19 am

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.
Kirill
 
Posts: 75
Joined: Wed Oct 31, 2007 1:21 pm

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby cormullion » Sat Nov 14, 2009 9:34 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 being available.
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby hilti » Sat Nov 14, 2009 1:28 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.


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.uberberg.com
hilti
 
Posts: 138
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby joejoe » Sat Nov 14, 2009 4:55 pm

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

Code: Select all
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.
joejoe
 
Posts: 134
Joined: Thu Jun 25, 2009 5:09 pm

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby cormullion » Sat Nov 14, 2009 6:45 pm

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... ;)
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby Kirill » Sat Nov 14, 2009 8:42 pm

Don't forget about .htaccess...
Kirill
 
Posts: 75
Joined: Wed Oct 31, 2007 1:21 pm

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby joejoe » Sat Nov 14, 2009 8:50 pm

thanks for helping!

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

in the /home/public i type:

Code: Select all
hg clone https://dragonfly-newlisp.googlecode.com/hg/ dragonfly-newlisp


then i

Code: Select all
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:

Code: Select all
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
 
Posts: 134
Joined: Thu Jun 25, 2009 5:09 pm

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby joejoe » Sat Nov 14, 2009 8:55 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)
joejoe
 
Posts: 134
Joined: Thu Jun 25, 2009 5:09 pm

Re: How to Dragonfly on nearlyfreespeech.net ?

Postby hilti » Sun Nov 15, 2009 1:18 pm

I'm glad You figured it out!

Have fun with Dragonfly!
Hilti
--()o Dragonfly web framework for newLISP
http://dragonfly.uberberg.com
hilti
 
Posts: 138
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron