website issues
-
- Developer
- Posts: 2150
- Joined: Mon Apr 23, 2007 1:17 am
- Location: Pennsylvania
- Contact:
website issues
It appears that VS's website is experiencing some major issues with handing php responses. Other sourceforge sites dont seem to be experiencing this but i dont know if any use php as extensively as VS does. PhP files will sometimes ask to be downloaded rather than rendered, blank pages. Usually refreshing a few times fixes it. It happens all over the site on multiple browsers and OS's.
-
- Bounty Hunter
- Posts: 178
- Joined: Mon Sep 26, 2005 1:15 am
Re: website issues
I experience exactly thatsafemode wrote:It appears that VS's website is experiencing some major issues with handing php responses. Other sourceforge sites dont seem to be experiencing this but i dont know if any use php as extensively as VS does. PhP files will sometimes ask to be downloaded rather than rendered, blank pages. Usually refreshing a few times fixes it. It happens all over the site on multiple browsers and OS's.
the webserver mimes are configged wrong, but it behaves very erratic, probably depending on load of somekind.
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact:
-
- ISO Party Member
- Posts: 410
- Joined: Tue Jun 26, 2007 7:15 pm
I'm still seeing it.
I saw this problem once before on another forum, and it turned out their host had some servers screwing up and didn't feel like fixing the problem... I'm a little shady on the details, but they had to switch to a different host.
(Also lost all their old content, but that wasn't because of hardware failures; the old host just wouldn't give them access to it unless a fee was paid, and the admin decided to give them the finger and start over again instead.)
I saw this problem once before on another forum, and it turned out their host had some servers screwing up and didn't feel like fixing the problem... I'm a little shady on the details, but they had to switch to a different host.
(Also lost all their old content, but that wasn't because of hardware failures; the old host just wouldn't give them access to it unless a fee was paid, and the admin decided to give them the finger and start over again instead.)
-
- Bounty Hunter
- Posts: 178
- Joined: Mon Sep 26, 2005 1:15 am
it has php mime defined too often, on the webserver, maybe it gets included multiple times?
it cycles from
x-http-php
x-http-php3
x-http-php4
etc.. untill it hits the proper one.
it has worsened it sooner
you should remove all php related rules from your .htaccess
this should be configged at the sitewide cfg properly..
this is a security risk btw!
it cycles from
x-http-php
x-http-php3
x-http-php4
etc.. untill it hits the proper one.
it has worsened it sooner
you should remove all php related rules from your .htaccess
this should be configged at the sitewide cfg properly..
this is a security risk btw!
-
- Bounty Hunter
- Posts: 178
- Joined: Mon Sep 26, 2005 1:15 am
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact:
ForceType isn't the problem. I can see that the buggy pages are all being sent with the application/x-httpd-php mimetype.
I'm going to try some addhandler's.... I still don't understand what is going on when that happens. It seems that it should be giving a 500 error if mod_php isn't available since we use php_value directives in the .htaccess.
I'm going to try some addhandler's.... I still don't understand what is going on when that happens. It seems that it should be giving a 500 error if mod_php isn't available since we use php_value directives in the .htaccess.
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact:
This is a problem with sourceforge's Apache PHP module on one of their servers. I tried putting a syntax error in, and it worked 100% of the time. Add in any other code, even blank and that error happened.
Anyway, I found that they have a PHP cgi binary at /usr/bin/php.
I made a simple CGI script to wrap around the PHP executable.
(Actually I added that one just now since it wouldn't let me POST without it.
in addition to a handler:
And I don't see the problem as much any more (not at all so far).
Seems like a waste of resources but until sourceforge fixes their problem I guess we are using CGI.
Almost as bad as the combination of CGI scripts I hacked together to workaround the lack of Cron scripting. Sourceforge's servers are just getting worse and worse.
Anyway, I found that they have a PHP cgi binary at /usr/bin/php.
I made a simple CGI script to wrap around the PHP executable.
Code: Select all
#!/bin/sh
exec /usr/bin/php $*
in addition to a handler:
Code: Select all
AddHandler myphpfile .php
Action myphpfile /cgi-bin/php-exec.cgi
Action application/x-httpd-php3 /cgi-bin/php-exec.cgi
Action application/x-httpd-php4 /cgi-bin/php-exec.cgi
Action application/x-httpd-php /cgi-bin/php-exec.cgi
Seems like a waste of resources but until sourceforge fixes their problem I guess we are using CGI.
Almost as bad as the combination of CGI scripts I hacked together to workaround the lack of Cron scripting. Sourceforge's servers are just getting worse and worse.
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact:
whoops... you can't POST any more now.
EDIT: So I added a <Limit GET> around the CGI module.
If you post a topic you will have to hit refresh maybe once if you are unlucky.
I could probably figure it out with another few hours. Maybe later on if it bugs enough people.
Status update:
I'm now using mod_rewrite. Almost down to the last trick in the book, but I think this one will work finally!
Just need to rewrite the URL
...
EDIT: So I added a <Limit GET> around the CGI module.
If you post a topic you will have to hit refresh maybe once if you are unlucky.
I could probably figure it out with another few hours. Maybe later on if it bugs enough people.
Status update:
I'm now using mod_rewrite. Almost down to the last trick in the book, but I think this one will work finally!
Just need to rewrite the URL
...
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact:
I think it finally works!
YAY!
Sorry about the downtime, but hopefully it was worth it.
EDIT: another test. I added a QUERY_STRING parameter for debugging.
And it's all thanks to mod_rewrite and CGI.
Hopefully no more problems. But I'm sure there will be more.
Final .htaccess:
Final /cgi-bin/php-exec.cgi:
As to those exports, PHP wasn't exactly designed to be run as mod_rewrite'ed CGI script.... but those variables allow me to trick PHP into thinking it's being run directly.
Apparently the AddHandler and Action commands do not pass POST data (which is stupid), yet mod_rewrite does.
I've lost count of the number of configuration nuisances on these servers.
YAY!
Sorry about the downtime, but hopefully it was worth it.
EDIT: another test. I added a QUERY_STRING parameter for debugging.
And it's all thanks to mod_rewrite and CGI.
Hopefully no more problems. But I'm sure there will be more.
Final .htaccess:
Code: Select all
RewriteEngine On
RewriteRule ^(.*)\.php$ /cgi-bin/php-exec.cgi/$1
Code: Select all
export PATH_INFO="$REDIRECT_URL"
export SCRIPT_URI="$REDIRECT_SCRIPT_URI"
export SCRIPT_URL="$REDIRECT_URL"
export REQUEST_URI="$REDIRECT_URL?$REDIRECT_QUERY_STRING"
export QUERY_STRING="$REDIRECT_QUERY_STRING"
export DOCUMENT_ROOT=/home/groups/v/ve/vegastrike/htdocs
export PATH_TRANSLATED="$DOCUMENT_ROOT$PATH_INFO"
exec /usr/bin/php $* 2>&1
Apparently the AddHandler and Action commands do not pass POST data (which is stupid), yet mod_rewrite does.
I've lost count of the number of configuration nuisances on these servers.
-
- Developer
- Posts: 2150
- Joined: Mon Apr 23, 2007 1:17 am
- Location: Pennsylvania
- Contact:
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
Thx ace123 haven't had a blank tab yet this morning
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Venturer
- Posts: 537
- Joined: Sat May 14, 2005 10:51 am
- Location: milkyway->the sol system->earth->Europe->The Nederland->Soud Holland->Leiden
- Contact:
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
-
- Venturer
- Posts: 537
- Joined: Sat May 14, 2005 10:51 am
- Location: milkyway->the sol system->earth->Europe->The Nederland->Soud Holland->Leiden
- Contact:
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact: