Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    4

    Default suhosin.executor.func.blacklist is override with user php.ini

    Hi
    I have an issue with suhosin.executor.func.blacklist , it completely disabled when a user put a php.ini in site!
    How can i fix this problem?

    PHP Code:

    php 
    -v
    PHP 5.2.13 
    (cli) (builtJun 30 2010 13:15:13
    Copyright (c1997-2010 The PHP Group
    Zend Engine v2.2.0
    Copyright (c1998-2010 Zend Technologies
        with Zend Optimizer v3.3.9
    Copyright (c1998-2009by Zend Technologies
        with Suhosin v0.9.29
    Copyright (c2007by SektionEins GmbH 

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Restrict php.ini

    You can prevent users from using their own custom php.ini files by editing /opt/suphp/etc/suphp.conf and removing the comment characters (semicolons, ";") from the following directives:

    Code:
    [phprc_paths]
    ;Uncommenting these will force all requests to that handler to use the php.ini
    ;in the specified directory regardless of suPHP_ConfigPath settings.
    ;application/x-httpd-php=/usr/local/lib/
    ;application/x-httpd-php4=/usr/local/php4/lib/
    ;application/x-httpd-php5=/usr/local/lib/
    This will force all users' PHP scripts to use the system php.ini, which is normally /usr/local/lib/php.ini.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    4

    Default

    I want user can override all php.ini settings except disable_functions (or suhosin.executor.func.blacklist)

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    4

    Default

    How can i change some php directive like register_globals for some sites when i disabled php.ini overrideing?
    i check "suPHP_ConfigPath" but it doesn't work.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,304
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If you have PHP 5.2, you cannot use phprc_paths to exclude users and still get suPHP_ConfigPath to work. You will need to instead exclude users by commenting out the phprc_paths again and then restrict using <Location /></Location> tags around suPHP_ConfigPath in /usr/local/apache/conf/userdata/ location, then allow some users to have their own suPHP_ConfigPath in /usr/local/apache/conf/userdata/std/2/username/ location.

    If you have PHP 5.3+, you can define user.ini files for accounts to override the settings or define the settings for set accounts using the path directive in the global php.ini file.

    You can try this guide I recently added for doing this:

    http://forums.cpanel.net/f185/method...es-167186.html

    Please direct questions you have on it at that location if possible.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Disable memory_limit override in user php.ini
    By smurf in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-24-2009, 11:05 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. Override php.ini directives
    By mehrdad abed in forum New User Questions
    Replies: 3
    Last Post: 06-03-2007, 09:06 AM
  4. PHP5, phpSuExec and php.ini override.
    By Serra in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 01-29-2007, 05:10 AM
  5. Override php.ini in phpsuexec
    By latpanel in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-17-2005, 05:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube