Install with Apache FastCGI

16 views
Skip to first unread message

Jay Poss

unread,
Jan 22, 2013, 4:29:25 PM1/22/13
to aspen...@googlegroups.com
I am trying this on BlueHost which I think works similarly to the other large shared hosters like DreamHost and HostGator.
So far I got it to work when specifying the directory only (no filename) in the URL. The index.html  works (showing a simple greetings message).
If I specify a file name, it does not work. I have tried the virtual path concept using %name as the directory name, but no luck yet.

Will keep trying.

I think there is a worthwhile opportunity to use Python on these big hosters as an alternative to PHP, but it has been a pain. There are lots of blog entries showing how to accomplish this task (for other Python frameworks). Most of what I tried from them did not work. The BlueHost support (script team) responded to my request for help, but the response was pretty useless. Maybe they just don't want Python apps using FastCGI running on their servers.

I am curious if anyone else has been able to use Aspen in this environment. I am glad to share notes.

Jay Poss

unread,
Jan 24, 2013, 2:28:46 PM1/24/13
to aspen...@googlegroups.com
Finally got it to work. Thanks to PJZ for his help.

Chad Whitacre

unread,
Jan 24, 2013, 2:59:24 PM1/24/13
to Jay Poss, aspen-users
Nice! Do we need to update the fcgi_aspen doc?




chad


On Thu, Jan 24, 2013 at 2:28 PM, Jay Poss <jay...@ymail.com> wrote:
Finally got it to work. Thanks to PJZ for his help.

--
You received this message because you are subscribed to the Google Groups "aspen-users" group.
To post to this group, send email to aspen...@googlegroups.com.
To unsubscribe from this group, send email to aspen-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jay Poss

unread,
Jan 24, 2013, 5:34:12 PM1/24/13
to aspen...@googlegroups.com, Jay Poss
Note - The Aspen web pages respond fast. Page refresh (which shows different content) is almost instant. Of course they are trivial, no db interaction.
The doc is accurate, but missing some key points.
1. Apache can use 2 different FastCGI modules. I think the SetHandler directive is different depending on which mod is used (fastcgi vs fcgid)
2. The name of the fcgi shell script file must be in the URL path.
   This requirement is necessary when using the Files option (probably a way around it, but that requires more Apache research).
   It is not required when using Apache's mod_rewrite (but I could not get the rewrite approach to work except with the index.html)
  All other framework directions I've seen use rewrite. The Files method is cleaner to setup, but conceptually somewhat confusing.

There are some other points I might would make, but these were the key ones to me.

If you would like me to put together a more comprehensive doc, I would be glad to.
Reply all
Reply to author
Forward
0 new messages