flexx Posted April 25, 2011 Posted April 25, 2011 Is it possible to install oAuth on my site? I tried it through PEAR in cpanel but its not working. I got this error Failed to download pear/HTTP_Request2 within preferred state "stable", latest release is version 2.0.0beta3, stability "beta", use "channel://pear.php.net/HTTP_Request2-2.0.0beta3" to install Warning: popen() has been disabled for security reasons in Guess.php on line 242 PHP Warning: popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 242 Warning: popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 242 Warning: fgets() expects parameter 1 to be resource, null given in Guess.php on line 243 PHP Warning: fgets() expects parameter 1 to be resource, null given in /usr/lib/php/OS/Guess.php on line 243 Warning: fgets() expects parameter 1 to be resource, null given in /usr/lib/php/OS/Guess.php on line 243 Warning: pclose() expects parameter 1 to be resource, null given in Guess.php on line 252 PHP Warning: pclose() expects parameter 1 to be resource, null given in /usr/lib/php/OS/Guess.php on line 252 Warning: pclose() expects parameter 1 to be resource, null given in /usr/lib/php/OS/Guess.php on line 252 pear/HTTP_OAuth requires package "pear/HTTP_Request2" (version >= 0.5.1) pear/HTTP_OAuth can optionally use PHP extension "pecl_http" (version >= 1.6.0) No valid packages found install failed 0
jje Posted April 25, 2011 Posted April 25, 2011 Even though I have no experience in OAuth, I presume this is the reason: popen() has been disabled for security reasons Let's see if djbob can help...
jje Posted April 25, 2011 Posted April 25, 2011 This support request is being escalated to our root admin.
flexx Posted April 25, 2011 Author Posted April 25, 2011 This support request is being escalated to our root admin. Thanks loads for the reply jje! :thumbsup:
jje Posted April 25, 2011 Posted April 25, 2011 Your welcome! Glad I could help! Just wait for djbob now
Guest Geoff Posted April 25, 2011 Posted April 25, 2011 Seems shell access is disabled in Cpanel's PHP.
flexx Posted April 29, 2011 Author Posted April 29, 2011 Is this for Stevie or Johnny? Sorry i took so long to reply. Its for Stevie. Can it be activated? Or its not possible atm? Thanks
Ashoat Posted May 2, 2011 Posted May 2, 2011 I spent some time trying to get it to work, but I'm getting the same error as this person is getting: http://serverfault.com/questions/151429/er...-oauth-via-pecl What's weird is that we do have pcre-devel installed, but it's version 7.7... which is newer than the 6.6 version CentOS seems to come with.
Guest Geoff Posted May 2, 2011 Posted May 2, 2011 Warning: popen() has been disabled for security reasons in Guess.php on line 242 PHP Warning: popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 242 The problem is that cPanel's PHP has popen as a disabled function. However, this should not happen because cPanel's PHP is different from apache's PHP.
flexx Posted May 2, 2011 Author Posted May 2, 2011 Warning: popen() has been disabled for security reasons in Guess.php on line 242 PHP Warning: popen() has been disabled for security reasons in /usr/lib/php/OS/Guess.php on line 242 The problem is that cPanel's PHP has popen as a disabled function. However, this should not happen because cPanel's PHP is different from apache's PHP. Could it be that it was some kinda error upon installation? I really would love for it to work. Please let me know of further updates if it is possible to include it in your schedule. Bless!
Ashoat Posted May 8, 2011 Posted May 8, 2011 Geoff: Sure, but the bigger issue is that I'm unable to install oauth as root. flexx: I really can't do much from here, as I am unable to install the package. I would recommend contacting the support for oauth, notifying them of the issue, and seeing if they have a solution.
Guest Geoff Posted May 8, 2011 Posted May 8, 2011 @djbob What if you un-disabled popen/pclose for one minute to see if it would work?
Guest Geoff Posted May 9, 2011 Posted May 9, 2011 Installing oauth with no disabled functions, I get: Failed to download pear/HTTP_Request2 within preferred state "stable", latest release is version 2.0.0RC1, stability "beta", use "channel://pear.php.net/HTTP_Request2-2.0.0RC1" to install WARNING: "pear/DB" is deprecated in favor of "pear/MDB2" pear/HTTP_OAuth requires package "pear/HTTP_Request2" (version >= 0.5.1) pear/HTTP_OAuth can optionally use PHP extension "pecl_http" (version >= 1.6.0) downloading PEAR-1.9.2.tgz ... Starting to download PEAR-1.9.2.tgz (295,120 bytes) .....................................done: 261,787 bytes downloading Log-1.12.5.tgz ... Starting to download Log-1.12.5.tgz (46,311 bytes) ...done: 46,311 bytes downloading Cache_Lite-1.7.9.tgz ... Starting to download Cache_Lite-1.7.9.tgz (30,318 bytes) ...done: 30,318 bytes downloading Archive_Tar-1.3.7.tgz ... Starting to download Archive_Tar-1.3.7.tgz (17,610 bytes) ...done: 17,610 bytes downloading Structures_Graph-1.0.4.tgz ... Starting to download Structures_Graph-1.0.4.tgz (30,318 bytes) ...done: 30,318 bytes downloading Console_Getopt-1.3.1.tgz ... Starting to download Console_Getopt-1.3.1.tgz (4,471 bytes) ...done: 4,471 bytes downloading XML_Util-1.2.1.tgz ... Starting to download XML_Util-1.2.1.tgz (17,729 bytes) ...done: 17,729 bytes downloading DB-1.7.13.tgz ... Starting to download DB-1.7.13.tgz (132,246 bytes) ...done: 132,246 bytes downloading MDB2-2.4.1.tgz ... Starting to download MDB2-2.4.1.tgz (119,790 bytes) ...done: 119,790 bytes downloading Mail-1.2.0.tgz ... Starting to download Mail-1.2.0.tgz (23,214 bytes) ...done: 23,214 bytes downloading Net_SMTP-1.5.2.tgz ... Starting to download Net_SMTP-1.5.2.tgz (12,626 bytes) ...done: 12,626 bytes downloading Net_Socket-1.0.10.tgz ... Starting to download Net_Socket-1.0.10.tgz (5,429 bytes) ...done: 5,429 bytes downloading Auth_SASL-1.0.4.tgz ... Starting to download Auth_SASL-1.0.4.tgz (5,795 bytes) ...done: 5,795 bytes install ok: channel://pear.php.net/Log-1.12.5 install ok: channel://pear.php.net/Archive_Tar-1.3.7 install ok: channel://pear.php.net/Structures_Graph-1.0.4 install ok: channel://pear.php.net/Console_Getopt-1.3.1 install ok: channel://pear.php.net/XML_Util-1.2.1 install ok: channel://pear.php.net/Mail-1.2.0 install ok: channel://pear.php.net/Net_Socket-1.0.10 install ok: channel://pear.php.net/Auth_SASL-1.0.4 ERROR: unable to unpack /home/gfishing/tmp/pear/cache/PEAR-1.9.2.tgz install ok: channel://pear.php.net/Net_SMTP-1.5.2 install ok: channel://pear.php.net/Cache_Lite-1.7.9 install ok: channel://pear.php.net/DB-1.7.13 install ok: channel://pear.php.net/MDB2-2.4.1 MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2) MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2) MDB2: Optional feature mysql available (MySQL driver for MDB2) MDB2: Optional feature mysqli available (MySQLi driver for MDB2) MDB2: Optional feature mssql available (MS SQL Server driver for MDB2) MDB2: Optional feature oci8 available (Oracle driver for MDB2) MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2) MDB2: Optional feature querysim available (Querysim driver for MDB2) MDB2: Optional feature sqlite available (SQLite2 driver for MDB2) MDB2: To install optional features use "pear install pear/MDB2#featurename" 0 @djbob I would try turning off the disabled functions, then installing the package for all users.
Recommended Posts