WARNING when upgrading.

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

WARNING when upgrading.

Postby solconnection » 10. May 2011 08:38

Remember that the HTDOCS folder is in the XAMPP folder, so when you upgrade, everything in HTDOCS is lost.

this is a silly file structure, HTDOCS should reside outside the core functionality of XAMPP so upgrading doesn't mean losing all your sites (which just happened to me)...worse still osx permanently erases everything, bypassing the trash, so it is unrecoverable.

learn from my mistake :) though it would be good if the xampp team prevented this from happening in the future with better folder structuring.
solconnection
 
Posts: 2
Joined: 10. May 2011 08:31

Re: WARNING when upgrading.

Postby MegaChriz » 10. May 2011 14:16

Change the DocumentRoot in httpd.conf if you want your files at a different location:
Code: Select all
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"

Code: Select all
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Applications/XAMPP/xamppfiles/htdocs">
MegaChriz
 
Posts: 158
Joined: 16. February 2009 15:04
Location: Amersfoort, The Netherlands
XAMPP Version: 1.8.3-3
Operating System: Mac OS X

Re: WARNING when upgrading.

Postby MegaChriz » 10. May 2011 14:23

Alternatively, you can also create a virtual host.
If you want to do that by using a different port, you need to add
Code: Select all
AcceptMutex flock
in httpd.conf, because of a bug in XAMPP.

And then you can add a virtual host this way:
Code: Select all
Listen 1000
NameVirtualHost *:1000
<VirtualHost *:1000 >
    DocumentRoot "/Websites"
</VirtualHost>

See also /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
or http://httpd.apache.org/docs/2.2/vhosts/
MegaChriz
 
Posts: 158
Joined: 16. February 2009 15:04
Location: Amersfoort, The Netherlands
XAMPP Version: 1.8.3-3
Operating System: Mac OS X

Re: WARNING when upgrading.

Postby solconnection » 19. June 2011 06:57

thanks guys, appreciated
solconnection
 
Posts: 2
Joined: 10. May 2011 08:31


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 2 guests