Portal Home > Knowledgebase > Articles Database > how to speed suphp ???


how to speed suphp ???




Posted by sasky, 07-25-2010, 07:49 PM
i have question how to speed suphp ???

Posted by TonyB, 07-25-2010, 08:15 PM
The way to speed up suPHP is not to use suPHP. It's just running PHP as a CGI which is extremely slow as you're spawning a PHP process for each execution and must also kill it after execution finishes. FastCGI for example uses a pool of processes so it is not spawning a PHP process every time execution is required. There are other similar ways of PHP that uses the same principal. They may set max amount of requests or time a PHP process in the pool can run before a new one is made. That is still major gains over making a new one for each request. A lot of the alternatives like FastCGI allow you to run PHP as suexec so still as the user. So you get nearly all the security advantages of suPHP while taking less of a performance hit.

Posted by Veks, 07-25-2010, 08:48 PM
SuPHP does a lot of optimization of the php loading process, so it is faster than plain CGI. You can get some improvement when by compiling php with space-saving options like -Os. Don't do that when using a professional (FastCGI) install, though, since if php stays loaded optimizations like -Os only hurt.

Posted by mellow-h, 07-25-2010, 10:34 PM
If I consider, you would stick with suphp, you may use an apache module called "mod_mem_cache". It does improve the performance, but it has some sudden spike issues and some ambiguous mod_rewrite problem. But it improves the speed noticeable. I am still waiting to see this in Apache 2.3



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
HostV Offline? (Views: 607)
enable root for mysql (Views: 568)