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.

SuPHP good practices

Discussion in 'EasyApache' started by ascalotoru, Nov 22, 2016.

Tags:
  1. ascalotoru

    ascalotoru Member

    Joined:
    Nov 16, 2016
    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Bilbao
    cPanel Access Level:
    DataCenter Provider
    Hello,

    I have SuPHP activated and it works fine but I have a problem. If I place in the .htaccess file
    "suPHP_ConfigPath" I lost all php extensions loaded by default.
    Is there any way to load some php extensions by default without placing it in the user's home php.ini?

    Regards
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    599
    Likes Received:
    90
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Howdy,

    If you set suPHP_ConfigPath in the htaccess file, you will need to provide a *full* php.ini, including all modules you need loaded. If you don't set that directive in the htaccess, the modules will be loaded, but your directives will be picked up from php.ini / .user.ini.

    I hope this helps!
     
  3. ascalotoru

    ascalotoru Member

    Joined:
    Nov 16, 2016
    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Bilbao
    cPanel Access Level:
    DataCenter Provider
    Ok. I have tried the .user.ini file and it works!
    Thank you!
     
    cPanelMichael likes this.
Loading...

Share This Page