The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to install php 5.3.4 with FPM?

Discussion in 'General Discussion' started by iotch, Jan 26, 2011.

  1. iotch

    iotch Member

    Joined:
    Jan 26, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello

    I'm running php as fcgi and trying to install php 5.3.4 with option "--enable-fpm" with easyapache.
    I've tried to add this flag to /var/cpanel/easy/apache/rawopts/PHP-5.3.4 but php says it's impossible to build.
    The problem was in conflict with "--with-apxs2" flag.

    Next, I tried to use only manually set flags:
    FULL_CUSTOM_PHP_FLAGS="--enable-fpm .......(etc without apxs)......" /scripts/easyapache
    But easyapache ignored it.

    Is it possible to enable PHP-FPM on WHM/cPanel somehow?

    thanks,
    K.
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    You need to recompile php from source inorder to add the module PHP-FPM. You can do this with the help of the below given documentation.

    Documentation

    It will be good if you ask your host to do it for you ! Good Luck
     
  3. iotch

    iotch Member

    Joined:
    Jan 26, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the answer

    I tried, everything was fine but installation breaks after:

    Code:
    Installing PEAR environment:      /usr/local/lib/php/
    [PEAR] Archive_Tar    - already installed: 1.3.7
    [PEAR] Console_Getopt - already installed: 1.2.3
    [PEAR] Structures_Graph- already installed: 1.0.3
    [PEAR] XML_Util       - already installed: 1.2.1
    [PEAR] PEAR           - already installed: 1.9.1
    Warning! a PEAR user config file already exists from a previous PEAR installation at '/root/.pearrc'. You may probably want to remove it.
    Wrote PEAR system config file at: /usr/local/etc/pear.conf
    You may want to add: /usr/local/lib/php to your php.ini include_path
    [root@treebeard0 php-5.3.4]#
    
    After apache restart nothing changed in phpinfo()
    It seems like few last steps of installation skipped, but I can't figure why.

    Will try again today
     
  4. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    Try it out and post the results here so that we can understand what we missed !
     
  5. iotch

    iotch Member

    Joined:
    Jan 26, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to enable php to write a log file during install?
     
  6. iotch

    iotch Member

    Joined:
    Jan 26, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    OK, same result. I've attached the bash window log.
    This time I tried to build from easyapache 5.3.4 sources, but with no success again

    thanks in advance,
    K.
     

    Attached Files:

    #6 iotch, Jan 27, 2011
    Last edited: Jan 27, 2011
Loading...

Share This Page