By default, cp copies only the direct files in, and not subdirectories in the directory. The message cp: omitting directory ‘directory’ warns you that the mentioned directory is not copied.

To do so, specify the -r (or –recursive) option:

sudo cp -r /tmp/posty_webui/* /var/www/html