To change the document root folder in lampp you need to edit /opt/lampp/etc/httpd.conf
do as follow code
# old line: DocumentRoot "/opt/lampp/htdocs"
DocumentRoot "/home/me/Dropbox/public_html"
#...etc...
# old line:
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# etc...
and restart your lampp/xampp
incase if it will not work then you can do one more thing
Open /opt/lampp/etc/httpd.conf change nobody and nogroup
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User nobody
Group nogroup
to your username and your group
No comments:
Post a Comment