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

    Default Compiling php

    How can I compile php in the cpanel. I have to edit the options in php.ini and have to recompile it. any idea how to do it????

  2. #2
    Member serversignature's Avatar
    Join Date
    Nov 2007
    Location
    Bangalore
    Posts
    107

    Default

    Use EasyApache
    su - to root.

    Run EasyApache

    /scripts/easyapache

    Select the options you want for your configuration.
    Serversignature.com - Professional Linux Consulting.

  3. #3
    Member
    Join Date
    Jun 2009
    Posts
    10

    Default

    If you have root access, you can do it by ssh.

    use /scripts/easyapache --force for recompiling php.

    You can find the loaded php.ini file from the following command from shell:

    #php --info | grep php.ini

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Quote Originally Posted by sumittyagi View Post
    How can I compile php in the cpanel. I have to edit the options in php.ini and have to recompile it. any idea how to do it????
    Just to be clear and thorough, you do know that changing options in the PHP.INI file doesn't require you to recompile PHP, right?

    That said, if you do need to recompile such as for adding new features that were not included in the original compile, the easiest way to do this is actually manually building the source but EasyApache either from the shell or from WHM will work as well.

Similar Threads & Tags
Similar threads

  1. GD not compiling with php 4.x
    By manan in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-26-2008, 12:33 AM
  2. Compiling PHP
    By stormridermay in forum New User Questions
    Replies: 0
    Last Post: 07-11-2007, 07:54 AM
  3. php not compiling
    By tucman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-04-2007, 02:12 AM
  4. Replies: 24
    Last Post: 01-13-2005, 03:04 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube