Reaper-X » Linux » PHP » Web Servers » PHP-FastCGI, Suexec, and XCache Installed

PHP-FastCGI, Suexec, and XCache Installed

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 :

  1. 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
  2. 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

Tags: ApacheGuidePHPpsuserverxcache

Leave a Comment

CommentLeave a response

Please read our comment policy | XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>