Errors with installing Duplicator files

Hi there,

I tried so many times to install Duplicator files in my local site. I emptied the folder first, copied the two Duplicator files (.zip and installer.php), but every time I get an error.

The error says:
Server Code: 502
Status: Bad Gateway

What am I doing wrong?