Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    127

    Default php.ini Q

    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. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    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.ph...91&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. #3
    Member
    Join Date
    Mar 2006
    Posts
    127

    Default

    Too bad, What has cpanel done in this regard ?

  4. #4
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    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. #5
    Member
    Join Date
    Mar 2006
    Posts
    127

    Angry

    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. #6
    Member
    Join Date
    Mar 2006
    Posts
    127

    Default

    nobody likes to have this problem resolved ?

Similar Threads & Tags
Similar threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2011, 08:55 AM
  2. php.ini and override default php.ini
    By areh in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-24-2009, 05:45 PM
  3. Updating cpanel PHP changed main server php.ini
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-06-2009, 02:46 PM
  4. Question about PHP security, setting up multiple php.ini files?
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-01-2008, 10:58 AM
  5. Disabling local php.ini while php still runs in SUExec mode
    By gizmoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2005, 11:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube