Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/245855-thrift-php/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/245855-thrift-php/#findComment-1262760
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.