FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » [newbie] Small question about FastCGI
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
[newbie] Small question about FastCGI [message #179412] Tue, 23 October 2012 11:12 Go to previous message
Gilles Ganault is currently offline  Gilles Ganault
Messages: 27
Registered: September 2010
Karma:
Junior Member
Hello

I just installed Lighttpd and mod_fastcgi to improve performance when
running PHP scripts over CGI.

Am I correct in understanding the following about what mod_fastcgi
does:
1. loads severals instances of the PHP interpreter, each in its own
process (hence the numerous instances of /usr/bin/php5-cgi in "ps aux"
and the "php.socket-" pseudo-files in /tmp)
2. translates between HTTP requests/responses and the PHP scripts
3. does nothing about the PHP scripts, which are loaded, parsed,
compiled, ran, and unloaded every time they are called
?

I'm especially concerned about the last point: If I make a lot of
calls to the database, does it mean that FastCGI doesn't provide
persistent connections to it, so I'll have to investigate other ways
to avoid opening/closing DB connections every time? Or is
opening/closing DB connections a non-issue and the main issue is
actual commands sent to the DB?

Thank you.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Setup help for PHP 64bit binaries
Next Topic: trouble with php5 ( while phpmyadmin works)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 11:55:45 GMT 2024

Total time taken to generate the page: 0.04346 seconds