LAMPP local server

Multiple users

Create a gitusers group, join the required users to the group and give ownership of htdocs folder to the group

$groupadd gitusers
$usermod -a -G gitusers USER
$cd /opt/lampp
$chown root.gitusers htdocs
$chmod 755 htdocs

Single users

Just give ownership of the htdocs folder to desired user

$cd /opt/lampp
$chown htdocs

Inside /opt/lampp/htdocs

$git clone ssh:address/to/repository

Access the module with the url : localhost/repository

  • linux/lampp.txt
  • Last modified: 2020/06/01 16:35
  • by