writePermission issue with October CMS

first of all, thanks for the reply,

and I tried all 3 commands … lol

and restarted the XAMPP server.

Still the permissions arent given to OctoberCMS.

➜  ~ sudo chown -R root:root /opt/lampp/htdocs/buddhistblog

[sudo] password for zhouxiang: 
➜  ~ sudo chmod -R 755 /opt/lampp/htdocs/buddhistblog

➜  ~ sudo /opt/lampp/lampp stop


Stopping XAMPP for Linux 7.4.1-1...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
➜  ~ sudo /opt/lampp/lampp start


Starting XAMPP for Linux 7.4.1-1...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
➜  ~ sudo chown -R www-data:www-data /opt/lampp/htdocs/buddhistblog

➜  ~ 

all of those commands worked… I got a little green arrow on my ohmyzsh theme, which indicates it should worked.