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!

SOLVED Installing Oauth

Discussion in 'General Discussion' started by DWChrisG, Mar 18, 2019.

Tags:
  1. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hello there,

    A random question - Is there any guide available on how to fully install Oauth on WHM/Cpanel?

    I guess, I have already installed it via Module Installer? (Software » Module Installers).. At least it shows as installed on every php version..

    Thing is.. Whenever I try to call the said function from a php file.. I am getting the usual, class not found error..

    Code:
    Fatal error: Class 'OAuth' not found in ...
    Am I missing something?

    Thank you for your time
     
  2. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,886
    Likes Received:
    120
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    What happens when you run ?
    /opt/cpanel/ea-php??/root/usr/bin/pecl install oauth


    Does it show up in your listed PHP modules ?
    php -m | grep OAuth
    /opt/cpanel/ea-php??/root/usr/bin/php -m | grep OAuth
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @DWChrisG,

    PHPINFO files are useful for checking of a PHP module is installed. You can use your preferred file management method (e.g. SSH, FTP, File Manager) to create a file named phpinfo.php in the domain’s document root (e.g. /home/username/public_html/). The file should contain the following lines:

    Code:
    <?php
    // Show all information, defaults to INFO_ALL
    phpinfo();
    ?>
    Ensure the phpinfo.php file is configured with 0644 permissions. User and group ownership should be set to the corresponding cPanel account’s username. Here's an example of how to do this via the command line:

    Code:
    chmod 0644 /home/username/public_html/phpinfo.php
    chown username.username /home/username/public_html/phpinfo.php
    Once the phpinfo.php file is created, you can open it by accessing domain.tld/phpinfo.php in your web browser and search the page for "OAuth" to see if it's listed. If it's not, look at the path to the "php.ini" file to see if you're using a custom php.ini file on the account.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. DWChrisG

    DWChrisG Member

    Joined:
    Aug 10, 2017
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    This installed the module, after a little manipulation on the .ini file (To allow popen)

    For future ref, the .ini file is located here:
    Code:
    /opt/cpanel/ea-php??/root/etc/php.ini
    After installing the module, this popped up "OAuth", showing it as installed, in the installed modules listing..

    Much appreciated, both of you guys for your time and solution :)
     
    cPanelMichael likes this.
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @DWChrisG,

    Thanks for sharing the outcome. I've marked this thread as solved.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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