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.

PHP not working after recompilation

Discussion in 'General Discussion' started by braun, Jul 14, 2011.

  1. braun

    braun Member

    Joined:
    Dec 14, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    WHM 11.30.1 (build 4)
    CENTOS 5.6 x86_64

    We recently recompiled Apache using Easy apache and added Zend Optimizer to satisfy needs od our customers.
    After recompilation i found in log files lot of warnings: „PHP Warning: Module 'ionCube Loader' already loaded in Unknown on line 0“

    Further investigation I found that php –v also generates some error.
    Output of php -v
    The ionCube PHP Loader is disabled because of startup problems.
    The ionCube PHP Loader is disabled because of startup problems.
    PHP 5.3.6 (cli) (built: Jul 13 2011 04:36:50)
    Copyright (c) 1997-2011 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

    Then I decided to recompile PHP again with previous working saved configuration. But after recompilation PHP desn’t work at all. When I looked at: Main >> Service Configuration >> Configure PHP and SuExec i can’t select PHP5 handler. There is no choice. Then I recompiled back with Zend optimizer and PHP starts working. But generates lot of warnings.

    Do you have any advices?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I would suggest trying the following:

    Code:
    cd /usr/local/lib
    mv php.ini php.ini.bak110714
    /scripts/phpini
    This will create a new php.ini file at that point. Then try the following:

    Code:
    /scripts/phpextensionmgr uninstall IonCubeLoader
    /scripts/phpextensionmgr install IonCubeLoader
    You can then run a diff on the php.ini files to see the results:

    Code:
    cd /usr/local/lib
    diff php.ini php.ini.bak110714
     
  3. braun

    braun Member

    Joined:
    Dec 14, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Tristan, thank you very much for your excellent advices. It work like a charm! :)
    I just have to diff php.ini files as you suggest to determine which extra configuration we had and put it back to new php.ini.
    Thank you again!
     
    #3 braun, Jul 14, 2011
    Last edited: Jul 14, 2011
Loading...

Share This Page