VIRTUAL HOSTS
Uncomment including vhosts in “/opt/lampp/etc/httpd.conf” and set “User shara” and “Group www”
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
User shara
# commented out by lampp compatibility check
#Group nogroup
Group www
Clear “/opt/lampp/etc/extra/httpd-vhosts.conf” and add
DocumentRoot “/home/shara/Sites/mysite”
ServerName mysite
ErrorLog “/home/shara/Sites/mysite/mysite-error.log”
CustomLog “/home/shara/Sites/mysite/mysite-access.log” common
Require all granted
Add new host in /etc/hosts
127.0.0.1 mysite
Add group
groupadd www
Add user to group
usermod -aG www shara
Change htdocs group
chgrp -R www /opt/lampp/htdocs
Change sitedir group
chgrp -R www /home/shara/Sites
Change htdocs chmod
chmod 2775 /opt/lampp/htdocs
Change sitedir chmod
chmod 2775 /home/shara/Sites
Set phpmyadmin config chmod
chmod 664 /opt/lampp/phpmyadmin/config.inc.php
Run lampp
sudo /opt/lampp/lampp start