View previous topic :: View next topic |
Author |
Message |
zark n00b
Joined: 27 Mar 2004 Posts: 74 Location: Belgium
|
Posted: Wed Feb 23, 2005 2:29 pm Post subject: [SOLVED] Apache2 + PHP : only one script per session |
|
|
Hello
i've looked all over the forum for something mentioning this, but couldn't find anything.
Basically my problem is as follows :
i have a website with a lot of multimedia content.
To avoir people leeching directly to the files themselves, everything goes thru a script (in this case mediaview.php?media=xxx) in there.
I used to do 'flow limiting' by reading data then sleeping etc... but i took that out now, and i just stream the data using a readfile($path);
My problem, is that while a user is reading data, he cannot access anything else on the website. ( and therefore is limited to leeching one file at a time).
I've installed PHP and APACHE the way it's explained on the wiki (just in case) and apache is launched with the -D PHP4 option.
edit: i'm using mod_php ... would php-cgi work the way i want to ????
Last edited by zark on Fri Mar 25, 2005 3:39 pm; edited 1 time in total |
|
Back to top |
|
|
zark n00b
Joined: 27 Mar 2004 Posts: 74 Location: Belgium
|
Posted: Thu Feb 24, 2005 7:34 pm Post subject: |
|
|
*bumping this* |
|
Back to top |
|
|
zark n00b
Joined: 27 Mar 2004 Posts: 74 Location: Belgium
|
Posted: Sun Feb 27, 2005 7:31 pm Post subject: |
|
|
the weird thing is that i have the same issue with two servers, one on fedora and one on gentoo ...
no one has an idea ? |
|
Back to top |
|
|
zark n00b
Joined: 27 Mar 2004 Posts: 74 Location: Belgium
|
Posted: Fri Mar 18, 2005 2:38 pm Post subject: |
|
|
*bump again* |
|
Back to top |
|
|
zark n00b
Joined: 27 Mar 2004 Posts: 74 Location: Belgium
|
Posted: Fri Mar 25, 2005 3:39 pm Post subject: |
|
|
For those of you who are experiencing the same problem .. i switched to php-cgi and no problem.
actually i emerge php-cgi, and added a cgi handler for .php4 and put my streamer in .php4 and it all works like a charm.
now all i have to figure out is why apache keeps leaving 'ghost' processes (they don't close with the stop script and are just consuming ram) |
|
Back to top |
|
|
|