0

I installed XAMPP but I need to edit folders and files in there. I did the following

groupadd lampp
usermod -a -G lampp kyle
chown -R root:www-pub /var/www 
chmod 2775 /opt/lampp 
find /var/www -type d -exec chmod 2775 {} +
find /var/www -type f -exec chmod 0664 {} +

(Above code from here) So ya, I logged out then back in and nothing changed. So ya any help would be awesome Thanks - FRED

1 Answers1

0

you need to add yourself to the www-pub group

plus /opt/lamp is not the same as /var/www

sudo groupadd www-pub #I am not sure if you need this
sudo usermod -a -G www-pub kyle
sudo chown -R root:www-pub /var/www 
sudo chown -R root:www-pub /opt/lamp
sudo find /var/www -type d -exec chmod 2775 {} +
sudo find /var/www -type f -exec chmod 0664 {} +
sudo find /opt/lamp -type d -exec chmod 2775 {} +
sudo find /opt/lamp -type f -exec chmod 0664 {} +

BUT you probably need EITHER /opt/lamp or /var/www , not both

Then log out and back in.

See also How to avoid using sudo when working in /var/www?

Panther
  • 102,067