Berikan izin sudo htdocs

sudo chmod 777 -R /opt/lampp/htdocs
TechieSakar