i have read in a similar post as to how to change the document root in ubuntu xampp which said to change documentroot value & the <directory> tag values to my preferred address.. i tried and its wasnt working. i realised that my drive is named with spaces in between like "my drive" and after a little search i found that i should use "my\ drive" to include the space in between the words.. but now i have another error..
httpd.conf value: DocumentRoot "/media/my\ drive/xampp/htdocs"
XAMPP: Error 1! Couldn't start Apache! XAMPP: Starting diagnose... XAMPP: Sorry, I've no idea what's going wrong. XAMPP: Please contact our forum http://www.apachefriends.org/f/
i checked error_log file which says
[Tue Aug 14 00:08:21 2012] [error] [client 127.0.0.1] (13)Permission denied: access to /favicon.ico denied [Tue Aug 14 00:08:47 2012] [notice] caught SIGTERM, shutting down Syntax error on line 179 of /opt/lampp/etc/httpd.conf: DocumentRoot must be a directory Syntax error on line 179 of /opt/lampp/etc/httpd.conf: DocumentRoot must be a directory Syntax error on line 179 of /opt/lampp/etc/httpd.conf: DocumentRoot must be a directory Syntax error on line 179 of /opt/lampp/etc/httpd.conf: DocumentRoot must be a directory
it is a valid directory in which i have my windows 8 os installed..