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.ini Q

Discussion in 'General Discussion' started by mehrdad abed, Jul 27, 2006.

  1. mehrdad abed

    mehrdad abed Well-Known Member

    Joined:
    Mar 18, 2006
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    Hi there.

    Unfortunately it seems that php apache modules dont work when phpSuexec is enabled, so the only way to change php setting for an account is to copy a php.ini in any directory but it doesnt effect on child folders, how could i have a php.ini in the web root and it also effects on all sub folders under?

    Thanks.
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    This is just not possible with the phpsuexec wrapper. To be honest, I'm really surprised that this issue has not been raised more often. This is really a feature I would like to see added.

    An enhancement request was created to try and garner attention to this, the entry is at:

    http://bugzilla.cpanel.net/show_bug.cgi?id=3756

    I do know that this feature is available with suPHP, which is like phpsuexec, except its not supported by CPanel. A hint, it will work with CPanel, but requires a lot of code editing and its just really not easy to implement. But I do agree that suPHP offers a better solution than phpsuexec. An enhancement request for suPHP is at:

    http://bugzilla.cpanel.net/show_bug.cgi?id=3984

    Also in order to get suPHP to work, you need to have customizable Apache templates. A template system is in place for CPanel, but it is not customizable. This feature request is at:

    http://bugzilla.cpanel.net/show_bug.cgi?id=3984

    Alternatively, you can have a look at my post at:

    http://forums.cpanel.net/showpost.php?p=251191&postcount=5

    which does describe how to distribute a single php.ini file into all subdirectories that are currently on your account. The downside to this is that it only affects current subdirectories. If you create a new directory under your public_html directory you have add the php.ini to that subdirectory or rerun the procedure given above.

    If anyone comes across this post and would like to see any of the features that are requested above, I do encourage you to vote for these enhancements in Bugzilla.
     
  3. mehrdad abed

    mehrdad abed Well-Known Member

    Joined:
    Mar 18, 2006
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    Too bad, What has cpanel done in this regard ?
     
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    As far as I know, nothing.

    I'm guessing that this is just not a big enough issue for everyone else to warrant CPanel looking into it. I can understand this, its somewhat silly to spend time and effort on an issue that only a handful of users want. I'm really more surprised by the fact that most CPanel users (it would seem) are not aware of this issue and wanting a resolution.
     
  5. mehrdad abed

    mehrdad abed Well-Known Member

    Joined:
    Mar 18, 2006
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    Really, but in my opinion it could be a security hole, So may be I should turn the phpsuexec off?
    I actually don't know what I should do. Any Cpanel staff won't help?
    :(
     
  6. mehrdad abed

    mehrdad abed Well-Known Member

    Joined:
    Mar 18, 2006
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    nobody likes to have this problem resolved ?
     
Loading...

Share This Page