|
| Re:Install Script for Django 2007/12/20 09:09 |
|
|
Ah, progress... I added ExecCGI and now I'm getting an Internal Server Error.
|
|
|
|
The administrator has disabled public write access. |
jezdez (User)
Posts: 20
|
| Re:Install Script for Django 2007/12/20 09:31 |
|
|
Though this sounds weird but this should be a good sign :)
Try to look in /home/USERNAME/logs/error_log or in /var/log/apache2/error.log (or whereever your apache's error log might be)
|
|
|
|
The administrator has disabled public write access. |
|
| Re:Install Script for Django 2007/12/20 09:55 |
|
|
[Thu Dec 20 11:46:24 2007] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Thu Dec 20 11:46:24 2007] [error] [client x.x.x.x] Premature end of script headers: mysite.fcgi
By the way, I really appreciate all your help, jezdez. :)
|
|
|
|
The administrator has disabled public write access. |
jezdez (User)
Posts: 20
|
| Re:Install Script for Django 2007/12/20 11:01 |
|
|
Ah, wait a sec, maby you haven't switched to "FCGId (run as virtual server owner)" as "PHP script execution mode" under Server Configuration > Website Options.
Also make sure the mod_fcgid Apache module is enabled.
|
|
|
|
The administrator has disabled public write access. |
|
| Re:Install Script for Django 2007/12/20 11:29 |
|
|
Ah, wait a sec, maby you haven't switched to "FCGId (run as virtual server owner)" as "PHP script execution mode" under Server Configuration > Website Options.
I set it to "FCGId (run as virtual server owner)", still no dice.
Also make sure the mod_fcgid Apache module is enabled.
It is.
Quick question: why would "PHP script execution mode" have any effect? PHP != Python
|
|
|
|
The administrator has disabled public write access. |
jezdez (User)
Posts: 20
|
| Re:Install Script for Django 2007/12/20 12:04 |
|
|
I actually asked because of the fcgid module, since I assumed you have PHP running via mod_fcgid. So yes, PHP is not Python, thank god.
Do you also have set "Run CGI scripts as domain owner?" to yes?
|
|
|
|
The administrator has disabled public write access. |
|
| Re:Install Script for Django 2007/12/20 12:11 |
|
|
Apparently my problem lies deeper...
I created a test.php script (<?php print 'hello world'; ?>), and I'm getting the same error:
[Thu Dec 20 14:07:46 2007] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Thu Dec 20 14:07:46 2007] [error] [client x.x.x.x] Premature end of script headers: test.php
Do you also have set "Run CGI scripts as domain owner?" to yes?
Indeed I do.
So yes, PHP is not Python, thank god.
Amen to that! :)
|
|
|
|
The administrator has disabled public write access. |
jezdez (User)
Posts: 20
|
| Re:Install Script for Django 2007/12/20 12:32 |
|
|
Hmpf, what else could that be...?
Anyone else? Joe?
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 3924
|
| Re:Install Script for Django 2007/12/20 14:04 |
|
|
[Thu Dec 20 14:07:46 2007] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Thu Dec 20 14:07:46 2007] [error] [client x.x.x.x] Premature end of script headers: test.php
This particular error might be an issue I just saw on another users box...check ~/etc/fcgi-bin/php5.fcgi to be sure the php binary that is being called is a php-cgi binary, rather than a php-cli (or just php, possibly, depends on the OS/version). If it's the CLI variant it is feeding out results without proper headers and Apache refuses to serve them.
But, that wouldn't explain Python problems.
It could also just be permissions. If you have the "it wasn't working, so I chmod 777'ed it just to be SURE it wasn't a permissions problem" instinct, you'll want to revert back to 750 or less (suexec will never run anything that is world or group writable).
|
|
|
|
The administrator has disabled public write access. |
|