linux add permission to folder htdocs code example Example: chmod 777 ubuntu xampp sudo chmod -R 777 /opt/lampp/htdocs