Page 1 of 1

How to move xampp directory

PostPosted: 01. December 2011 04:08
by hanpedro
How to move xampp directory?

My box is scientific linux 6.1 x64 and xampp for linux 1.6.8a.

I want to move xampp directory to "/var/www/html/xampp".

Please let me know which files I should edit if I moved xampp directory to "/var/www/html/xampp".

Thanks in advance.

Re: How to move xampp directory

PostPosted: 01. December 2011 04:18
by Sharley
Would you be so kind as to add your XAMPP version and Operating System to your profile as outlined here:
viewtopic.php?f=17&t=48626

Thanks and best wishes. :)

Re: How to move xampp directory

PostPosted: 01. December 2011 04:23
by hanpedro
Sharley/ Thanks for information.
But there is no 1.6.8a, but 1.6.8 is.

Re: How to move xampp directory

PostPosted: 01. December 2011 04:27
by Sharley
hanpedro wrote:Sharley/ Thanks for information.
But there is no 1.6.8a, but 1.6.8 is.
That's fine as I believe the the a added to 1.6.8 was a small modification.

Once again thanks and I am sure the person who answers Linux questions will be here before too long - sorry I am only a lowly Windows support person. ;)

Best wishes. :)

Re: How to move xampp directory

PostPosted: 01. December 2011 19:47
by JonB
@ hanpedro -

LAMPP is not a 'standard LAMP stack'. its hard-wired to tbe bash file that makes everything work - /opt/lampp/lampp. On the windows version of XAMPP there are batch files that will basically re-configure all the options required to make XAMMP work in a different folder. As far as I know - that just does not exist in the Linux version. I suspect the reason is underlying file permissions and owenership issues, but I didn't write the script either. I suggest you open the file with an editor - you will be amazed at what you can learn. 'lampp' is going to need to stay where it is.

You certainly COULD move your Document Root to /var/www/html. You would want to set the same ownership and permissions that /opt/lampp/htdocs currently has.

as for the /opt/lamp/htdocs/xampp folder, you might want to try using an Alias (or SymLink) - I don't know if any of its parts are hard-wired, you would have to open the files and take a look. You could just copy it to the new location and see what happens - if it doesn't work then go with an Alias directive.

8)