PHP-FastCGI, Suexec, and XCache Installed
By Reaper-X on Aug 18, 2007 in Apache, Linux, PHP, Web Servers
After 1 week thinking about on should i install PHP-FastCGI with Suexec combined with XCache (PHP OP-Code Cache) because my current host aren’t going to support it (although they say, they can help me installing it) if i’m going this way, i’ve decided to use them all together eventhough i have to do it all by myself (as learning purpose of course) … and after 6 hours (or more) playing around with it … i managed to set them all nicely
Btw if you ask me, why i really want to use PHP-FastCGI with Suexec and XCache eventhough my host aren’t going to support it, the answers are :
- Running PHP as Apache Module isn’t really good (although it’s the fastest and the easiest to configure with), because it’s running under Apache userid not your own userid. But if it’s for me, i do not like to chmod some of my files / directory into world writeable
- PHPSuexec takes too many resources although it’s secure (from security point of view), but it has the other advantage, because if you run PHPSuexec, you don’t need to chmod some of your files / directory into 777 (beside chmod 777 is not going to work with PHPSuexec). Unfortunately the downside from this method is … i can’t use any PHP OPCode cache / any php accelerator out there
So based on that conclusion, i try reading various material about this stuff on the web, and found that the best solution is to use PHP-FastCGI with Suexec enabled to run under your own userid, and the good side from this method is you can use PHP Accelerator. Fortunately there’s someone who’s using an almost identical server setup like mine so i can simply follow his guide (although i need to do some little modification because i can’t seem to get the .fcgi script to run if i’m not putting it in some directory that is allowed to execute CGI) :D

Website RSS Feed
Stumble this post
Bookmark this post on Del.icio.us
Submit this post to Digg
Submit this post to Reddit
Print this
Trackback URL
Post a Comment










