I want to execute the 'reset owner' command from the file manager, because the files I make are owned by apache, this is giving my a lot of trouble.
I have this (with php da class):
I get the error : error=1&text=An error occured while resetting the file ownership&details=You must enter a valid path. eg: /public_html
I treid to change the path so it would start with /public_html/... but no luck.
Any suggestions?
I have this (with php da class):
PHP:
function directadmin_chown($sock, $path){
$sock->set_method('POST');
$sock->query('/CMD_API_FILE_MANAGER',
array(
'action' => 'resetowner',
'button=resetowner',
'path='.$path,
));
$result = $sock->fetch_body();
return $result;
}
I get the error : error=1&text=An error occured while resetting the file ownership&details=You must enter a valid path. eg: /public_html
I treid to change the path so it would start with /public_html/... but no luck.
Any suggestions?