Skip to content

[BUGS-6318] file_exists(): open_basedir restriction in effect. #423

Open
@hj-collab

Description

@hj-collab

Hi,

I have implemented an open_basedir restriction in my PHP configuration to prevent PHP execution outside of the "/var/www/html/" directory. However, I am perplexed as to why the object cache is attempting to access the sock file as if it were a PHP file.

Warning: file_exists(): open_basedir restriction in effect. File(/var/run/redis/redis.sock) is not within the allowed path(s): (/var/www/html/) in /var/www/html/wp-content/object-cache.php on line 1259

Warning: Redis::connect(): php_network_getaddresses: getaddrinfo for /var/run/redis/redis.sock failed: Name or service not known in /var/www/html/wp-content/object-cache.php on line 1291

Warning: WP Redis: php_network_getaddresses: getaddrinfo for /var/run/redis/redis.sock failed: Name or service not known in /var/www/html/wp-content/object-cache.php on line 1475

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions