Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Apache2 + PHP : only one script per session
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zark
n00b
n00b


Joined: 27 Mar 2004
Posts: 74
Location: Belgium

PostPosted: Wed Feb 23, 2005 2:29 pm    Post subject: [SOLVED] Apache2 + PHP : only one script per session Reply with quote

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
View user's profile Send private message
zark
n00b
n00b


Joined: 27 Mar 2004
Posts: 74
Location: Belgium

PostPosted: Thu Feb 24, 2005 7:34 pm    Post subject: Reply with quote

*bumping this*
Back to top
View user's profile Send private message
zark
n00b
n00b


Joined: 27 Mar 2004
Posts: 74
Location: Belgium

PostPosted: Sun Feb 27, 2005 7:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
zark
n00b
n00b


Joined: 27 Mar 2004
Posts: 74
Location: Belgium

PostPosted: Fri Mar 18, 2005 2:38 pm    Post subject: Reply with quote

*bump again*
Back to top
View user's profile Send private message
zark
n00b
n00b


Joined: 27 Mar 2004
Posts: 74
Location: Belgium

PostPosted: Fri Mar 25, 2005 3:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum