Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

EA4 PHPRC PHP Patch + CGI Custom Php.ini

Discussion in 'EasyApache' started by DPNmw, Sep 9, 2016.

Tags:
  1. DPNmw

    DPNmw Member

    Joined:
    Jan 6, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I have tried numerous times get a cpanel account to use it's own version of php.ini but have failed. I'm currently using the CGI handler and Php7 as server default php.

    I changed a cpanel account to Php 5.6 as default and followed some steps online as seen here:
    Custom php.ini file with FastCGI - InMotion Hosting

    Loaded up the php info and it shows
    Code:
    Configuration File (php.ini) Path /opt/cpanel/ea-php56/root/etc
    Loaded Configuration File /home/*tld*/public_html/php.ini
    
    But the options made in the php.ini are ignored. The only change that is accepted is when I make changes to the php.ini in WHM

    I just want to enable allow_url_fopen and have it function on a single cpanel account and not server wide.

    The information provided here isn't to clear
    https://documentation.cpanel.net/display/EA4/cPanel's+PHPRC+PHP+Patch+for+EasyApache+4

     
  2. JacobPerkins

    JacobPerkins Well-Known Member

    Joined:
    May 2, 2014
    Messages:
    619
    Likes Received:
    96
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    This PHPRC patch does nothing when you're running PHP with the CGI handler. This patch only changes behaviors with suPHP.

    For using CGI, you'll need to use a CGI wrapper to get this working properly. You'd need to setup something like this, but adjusting for EA4:

    Individual php.ini files for PHP FCGI and PHP CGI
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice