Skip to main content
1 de 2

// criar pasta

$dir = '/usr/local/openresty/nginx/html/nome_da_pasta';
mkdir($dir, 0777, true);

// error log

if (!@mkdir($dir)) {
    $error = error_get_last();
    echo $error['message'];
}

Liberar permisão

chcon -R -t httpd_sys_rw_content_t /usr/local/openresty/nginx/html