Possible permission problem

0

When trying to run a php code on my Ubuntu machine

if ( ! is_dir($system_path))
{
    header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
    echo 'Your system folder path does not appear to be set correctly. Please open the following file and correct this: '.pathinfo(__FILE__, PATHINFO_BASENAME);
    exit(3); // EXIT_CONFIG
}

He is experiencing an error:

I realize that it may be a permission error on my machine, I tried to follow this tutorial: link

But when running second command: $ chmod go+x /var/www my Ubuntu displays the following error message:

chmod: alterando permissões de “/var/www”: Operação não permitida

Any tips on what can be?

    
asked by anonymous 18.11.2015 / 13:44

1 answer

-1

If you are admin the machine does

sudo chmod go+x /var/www

It will ask you to pw and execute later.

    
18.11.2015 / 14:42