Trying to run a php page on CentOS. Created an example php REST API call from
https://stashboard.readthedocs.org/en/latest/examples.html#php Get the following error in apache logs:
PHP Fatal error: require_once(): Failed opening required 'OAuth.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/stashboard.php on line 3
Searched for OAuth.php and it's not on the server. Did I miss some steps in setting this up?
This is how I installed php and oauth
yum install php php-devel php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc
yum install gcc
yum install pcre-devel
yum install php-curl
pecl install oauth
added 'extension=oauth.so' to php.ini and /etc/php.d/oauth.ini
restarted apache