note 49904 added to security.cgi-bin

From: Date: Fri, 11 Feb 2005 15:23:29 +0000
Subject: note 49904 added to security.cgi-bin
Groups: php.notes 
Request: Send a blank email to php-notes+get-84831@lists.php.net to get a copy of this message
I have noticed that some people have noted that running PHP as a CGI program can run slowly compared with a compiled in module. Some have noted that they want to use FastCGI but are hesitant. I found that using the Apache 2's CGID module was a great way to speed up performance almost to the same level as an "so"-installed PHP module but you get the added benefit of running each virtual host under it's own user and group. In my testing I got 44 pages per second using PHP as a module and I got roughly the same performance (within 5%) running PHP as a CGI program through CGID. CGID is also really easy to set up. Just add --enable-cgid to your Apache configure command and you're good to go. Just set up PHP as a CGI normally. I'm sure that there's extra RAM used for this method but RAM is as cheap as borscht anyways so it shouldn't be a major factor when trying to speed up PHP CGI. ---- Manual Page -- http://www.php.net/manual/en/security.cgi-bin.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49904 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49904&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49904&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49904&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49904&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49904&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49904&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84831) next »