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 I Can Custom Build PHP?

Discussion in 'General Discussion' started by reporter, Oct 8, 2009.

  1. reporter

    reporter Active Member

    Joined:
    Jul 23, 2009
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hi to all,
    How can I build Custom PHP?

    Example :
    Every user must have this php.ini :
    /usr/local/phpconf/(login)/php.ini
    :confused:
     
    #1 reporter, Oct 8, 2009
    Last edited: Oct 8, 2009
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You will have to enable suphp on your server. Doing this every user should get php.ini
     
  3. reporter

    reporter Active Member

    Joined:
    Jul 23, 2009
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    How can I enable suphp?!:confused:
     
    #3 reporter, Oct 9, 2009
    Last edited: Oct 9, 2009
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Actually, based on what he wrote in his first message above, he's asking specifically about my Custom PHP mod script that a lot of people use which sets up and maintains separate PHP.INI configurations for each and every account independent of each other, supports templating, and keeps in sync with newly added or deleted accounts.
     
  5. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Solution

    Yes its good idea to enable suphp on your server if you want to enable the custom php.ini file to each an every user as per there requirement so that every user can change the php values.

    Note : On Suphp server php.ini file is working directory base due to that you need to add/copy php.ini in each directory where you want to change php values for your domain.
     
  6. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    You may toggle or switch between preferences for SuExec and the PHP handlers (e.g., SuPHP) via your root WHM control panel at the following menu path:
    WHM: Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration

    Via the above page in WHM you can switch the PHP handler to SuPHP and ensure SuExec is enabled. If SuPHP is not listed in the drop-down menus for PHP then you will need to run EasyApache to enable support for SuPHP in Apache and PHP.

    I recommend to reference the following documentation for more detailed information about the available PHP handlers:
    ApachePHPRequestHandling < EasyApache3 < TWiki
     
  7. reporter

    reporter Active Member

    Joined:
    Jul 23, 2009
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    thanks but it's ok!
    I did this many time ago!
    bug php is not custom build!:confused:
     
  8. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    It will help to know additional details:
    1.) Are you needing to compile PHP using specific custom "configure" switches/options?
    2.) Are there any specific requirements for a "custom build" of PHP? Please detail as verbosely as possible.
     
  9. realistic

    realistic Registered

    Joined:
    Oct 9, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I am also one of the fresher php developer.

    Facing this same problem and from here get perfect solutions for it.

    Also share it with mine other co-workers.

    Thank You.:)
     
  10. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Regarding the above message from reporter and also my prior post as well ...

    Reporter was originally running with a special configuration which setup automated custom PHP configurations with separate administrator only accessible PHP.INI files for each hosting account.

    He made some unrelated changes to his server and broke a few system components that caused some wide problems throughout the entire server
    and broke the custom PHP, Cpanel, and many other things. I am not going to embarrass him by telling everyone exactly what he did to his server.

    However, I have already fixed the damage done, got everything working again in the system, and restored his original custom PHP configuration.

    -Spiral
     
    #10 Spiral, Oct 14, 2009
    Last edited: Oct 14, 2009
  11. reporter

    reporter Active Member

    Joined:
    Jul 23, 2009
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    :(
    Please Help Me Level By Level:confused:
     
  12. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Solution

    As per your post it seems to be that you are totally confused with the SuExec concept.First you need to verify that your server is SuExec or not?Please read following thread carefully and try it.

    Simply check server is SuExec or not? | Linux Servers cPanel webhosting blog

    As well as please post phpinfo URL in this thread so that we can check it for you.

    Again I like to remind to Suphp server php.ini file is working directory base due to that you need to add/copy php.ini in each directory where you want to change php values for your domain.
     
Loading...

Share This Page