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

Discussion in 'General Discussion' started by samaanet, Apr 20, 2011.

  1. samaanet

    samaanet Active Member

    Joined:
    Dec 30, 2010
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    hi

    after i made some changes in php.ini ... php down and not working .. i reversed the changes but also not working

    when i try to change between suphp or dso ... i can't find any thing also no php 5 .... no value at all ...

    how i can fix it ... thank you in advance
     
  2. samaanet

    samaanet Active Member

    Joined:
    Dec 30, 2010
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    i tried to rebuild the php by esayapache but not working aslo i tried another version also not working still i can't choose like there is no php installed
     
  3. 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
    Did you make the changes in WHM > PHP Configuration Editor? If so, then move the existing php.ini file:

    Code:
    mv /usr/local/lib/php.ini /usr/local/lib/php.ini.bak110419
    After that, regenerate a new php.ini file:

    Code:
    /scripts/phpini
    You can reinstall anything you are using such as Zend Optimizer, IonCube, EAccelerator or SuHosin then using these commands:

    Code:
    /scripts/phpextensionmgr install EAccelerator
    /scripts/phpextensionmgr install IonCubeLoader
    /scripts/phpextensionmgr install Zendopt
    /scripts/phpextensionmgr install PHPSuHosin
    Only install the one you need or were using previously. You can run a diff on the old php.ini to see what it had that differs from the new copy:

    Code:
    diff /usr/local/lib/php.ini /usr/local/lib/php.ini.bak110419
    After grabbing a new php.ini, then try to select the PHP handler in WHM > Apache Configuration > PHP and SuExec Configuration area again.
     
  4. samaanet

    samaanet Active Member

    Joined:
    Dec 30, 2010
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    thank you .. back to work i think i need to Handle the responsibility to one know wut he doing


    many thanks
     
Loading...

Share This Page