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.

csf warning

Discussion in 'Security' started by bhanuprasad1981, Jul 17, 2010.

  1. bhanuprasad1981

    bhanuprasad1981 Well-Known Member

    Joined:
    Aug 5, 2008
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    is ee this warning :-


    You should modify /usr/local/lib/php.ini and set:
    enable_dl = OffThis prevents users from loading php modules that affect everyone on the server. Note that if use dynamic libraries, such as ioncube, you will have to load them directly in the PHP configuration (usually in /usr/local/lib/php.ini)


    i have whmcs on this server which will stop working as per csf warning, so iw ant to know how to make ioncube load directly ?
     
  2. aapkapratik

    aapkapratik Member

    Joined:
    Oct 26, 2009
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    In my opinion you should use these steps.
    It might work in your case as well ( it worked for me ) :)

    login as with SSH as root into your server.

    # php -v ( This is just to check zend loader )

    Analysis of your system configuration shows:

    PHP 5.3.1 (cli) (built: Dec 31 2009 22:08:55)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
    with eAccelerator v0.9.6-rc1, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v3.3.7, Copyright (c) 2002-2009, by ionCube Ltd.

    Now go to location where the " ioncube_loader " file resides genrally it is at:

    [ /usr/local/IonCube ]

    Go to this location

    # cd /usr/local/IonCube
    # ls ( will show the Incube_loder version installed )
    -rwxr-xr-x 1 root root 834044 Dec 31 2009 ioncube_loader_lin_5.3.so*

    Now open servers php.ini file, if you dont know the path. Use following command

    # php -i | grep php.ini
    ( this will show path as follows )

    Configuration File (php.ini) Path => /usr/local/lib
    Loaded Configuration File => /usr/local/lib/php.ini

    Now open the php.ini file in your faverate editor.

    # vi /usr/local/lib/php.ini

    under section

    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    add an entry as follows

    zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"

    So here we are giving path of zend module in php.ini file where by it will make ioncube load directly
     
Loading...

Share This Page