<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Hostmonster + python 2.5 + subversion 1.4 + django-svn + mysqldb + fcgid</title>
	<atom:link href="http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/feed/" rel="self" type="application/rss+xml" />
	<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/</link>
	<description>graffic &#38; co. adventures</description>
	<pubDate>Fri, 21 Nov 2008 00:07:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: graffic</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23761</link>
		<dc:creator>graffic</dc:creator>
		<pubDate>Sun, 30 Nov 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23761</guid>
		<description>@Brandon: Don't forget the ADMIN_MEDIA_PREFIX. Also try to keep the static files outside Django. Good luck :)

@Omar: The "NoCase" error comes from a [NC] option in the RewriteCond. I don't see that on your example. Perhaps that error is from another user? Do you have any other rewrite rules?</description>
		<content:encoded><![CDATA[<p>@Brandon: Don&#8217;t forget the ADMIN_MEDIA_PREFIX. Also try to keep the static files outside Django. Good luck <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>@Omar: The &#8220;NoCase&#8221; error comes from a [NC] option in the RewriteCond. I don&#8217;t see that on your example. Perhaps that error is from another user? Do you have any other rewrite rules?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23735</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23735</guid>
		<description>Ah ha!!  There was a syntax error in my .fcgi file..  Fixed the error and the server 500 response resolved.  Now my admin comes up, but I noticed the admin media is not visible..  Will have to iron that out :)</description>
		<content:encoded><![CDATA[<p>Ah ha!!  There was a syntax error in my .fcgi file..  Fixed the error and the server 500 response resolved.  Now my admin comes up, but I noticed the admin media is not visible..  Will have to iron that out <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23733</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Sun, 30 Nov 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23733</guid>
		<description>I have the same problem as Omar..  Installed everything fine.  Added .htaccess and xxxxx.fcgi in the /www/ directory..  installed my django app in /home/usr/myapp and created the mysql db without problem.  However when I try to access the site (currently trying http://mydomain.net/admin - via django's admin module), I get a blank screen.  When I view the webpage source I get a 500 error.  Any ideas?</description>
		<content:encoded><![CDATA[<p>I have the same problem as Omar..  Installed everything fine.  Added .htaccess and xxxxx.fcgi in the /www/ directory..  installed my django app in /home/usr/myapp and created the mysql db without problem.  However when I try to access the site (currently trying <a href="http://mydomain.net/admin" rel="nofollow">http://mydomain.net/admin</a> - via django&#8217;s admin module), I get a blank screen.  When I view the webpage source I get a 500 error.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23659</link>
		<dc:creator>Omar</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23659</guid>
		<description>Hello :D

Thanks for this great post :D

Ok, did'n work  :(

I do everithing fine, install and configure.


python -c "import django;print django.VERSION"
(1, 1, 0, 'alpha', 0)


All ok, but get :

Internal Server Error

...

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


In the error_log:

[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored. 


I have many domains in my hostmonster, if I leave the .htaccess flie as yours, all my domains cuase the 500 error

Then add line in .htaccess (RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$) :

AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]

and only the domain mydomain.com present the 500 error


echo $HOME
/home2/xxxxx


The file mysite.fcgi is:

#!/home2/xxxxx/python/bin/python
import sys, os

sys.path.insert(0, "/home2/xxxxx")

# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "dj/sample.settings"

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")


:( Any idea?


Thanks a lot :D</description>
		<content:encoded><![CDATA[<p>Hello <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Thanks for this great post <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Ok, did&#8217;n work  <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I do everithing fine, install and configure.</p>
<p>python -c &#8220;import django;print django.VERSION&#8221;<br />
(1, 1, 0, &#8216;alpha&#8217;, 0)</p>
<p>All ok, but get :</p>
<p>Internal Server Error</p>
<p>&#8230;</p>
<p>Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.</p>
<p>In the error_log:</p>
<p>[warn] RewriteCond: NoCase option for non-regex pattern &#8216;-f&#8217; is not supported and will be ignored.<br />
[warn] RewriteCond: NoCase option for non-regex pattern &#8216;-d&#8217; is not supported and will be ignored. </p>
<p>I have many domains in my hostmonster, if I leave the .htaccess flie as yours, all my domains cuase the 500 error</p>
<p>Then add line in .htaccess (RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$) :</p>
<p>AddHandler fcgid-script .fcgi<br />
RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$<br />
RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]</p>
<p>and only the domain mydomain.com present the 500 error</p>
<p>echo $HOME<br />
/home2/xxxxx</p>
<p>The file mysite.fcgi is:</p>
<p>#!/home2/xxxxx/python/bin/python<br />
import sys, os</p>
<p>sys.path.insert(0, &#8220;/home2/xxxxx&#8221;)</p>
<p># Set the DJANGO_SETTINGS_MODULE environment variable.<br />
os.environ['DJANGO_SETTINGS_MODULE'] = &#8220;dj/sample.settings&#8221;</p>
<p>from django.core.servers.fastcgi import runfastcgi<br />
runfastcgi(method=&#8221;threaded&#8221;, daemonize=&#8221;false&#8221;)</p>
<p> <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> Any idea?</p>
<p>Thanks a lot <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OLKR</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23544</link>
		<dc:creator>OLKR</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23544</guid>
		<description>I changed the root symbol manually. I thought it would be better to hide the original site :-)

So - you have to imagine it like:

username@server.com [~]# svn
-bash: svn: command not found

Do you have an other idea?</description>
		<content:encoded><![CDATA[<p>I changed the root symbol manually. I thought it would be better to hide the original site <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So - you have to imagine it like:</p>
<p><a href="mailto:username@server.com">username@server.com</a> [~]# svn<br />
-bash: svn: command not found</p>
<p>Do you have an other idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graffic</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23543</link>
		<dc:creator>graffic</dc:creator>
		<pubDate>Sun, 30 Nov 2008 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23543</guid>
		<description>@OLKR: The first thing that is quite strange is the root symbol on your terminal. But at least you're able to execute "svn". Check if you can use svn normally.</description>
		<content:encoded><![CDATA[<p>@OLKR: The first thing that is quite strange is the root symbol on your terminal. But at least you&#8217;re able to execute &#8220;svn&#8221;. Check if you can use svn normally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OLKR</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23505</link>
		<dc:creator>OLKR</dc:creator>
		<pubDate>Sun, 30 Nov 2003 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23505</guid>
		<description>$ wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.bz2
$ wget http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.bz2
$ tar xjf subversion-1.4.6.tar.bz2
$ tar xjf subversion-deps-1.4.6.tar.bz2
$ mkdir svn

$ cd subversion-1.4.6
$ ./configure –prefix=$HOME/svn –with-expat=builtin –with-pic –with-ssl
$ make
$ make install

$ cd
$ svn/bin/svn –version
svn, version 1.4.6 (r28521)
compiled May 20 2008, 09:47:21
…
***.com [~]# cd
***.com [~]# svn/bin/svn -version
svn: invalid option character: e
Type 'svn help' for usage.
***.com [~]#


I did it completely in your way - but this error occurs after the installation in your way...what can I do?</description>
		<content:encoded><![CDATA[<p>$ wget <a href="http://subversion.tigris.org/downloads/subversion-1.4.6.tar.bz2" rel="nofollow">http://subversion.tigris.org/downloads/subversion-1.4.6.tar.bz2</a><br />
$ wget <a href="http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.bz2" rel="nofollow">http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.bz2</a><br />
$ tar xjf subversion-1.4.6.tar.bz2<br />
$ tar xjf subversion-deps-1.4.6.tar.bz2<br />
$ mkdir svn</p>
<p>$ cd subversion-1.4.6<br />
$ ./configure –prefix=$HOME/svn –with-expat=builtin –with-pic –with-ssl<br />
$ make<br />
$ make install</p>
<p>$ cd<br />
$ svn/bin/svn –version<br />
svn, version 1.4.6 (r28521)<br />
compiled May 20 2008, 09:47:21<br />
…<br />
***.com [~]# cd<br />
***.com [~]# svn/bin/svn -version<br />
svn: invalid option character: e<br />
Type &#8217;svn help&#8217; for usage.<br />
***.com [~]#</p>
<p>I did it completely in your way - but this error occurs after the installation in your way&#8230;what can I do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23338</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Wed, 30 Nov 2005 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23338</guid>
		<description>I just wanted to say thanks, your instructions worked perfectly!</description>
		<content:encoded><![CDATA[<p>I just wanted to say thanks, your instructions worked perfectly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: issin</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23261</link>
		<dc:creator>issin</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23261</guid>
		<description>Thanks for the share.
I have done every step, but show "500 Internal Server Error".

This is Error Logs on cPanel.

MAIN error_log:

suexec failure: could not open log file
fopen: Permission denied
[Fri Oct 17 03:28:12 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Fri Oct 17 03:28:12 2008] [error] [client 202.1.*.*] Premature end of script headers: index.fcgi
suexec failure: could not open log file
fopen: Permission denied
[Fri Oct 17 03:28:13 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Fri Oct 17 03:28:13 2008] [error] [client 202.1.*.*] Premature end of script headers: index.fcgi

SUEXEC error_log:
[2008-10-17 03:28:12]: uid: (2409/daxxxxxx) gid: (2409/daxxxxxx) cmd: index.fcgi
[2008-10-17 03:28:13]: uid: (2409/daxxxxxx) gid: (2409/daxxxxxx) cmd: index.fcgi</description>
		<content:encoded><![CDATA[<p>Thanks for the share.<br />
I have done every step, but show &#8220;500 Internal Server Error&#8221;.</p>
<p>This is Error Logs on cPanel.</p>
<p>MAIN error_log:</p>
<p>suexec failure: could not open log file<br />
fopen: Permission denied<br />
[Fri Oct 17 03:28:12 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.<br />
[Fri Oct 17 03:28:12 2008] [error] [client 202.1.*.*] Premature end of script headers: index.fcgi<br />
suexec failure: could not open log file<br />
fopen: Permission denied<br />
[Fri Oct 17 03:28:13 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.<br />
[Fri Oct 17 03:28:13 2008] [error] [client 202.1.*.*] Premature end of script headers: index.fcgi</p>
<p>SUEXEC error_log:<br />
[2008-10-17 03:28:12]: uid: (2409/daxxxxxx) gid: (2409/daxxxxxx) cmd: index.fcgi<br />
[2008-10-17 03:28:13]: uid: (2409/daxxxxxx) gid: (2409/daxxxxxx) cmd: index.fcgi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://fitri.manzanisimo.net/2008/05/23/hostmonster-python-25-subversion-14-django-svn-mysqldb-fcgid/#comment-23072</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Mon, 30 Nov 2009 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://fitri.manzanisimo.net/?p=106#comment-23072</guid>
		<description>I added it to the path. works now...I think. :)
I'm gonna try connecting it with Eclipse and see if it works. :)
Thanks for all</description>
		<content:encoded><![CDATA[<p>I added it to the path. works now&#8230;I think. <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;m gonna try connecting it with Eclipse and see if it works. <img src='http://fitri.manzanisimo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks for all</p>
]]></content:encoded>
	</item>
</channel>
</rss>
