Trying to setup an example REST API call get oauth.php file not found error

瀏覽次數:88 次
跳到第一則未讀訊息

Yuri Evfimiou

未讀,
2013年8月15日 下午4:30:372013/8/15
收件者:stash...@googlegroups.com
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
回覆所有人
回覆作者
轉寄
0 則新訊息