Answer the question
In order to leave comments, you need to log in
Why such magic with file permissions?
su -s /bin/bash www-data
php -r 'echo shell_exec("whoami"); var_dump(is_readable("/run/redis/redis.sock"), is_writable("/run/redis/redis.sock"), is_executable("/run/redis/redis.sock"));'
<?php
echo shell_exec("whoami");
var_dump(is_readable("/run/redis/redis.sock"), is_writable("/run/redis/redis.sock"), is_executable("/run/redis/redis.sock"));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question