The easiest way to change document root from /opt/lampp/htdocs to /home/alfred/htdocs for XAMPP(linux) in a step by step guide?

link|improve this question
feedback

migrated from stackoverflow.com Jun 7 '10 at 8:06

This question came from our site for professional and enthusiast programmers.

1 Answer

I know this doesn't answer the exact question of how to change the document root, but I would just use a symlink as simple/quick workaround:

ln -s /home/alfred/htdocs /opt/lampp/htdocs
link|improve this answer
The easier way would be to edit the appropriate apache config file, which may or may not be the default apache config... – jcolebrand Jun 6 '10 at 22:38
+1 That's the way I tend to do it, though you'll also need to think about user/group permissions for both the Apache user and Alfred. It's just nice to keep everything in one place, with some symlinks in to make it easier for users. – kaerast Jun 7 '10 at 8:14
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.