Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Nov 2009
    Posts
    8

    Arrow Permanent changes to PHP.CONF

    Hello,

    After a lot of tests, I decided myself that the best way to handle PHP was through Fast Cgi (mod fcgi).

    Unfortunally, cPanel/WHM doesn't help a lot with configurating/customizing the way it works. The first problem, is that if a PHP script takes more than 40 seconds to execute, a 500 Error is thrown to user (but the php script continues running).

    Ok, so I had a little research and found that it can be customized with some MOD_FCGI directives. I found to add these directives to /usr/local/apache/conf/php.conf.

    But I believe that, everytime I update apache or make any kind of configuration, the PHP.CONF will be replaced by the default and I'll lose my custom settings.

    So, the question is:
    - How to make permanent changes to PHP.CONF while using php_fcgi?

    The directives I added to php.conf were:
    Code:
      IdleTimeout 300
      MaxProcessCount 200
      DefaultMinClassProcessCount 1
      DefaultMaxClassProcessCount 25
      IPCConnectTimeout 20
      IPCCommTimeout 600 (This is the line that solved my problem)
    
      IdleScanInterval 120
      ProcessLifeTime 900
      BusyTimeout 300
      BusyScanInterval 120
      ErrorScanInterval 3
      ZombieScanInterval 3
    I searched a lot and found nothing. Hope you guys can help me.

    Thanks!

  2. #2
    Member
    Join Date
    Jun 2003
    Posts
    35

    Default Re: Permanent changes to PHP.CONF

    Did you ever figure this one out? I'd like to know!

  3. #3
    Member
    Join Date
    Dec 2010
    Posts
    14

    Default Re: Permanent changes to PHP.CONF


  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    de profundis
    Posts
    5,337
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Permanent changes to PHP.CONF

    Another option would be to try an include at /usr/local/apache/conf/includes such as pre_main_global.conf possibly. If you do try out the include and it works, then you would need to distill the change, rebuild Apache and restart Apache:

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110525
    /usr/local/cpanel/bin/apache_conf_distiller --update
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Permanent Frame
    By Masterwork in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-24-2007, 01:03 PM
  2. Permanent Redirects to PHP Pages Not Working
    By Beachdog in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-04-2007, 02:16 PM
  3. Exim changes permanent
    By screege in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-06-2007, 09:18 AM
  4. Permanent advertise banner
    By BlackDemon in forum cPanel Developers
    Replies: 4
    Last Post: 06-23-2006, 05:16 AM
  5. How to make permanent changes in exim.conf
    By dee_at_candl in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-08-2006, 09:26 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube