phpsycho Posted August 28, 2011 Share Posted August 28, 2011 I think I finally got Cassandra and Thrift installed correctly. I tried the example php script that requires Thrift. I get errors saying it failed to require different files. [sat Aug 27 23:37:08 2011] [error] [client 24.63.100.20] PHP Warning: include_once(/usr/share/php5/Thrift/protocol/TProtocol.php): failed to open stream: Permission denied in /usr/share/php5/Thrift/Thrift.php on line 786 [sat Aug 27 23:37:08 2011] [error] [client 24.63.100.20] PHP Warning: include_once(): Failed opening '/usr/share/php5/Thrift/protocol/TProtocol.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/php5/Thrift/Thrift.php on line 786 [sat Aug 27 23:37:08 2011] [error] [client 24.63.100.20] PHP Warning: include_once(/usr/share/php5/Thrift/transport/TTransport.php): failed to open stream: Permission denied in /usr/share/php5/Thrift/Thrift.php on line 787 [sat Aug 27 23:37:08 2011] [error] [client 24.63.100.20] PHP Warning: include_once(): Failed opening '/usr/share/php5/Thrift/transport/TTransport.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/php5/Thrift/Thrift.php on line 787 [sat Aug 27 23:37:08 2011] [error] [client 24.63.100.20] PHP Warning: require_once(/usr/share/php5/Thrift/transport/TSocket.php): failed to open stream: Permission denied in /var/www/cass.php on line 5 [sat Aug 27 23:37:08 2011] [error] [client 24.63.100.20] PHP Fatal error: require_once(): Failed opening required '/usr/share/php5/Thrift/transport/TSocket.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cass.php on line 5 sooo by the looks of it I have to set perms to 777 on those files? is that okay to do? I never change perms on files unless its in /var/www I learned changing system file perms can really mess things up. What do you guys think? safe to set to 777? Quote Link to comment https://forums.phpfreaks.com/topic/245855-thrift-php/ Share on other sites More sharing options...
phpsycho Posted August 28, 2011 Author Share Posted August 28, 2011 I set perms to 777 still getting errors... [sun Aug 28 01:23:38 2011] [error] [client 24.63.100.20] PHP Warning: include_once(/usr/share/php5/Thrift/protocol/TProtocol.php): failed to open stream: Permission denied in /usr/share/php5/Thrift/Thrift.php on line 786 [sun Aug 28 01:23:38 2011] [error] [client 24.63.100.20] PHP Warning: include_once(): Failed opening '/usr/share/php5/Thrift/protocol/TProtocol.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/php5/Thrift/Thrift.php on line 786 [sun Aug 28 01:23:38 2011] [error] [client 24.63.100.20] PHP Warning: include_once(/usr/share/php5/Thrift/transport/TTransport.php): failed to open stream: Permission denied in /usr/share/php5/Thrift/Thrift.php on line 787 [sun Aug 28 01:23:38 2011] [error] [client 24.63.100.20] PHP Warning: include_once(): Failed opening '/usr/share/php5/Thrift/transport/TTransport.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/php5/Thrift/Thrift.php on line 787 [sun Aug 28 01:23:38 2011] [error] [client 24.63.100.20] PHP Warning: require_once(/usr/share/php5/Thrift/transport/TSocket.php): failed to open stream: Permission denied in /var/www/cass.php on line 5 [sun Aug 28 01:23:38 2011] [error] [client 24.63.100.20] PHP Fatal error: require_once(): Failed opening required '/usr/share/php5/Thrift/transport/TSocket.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cass.php on line 5 Quote Link to comment https://forums.phpfreaks.com/topic/245855-thrift-php/#findComment-1262760 Share on other sites More sharing options...
phpsycho Posted August 28, 2011 Author Share Posted August 28, 2011 hmm never mind for now. I'm gunna get some rest and if the power is still on in the morning gunna try out phpcassa instead. Maybe that will be better and hopefully work. Quote Link to comment https://forums.phpfreaks.com/topic/245855-thrift-php/#findComment-1262770 Share on other sites More sharing options...
ignace Posted August 28, 2011 Share Posted August 28, 2011 Permission denied You should allow Apache to access the Thrift directory as it's not set for php5 as I only see include_path='.:/usr/share/php:/usr/share/pear' being in the include_path. Try moving them in one of these directories? Quote Link to comment https://forums.phpfreaks.com/topic/245855-thrift-php/#findComment-1262774 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.