Changing default directories of XAMPP on Ubuntu Jaunty Linux
May 10th, 2009
This post deals with changing the default directory of Apache in XAMPP.
Changing the Apache Directory:
Step 1: sudo gedit /opt/lampp/etc/httpd.conf
Step 2: Search for [ DocumentRoot "/opt/lampp/htdocs" ] without the brackets
Step 3: Change it to [ DocumentRoot "/whatever/directory/you/want" ]. Don’t put a / at the end of the path
Step 4: Search for [
] Step 5: Change it to [
] Step 6: Copy the files in /opt/lampp/htdocs/ to /whatever/directory/you/want
Restart the XAMPP server, and you’re all ready to go.
hey this is a very interesting article!