Change XAMPP's htdocs web root folder to another one
- by vitto
I'm trying to change the XAMPP's web root default directory /opt/lampp/htocs to another one like /home/me/Dropbox/public_html without success.
I've edited the file /opt/lampp/etc/httpd.conf
# old line: DocumentRoot "/opt/lampp/htdocs"
DocumentRoot "/home/me/Dropbox/public_html"
#...etc...
# old line: <Directory "/opt/lampp/htdocs">
<Directory "/home/me/Dropbox/Work/public_html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# etc...
I've did this as said in this article: Using Ubuntu One to synchronise htdocs?
Then I've restarted Apache and I've got a permission error 403 on every page I've called with the web browser.
So I've changed folder and files permission to 755.
I've did this as said in this article:
What file permissions should I set on web root?
The problem still remains the same, I have the 403 error on every page I try to reach with the web browser.
I have the same problem on a Mac using XAMPP.
So everythig works fine if the folder remains the original /opt/lampp/htocs.
How can I change it correctly?