Re: [Radiant] Set-Cookie: appearing on page

2006-10-04 Thread John Tsombakos
On 10/3/06, John Tsombakos [EMAIL PROTECTED] wrote:
 On 10/2/06, Oliver Baltzer [EMAIL PROTECTED] wrote:

  Try mod_fastcgi, I have no problem with that and Rails. For me fcgid makes
  a lot of trouble in a different non-Rails setup and it would not surprise
  me if it's fcgid that adds those headers at the end of the response.
 

I tried running under Mongrel, and it runs fine. No extra headers.

The odd part is, when (running under Apache/fcgid) clicking the plus
to expand the item, it takes quite a while to respond. The spinner
shows for upward of 20 seconds. There isn't any problem with the
database (mysql) - everything else runs fine and quick.

Is anyone running radiant under apache with fcgid without problems? I
tried posting on the Rails mailing list to see if anyone has any
problems with fcgid / ajax / headers, but as usual I haven't received
any responses.

Thanks
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] No entries in log files

2006-10-03 Thread John Tsombakos
On 10/3/06, Mislav Marohnić [EMAIL PROTECTED] wrote:
 Check the log levels for the production mode. The current level may be :warn

 -M

Ah, true. Missed that one.

But would that cause Apache not to make an entry in it's log file?
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Set-Cookie: appearing on page

2006-10-03 Thread John Tsombakos
On 10/2/06, Oliver Baltzer [EMAIL PROTECTED] wrote:

 Try mod_fastcgi, I have no problem with that and Rails. For me fcgid makes
 a lot of trouble in a different non-Rails setup and it would not surprise
 me if it's fcgid that adds those headers at the end of the response.

 I personally am in the process of switching all my fastcgi Rails instances
 over to Mongrel as it seems to perform a little better and is much easier
 to manage in many aspects (suexec, process management, load-balancing,
 etc.).


I don't have any problems with fcgid with other Rails apps, just this
one. Looking at the same page on the Radiant demo site, I see all of
the headers, but they are properly in the Header of the response. Just
seems odd why fcgid would pull those items out (and they aren't
consecutive either - if they were the last 3 or 4, then maybe, but
it's pulling like the second, fourth and fifth header item)

I do have lighttpd installed, but not running on the server. Maybe
it's time to figure out how to have this app running on lightty and
have apache proxy requests to it (grr.. I just got Apache to serve up
the app correctly :/ )

Thanks
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Set-Cookie: appearing on page

2006-10-02 Thread John Tsombakos
When I try loading that specific URL for the children item, as I had
mentioned, the header items appear at the bottom of the page. The page
also takes a relativly long time to load too. I'm not sure why it's
taking so long (clicking between items is relativly instant -
expanding the item takes anywhere from 5 to 10 seconds.)
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] No entries in log files

2006-10-02 Thread John Tsombakos
Ok, this is odd.

I had switched Radiant to use production mode, and now I'm not seeing
any access entries written to any log file - either Apache's log in
/var/log/apache2/access.log, nor any of the rails log files in my
radiant/log/*.log files.

Why am I not seeing any entries? (It may help track down my header
problem , thought I doubt it...)

Thanks.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant in Rails Production mode

2006-10-02 Thread John Tsombakos
On 10/1/06, John Tsombakos [EMAIL PROTECTED] wrote:

 Thanks. I'm actually using fcgid, so I'm not sure where to put the
 config. I see instructions to put

  DefaultInitEnv  RAILS_ENV production

 in the /etc/apache2/mods-enabled/fcgid.conf file, but I don't want to
 enable production mode for all my rails apps. Can I put the
 DefaultInitEnv into the .htaccess?

 Thanks again.


I ended up putting that line into the .htaccess file in my public
folder and that did the trick.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Radiant in Rails Production mode

2006-10-01 Thread John Tsombakos
Hi,

I had Radiant initially set up in (Rails) development mode. I wanted
to switch it to production mode, for performance and to see if it
fixed the header problem I'm having on the admin pages.

I thought all I needed to do was to add a line to my Apache config file:

SetEnv RAILS_ENV production

I tried that, but the app was still in development mode (I could tell
because it was using the dev database)

I had to change the line is the environment.rb file to get it to
switch to production. Shouldn't the change in the Apache config be
enough? I'm running Ubuntu Linux and Apache 2.0.55

Thanks,

jt

(and still can't figure out why I'm getting headers in the middle of
the page :/)
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Set-Cookie: appearing on page

2006-10-01 Thread John Tsombakos
On 10/1/06, Mislav Marohnić [EMAIL PROTECTED] wrote:
 On 9/30/06, John Tsombakos [EMAIL PROTECTED] wrote:
  It's Apache 2.0.55, standard setup with Ubuntu Linux.

 Yeah, but that's now complete info. You power Rails with mod_ruby, cgi,
 fastcgi, proxying to mongrel?

Ah, sorry. Apache with fcgid.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Set-Cookie: appearing on page

2006-10-01 Thread John Tsombakos
On 10/1/06, John Tsombakos [EMAIL PROTECTED] wrote:
 On 10/1/06, Mislav Marohnić [EMAIL PROTECTED] wrote:
  On 9/30/06, John Tsombakos [EMAIL PROTECTED] wrote:
   It's Apache 2.0.55, standard setup with Ubuntu Linux.
 
  Yeah, but that's now complete info. You power Rails with mod_ruby, cgi,
  fastcgi, proxying to mongrel?

 Ah, sorry. Apache with fcgid.


Well, I tried switching to cgi (in .htaccess) and I don't see the
headers on the page. Switching back to fcgid shows the headers again.
So, it seems to be something with fcgid then.

Thanks.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Set-Cookie: appearing on page

2006-09-29 Thread John Tsombakos
On 9/29/06, Mislav Marohnić [EMAIL PROTECTED] wrote:
On 9/29/06, Mislav Marohnić [EMAIL PROTECTED]
 wrote:
Your problem doesn't seem to me like a client-side problem because you can insert response headers into the page by an accident.Sorry. Here I meant to say you CAN'T insert response headers into the page by an accident
It probably is a server problem. When I run via script/server, it runs just fine.Now I have to find _that_ Apache setting Thanks,jt 
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

[Radiant] Still problems with Radiant in a Subdirectory

2006-09-24 Thread John Tsombakos
I'm still having problems trying to get Radiant to work in a
subdirectory. I've tried most of the suggestions but am still getting
all sorts of errors.

I tried adding the behavior that was suggested, but that generated an
error in the Apache log and an Application error is generated:

/var/www/radiant/public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:140:in
`load': /var/www/radiant/public/../config/../app/behaviors/root_behavior.rb:12:
parse error, unexpected kEND, expecting $ (SyntaxError)
from 
/var/www/radiant/public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:140:in
`load'

I tried adding the line to the environment.rb file:

ActionController::AbstractRequest.relative_url_root ='/radiant/'

but that doesn't help.

It sorts of work but the stylesheet doesn't load, as it's trying to
load it from the root of my web server. I changed the layout to not do
/style.css but just style.css and that loads fine. However all of the
links for the articles are based off the root of the server, not the
subdirectory.

In the Admin interface (which works in the subdirectory), when I try
to click the '+' to expand an item, it takes quite a while for a
response, and then the HTML headers are displayed on the page:

Set-Cookie: _session_id=98a0068fd3ae9f53b6cc850ec7500577; path=/
Keep-Alive: timeout=15, max=97 Connection: Keep-Alive
Transfer-Encoding: chunked Content-Type: text/html;charset=utf-8 0

Any more hints to get this working would really be appreciated.

Thanks.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Problem setting up Radiant

2006-09-20 Thread John Tsombakos
On 9/20/06, Mislav Marohnić [EMAIL PROTECTED] wrote:
 John,

 There really wasn't a need to spawn a separate thread about this. I'm having
 the same issue (as you've already read) and I'm working on it to fix. The
 behavior suggested is rough and the code isn't tested, it's just a proposed
 solution. I'm going to post updates when I reach a solution solid enough to
 share with the community.

Yes, I now know there's an existing thread. When I originally checked
the archive there wasn't, and by the time I got to joining the list
and posting, it had appeared.

The behavior doesn't seem to work, it generates an error for me. And I
don't know where to setAbstractRequest.relative_url_root  -
environment.rb? and set it to my root folder?

thanks and sorry
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Problem setting up Radiant

2006-09-19 Thread John Tsombakos
On 9/19/06, John Tsombakos [EMAIL PROTECTED] wrote:
 I'm looking for some hints on how to set up Radiant (and by extension
 any rails app) under a subdirectory. (running Ubuntu with Apache2)

Figures, as soon as I post, I see the recent messages about just
exactly this. My question is then, where do I set
AbstractRequest.relative_url_root as described on the wiki page?

Thanks.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Problem setting up Radiant

2006-09-19 Thread John Tsombakos
On 9/19/06, John Tsombakos [EMAIL PROTECTED] wrote:
 On 9/19/06, John Tsombakos [EMAIL PROTECTED] wrote:
  I'm looking for some hints on how to set up Radiant (and by extension
  any rails app) under a subdirectory. (running Ubuntu with Apache2)

 Figures, as soon as I post, I see the recent messages about just
 exactly this. My question is then, where do I set
 AbstractRequest.relative_url_root as described on the wiki page?

 Thanks.


Sigh.

I just can't get it working. I tried added the behavior that John suggested -

behaviors/root_behavior.rb

   class RootBehavior  Behavior::Base

 register Root

 def page_url
   if parent_behavior?
 clean_url(parent_behavior.child_url(@page))
   else
 clean_url(/subfolder/[EMAIL PROTECTED])
   end
 end
   end

But now the app doesn't start at all. I get an error:

/var/www/radiant/public/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:140:in
`load': /var/www/radiant/public/../config/../app/behaviors/root_behavior.rb:12:
parse error, unexpected kEND, expecting $ (SyntaxError)


I like Rails, but I have soo many problems just getting apps to run,
it's getting to be more trouble than it's worth!
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant