Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory #40

Closed
chrom opened this issue Jan 9, 2014 · 4 comments
Closed

No such file or directory #40

chrom opened this issue Jan 9, 2014 · 4 comments

Comments

@chrom
Copy link

chrom commented Jan 9, 2014

Warning: require(*/redis/www/includes/../vendor/autoload.php): failed to open stream: No such file or directory in */redis/www/includes/common.inc.php on line 2

Fatal error: require(): Failed opening required '*/redis/www/includes/../vendor/autoload.php' (include_path='.:/usr/local/share/pear') in */redis/www/includes/common.inc.php on line 2

FreeBSD 9.1
Apache22
Php 5.4

@erikdubbelboer
Copy link
Owner

Did you follow the installation instructions?: https://github.com/ErikDubbelboer/phpRedisAdmin#installingconfiguring

@chrom
Copy link
Author

chrom commented Jan 10, 2014

Yes you're right, my mistake. reinstalled through Compouser.
Prompt how to properly set the configuration phpRedisAdmin connections of through the unix socket.

@chrom
Copy link
Author

chrom commented Jan 10, 2014

Prompt what I'm doing wrong:
config.inc.php

$config = array(
'servers' => array(
array(
'name' => 'local server', // Optional name.
// 'host' => '127.0.0.1',
'host' => '/tmp/redis.sock',
'port' => '',
'filter' => '*',
// Optional Redis authentication.
//'auth' => 'redispasswordhere' // Warning: The password is sent in plain-text to the Redis server.
),

ERROR:
Fatal error: Uncaught exception 'Predis\ClientException' with message 'Invalid URI: /tmp/redis.sock' in /usr/www/redis_admin/www/admin/vendor/predis/predis/lib/Predis/Connection/ConnectionParameters.php:119 Stack trace: #0 /usr/www/redis_admin/www/admin/vendor/predis/predis/lib/Predis/Connection/ConnectionParameters.php(39): Predis\Connection\ConnectionParameters::parseURI('/tmp/redis.sock') #1 /usr/www/redis_admin/www/admin/vendor/predis/predis/lib/Predis/Connection/ConnectionFactory.php(100): Predis\Connection\ConnectionParameters->__construct('/tmp/redis.sock') #2 /usr/www/redis_admin/www/admin/vendor/predis/predis/lib/Predis/Client.php(114): Predis\Connection\ConnectionFactory->create('/tmp/redis.sock') #3 /usr/www/redis_admin/www/admin/vendor/predis/predis/lib/Predis/Client.php(52): Predis\Client->initializeConnection('/tmp/redis.sock') #4 /usr/www/redis_admin/www/admin/includes/common.inc.php(86): Predis\Client->__construct('/tmp/redis.sock') #5 /usr/www/redis_admin/www/admin/index.php(3): require_once('/usr/www/red in /usr/www/redis_admin/www/admin/vendor/predis/predis/lib/Predis/Connection/ConnectionParameters.php on line 119

@erikdubbelboer
Copy link
Owner

You need to use: 'host' => 'unix:///tmp/redis.sock',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants