How to move xampp directory

Problems with the Linux version of XAMPP, questions, comments, and anything related.

How to move xampp directory

Postby hanpedro » 01. December 2011 04:08

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.
hanpedro
 
Posts: 133
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Re: How to move xampp directory

Postby Sharley » 01. December 2011 04:18

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. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: How to move xampp directory

Postby hanpedro » 01. December 2011 04:23

Sharley/ Thanks for information.
But there is no 1.6.8a, but 1.6.8 is.
hanpedro
 
Posts: 133
Joined: 09. February 2005 06:03
Operating System: SCientific Linux 6.1 x86

Re: How to move xampp directory

Postby Sharley » 01. December 2011 04:27

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. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: How to move xampp directory

Postby JonB » 01. December 2011 19:47

@ 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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests