Pages

Showing posts with label access htdocs. Show all posts
Showing posts with label access htdocs. Show all posts

Thursday, February 13, 2014

Access htdocs root folder from another drive than installation drive in lampp/xampp in linux


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



About Me

Hi,My name is Harish Kumar.I am a web developer by profession.I am working in the same field since 2008. About my skills i am proficient in HTML,CSS,JAVASCRIPT/JQUERY/ ANGULAR,PHP,MYSQL,APACHE,LINUXAJAX, REST,etc...