jcadima
8/29/2015 - 5:51 PM

Fix XAMPP Permissions in Linux

Fix XAMPP Permissions in Linux

To change ownership of htdocs folder run following command. [Replace username with your own username]

sudo chown -R username:username /opt/lampp/htdocs
example:
sudo chown -R jc:jc /opt/lampp/htdocs



We also need to update httpd.conf file. Run following command to open apache configuration file
sudo gedit /opt/lampp/etc/httpd.conf

Find the following 2 lines:
User nobody
Group daemon

replace 
User nobody 
with   
User jc

Save the file , log out and log back in