Results 1 to 4 of 4
  1. #1

    Question for those that run php as cgi

    I've always run php as an apache module as I've always been the only one with access to my server but I am putting a few clients sites up soon and will be running php as cgi.

    My question is this, what do you do to compensate for the speed hit as cgi and what way do you secure it? Do you use eaccelerator, fastcgi with suphp, phpsuexec or the apache suexec wrapper?

    Any hints and links to tutorials on setting things up would be greatly appreciated.

  2. #2
    Are you using a control panel at all?

  3. #3
    Yep, direct admin but I usually end up compiling php/apache myself.

  4. #4
    I would set a fair KeepAliveTimeout and turn limit php/mysql concurrency as I see often if php through cgi is slow, it's not slow due to it's nature, but it may be slow as there may already be a performace penalty somewhere which gets worse when we have multiple php processes. I use phpsuexec as it is offered by cPanel apache updater.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts