I have installed wordpress on LAMP.
As I am new one to Ubuntu. So, I Used this online tutorial
How to install wordpress on ubuntu manually
But when I am trying to give ownership of the directory to the apache user it's not working
I am giving the following commands
sudo chown admin:www-data /var/www -R
sudo chmod g+w /var/www -R
"admin" is the name which I choose for my wordpress database user.
Can anyone please guide me through this?