Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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

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
share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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