0

I have installed Xampp 7.2.34 from https://www.apachefriends.org in Big Sur. XAMPP htdocs folder is placed in /Applications/XAMPP/xamppfiles directory. Is there anyway that I can change the location of htdocs folder and place all my projects in the new location.

Current Location: /Applications/XAMPP/xamppfiles/htdocs

Desired Location: /Users/user/Desktop/Work/PHP/htdocs

I am following this question in Stackoverflow but it seems quite old and I was not able to accomplish what I required.

Already done:

  1. Created new empty htdocs folder on desired location
  2. Changed User daemon to User user in xamppfiles/etc/httpd.conf
  3. Didn't change Group daemon
  4. Changed DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs" to DocumentRoot "/Users/user/Desktop/Work/PHP/htdocs" in xamppfiles/etc/httpd.conf
  5. Changed <Directory "/Applications/XAMPP/xamppfiles/htdocs"> to <Directory "/Users/user/Desktop/Work/PHP/htdocs"> in xamppfiles/etc/httpd.conf
  6. I also uncommented this line of code Include etc/extra/httpd-vhosts.conf in xamppfiles/etc/httpd.conf

Result:

Access forbidden! error.

enter image description here

What did I miss? Has something changed in these years? TIA.

Zain SMJ
  • 1,252
  • 5
  • 18
  • 30

1 Answers1

0

I have the same issue, but worked with this this solution. You could using Xampp in another version, Xampp 7.4.15 with this configuration

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Ran Marciano Feb 14 '21 at 05:49