ubuntu apache htdocs permission code example
Example: why i am not able to make a directory in htdocs folder in ubuntu
$sudo chmod -R 755 /opt/lampp/htdocs
$whoami
$sudo chown -R username:username /opt/lampp/htdocs
$sudo chmod -R 755 /opt/lampp/htdocs
$whoami
$sudo chown -R username:username /opt/lampp/htdocs