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.

Unable to recompile php 5.3.2 with fileinfo

Discussion in 'General Discussion' started by kenashkov, May 11, 2010.

  1. kenashkov

    kenashkov Active Member

    Joined:
    Nov 23, 2006
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sofia, Bulgaria
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm trying to recompile php 5.3.2 with fileinfo enabled but without any success - always getting error about insufficient memory... I know it may require up to 1GB so I changed the limitations using ulimit and I've put in both .bashrc and .bash_profile:
    Additionally the setting "The maximum memory a cPanel process can use before it is killed off (in megabytes)" is set to 1024MB. Here is the output from ulimit -a:
    Still when I start /scripts/easyapache from command line it always prints:
    Why virtual memory and max memory size are still 512MB ? I couldn't find any way around this and I always get out of memory error when the compile process reaches fileinfo extension. Any help would be greatly appreciated.

    Vesko Kenashkov
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Are you a software developer or otherwise have some specific need to be running PHP 5.3.2?

    If not then I would [/b]STRONGLY RECOMMEND[/b] you use PHP 5.2.13 instead.

    The vast majority of applications out there are still not updated to work with PHP 5.3.x and since this version series breaks backwards compatibility, it's not a good idea to be running it in any production hosting environment at least not until there is a lot more widespread software and script support than there is presently.

    Regarding your resource question, you haven't really said anything about your server details which would also probably help substantially as you may have other resource issues other than where you are looking at the moment per your post.
     
  3. kenashkov

    kenashkov Active Member

    Joined:
    Nov 23, 2006
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sofia, Bulgaria
    cPanel Access Level:
    Root Administrator
    The server has 2GB physical memory and 2GB swap. This should be enough and that is why I didn't think that the physical/virtual memory in this setup could be the reason. I think that for some reason easyapache script is limited by the limitations posed by ulimit and that is why I tried by all means to change them... of course I may be wrong (and even if I'm right I still don't know how to remove this limitation).

    I'm developing for PHP 5.3 for 2 years already (yes, before even it got in alpha version when was using the old namespace separator :: ), so it is imperative for me to upgrade this server. The features php 5.3 provides are of a great benefit - namespaces, LSB allows for proper singleton implementation (just to name the main reasons). In fact I need fileinfo for an older app written for php 5.2 that uses it and is hosted on this server (otherwise it is fully compatible with 5.3). So that is my story...

    In fact the server at the moment is using successfully php 5.3.2 (its running without fileinfo extension) without any compatibility issues except this.

    If any other data/settings/output would be useful I will provide it...

    P.S. actually I havent tried php 5.3.1 with fileinfo (I just didn't have much hope that it will pass and it is generally better for security reasons to run the latest version)
     
    #3 kenashkov, May 11, 2010
    Last edited: May 11, 2010
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Well thanks for actually verifying everything I just said about backwards compatibility in a weird round about reverse kind of way ;)

    Anyway though ....

    You really shouldn't be running into resource issues at compile time only at execution time so I'm not sure script limits would really be an issue much in this instance.

    I would assume you already checked the EasyApache output, does that tell you anything useful?

    (If not, check out the newest files under /usr/local/cpanel/logs/easy/apache)
     
  5. kenashkov

    kenashkov Active Member

    Joined:
    Nov 23, 2006
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sofia, Bulgaria
    cPanel Access Level:
    Root Administrator
    Just tried php 5.3.1 - the same error:
    The configure command is:
     
Loading...

Share This Page