Jump to content

Thrift & PHP


phpsycho

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.