Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-06-30 11:06:55

joek
New member
Registered: 2009-06-30
Posts: 5

Newbie Installation Help

Hi,

I just downloaded and installed xinha according to the NewbieGuide at http://trac.xinha.org/wiki/NewbieGuide.  When I load my test page (test.html), I see a rectangle and I can type there, but the Xinha menu bar does not appear.  It is as if the apache2 server is reading the <textarea> syntax, but not accessing the java.  I am testing this on my own linux SuSE 11 server running apache2.

I extracted the tar file to /server/www/xinha and my server root is /server/www/htdocs.  I assume that the xinha directory should not be under the website root.  Is that correct?  Should it have been placed under my cgi-bin directory?

Do I need to set permisions on the xinha directory?  If so, to what?  Do I also need to alter permissions on files within this directory and subdirectories?  If so, to what?

Do I need to alter my apache2 configuration?  ... to make it aware of the directory?  ... to allow java?

Thanks

Joe

Offline

#2 2009-06-30 11:14:08

joek
New member
Registered: 2009-06-30
Posts: 5

Re: Newbie Installation Help

PS,

I get the same results (no menubar and just a textarea rectangle) with firefox, konqueror and Opera.

My xinha version is 0.95 stable downloaded 6/30/2009

Offline

#3 2009-07-02 07:56:53

joek
New member
Registered: 2009-06-30
Posts: 5

Re: Newbie Installation Help

Note, I am testing this from a test server accessible from the local network, not the internet.

I tried using the Firefox Live HTTP headers plugin and saw two things.

First, I was giving the full path to XinhaCore.js and my_config.js.  In other words, I listed the full path as I understood the newbie guide suggested.  This would be from the server root, as in /server/www/xinha/XinhaCore.js.  (/server is a directory off the root)

HTTP Headers indicated that it was appending the full path to http://localhost/ as in http://localhost/server/www/xinha/XinhaCore.js.  Well that would be wrong, since the web site root is /server/www/htdocs/, and the xinha directory is /server/www/xinha/.  Given that I have included a directory directive in my apache2 configuration file for the xinha directory (/server/www/xinha), it should work if I list the xinha directory as /xinha/ and the full path to XinhaCor.js as /xinha/XinhaCore.js and to my_config.js as /xinha/my_config.js.

Second, after doing this HTTP Headers indicates that it is looking for XinhaCore.js in http://localhost/xinha/XinhaCore.js as it should, however, it also indicates this to be forbidden (HTTP/1.x 403 Forbidden).  OK, so it is a permissions issue.  I discovered that the js files were not executable and changed permissions to make them executable.  They are now set for executable for user, group and all.  Unfortunately, Live HTTP Headers still indicates that these .js files are Forbidden.  Could I have some apache setting wrong?  Here is my apache2 directive:

ScriptAlias /xinha/ "/server/www/xinha"
<Directory "/server/www/xinha/">
Options +ExecCGI +Includes
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>

Offline

#4 2009-07-02 08:58:11

joek
New member
Registered: 2009-06-30
Posts: 5

Re: Newbie Installation Help

Is this a Security Flaw?

OK, now I tried putting the xinha directory into my web root (/server/www/htdocs/xinha/).  Now the example pages show the icons, although  when I click on Submit in the ExtendedDemo page, it does not actually save my changes.  I suppose that is because it is not actually saving to a database, which of course a generic demo would not be able to do because it would be unaware of any DataBase Management System on my machine.

Is this not a security flaw?  If the xinha directory is under my root, is this not a security flaw?  Or is it safe as long as the directory is not writable?  I did notice that files in this directory are downloadable.

Thanks,

Joe

Offline

#5 2009-07-06 04:24:07

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Newbie Installation Help

Hi joek,
Xinha is written in Javascript and as such is executed in the users browser. For that the the files have to be readable by the web server, like any HTML or image.

Offline

#6 2009-07-06 12:30:27

joek
New member
Registered: 2009-06-30
Posts: 5

Re: Newbie Installation Help

Ray

OK, so i guess it is appropriate (not considered a security flaw to put the Xinha directory under the web server root.

Thanks

Joe

Offline

Board footer

Powered by FluxBB