Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    17

    Default php and apache

    I am running apache+php+suexec

    and I've noticed that for each php request, php starts a new interpreter.

    How inefficient.

    Can I go "mod_perl" way where php compiler runs once and executes all the php files through it ?

    Does anybody know if what I want done is possible ?

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dennismv View Post
    I am running apache+php+suexec

    and I've noticed that for each php request, php starts a new interpreter.

    How inefficient.

    Can I go "mod_perl" way where php compiler runs once and executes all the php files through it ?

    Does anybody know if what I want done is possible ?
    What you are talking about sounds like FastCGI. To over-simplify the concept: it is where an interpreter stays resident in memory rather than spawning a new interpreter for every script.

    Apache 2 does have support for FastCGI as well as PHP 4 and 5 (if you enable the appropriate modules for each). If you have CURRENT, you can compile these options in WHM -> Software -> Apache Update and when you get to Profile :: Apache :: PHP Main :: PHP Specific :: Basic click on "Advanced Configuration" and select the options for FastCGI.

Similar Threads & Tags
Similar threads

  1. Replies: 15
    Last Post: 08-15-2011, 01:27 PM
  2. Replies: 13
    Last Post: 06-23-2008, 05:21 AM
  3. Replies: 3
    Last Post: 02-12-2008, 02:38 PM
  4. Replies: 4
    Last Post: 12-15-2007, 03:26 PM
  5. Rebuilt apache with PHP CURL but now PHP pages don't load.
    By turfsk8r in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-02-2007, 06:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube