I have error as below
But my folder is on 777 and own by the nginx and php-fpm runs as nginx.
Warning: error_log(/var/www/vhosts/example.com/httpdocs/includes/../tmp/logs/error2016-08-10.log):
failed to open stream: Permission denied in
/var/www/vhosts/example.com/httpdocs/includes/config.php on line 86
php code that produced the error was
<?php
error_log($message, 3, __DIR__ . '/../tmp/logs/error' . date('Y-m-d') . '.log');
?>
Any idea on why ? is it open_base_dir "/../" is not working ?