Page 1 of 1

Alternate location for data files

PostPosted: 30. December 2004 20:53
by infotactix
I just installed XAMPP for Linux and I'd like to change the data directories for MySQL and Apache from the default (under /opt/lampp) to more typical locations. Normally MySQL data is stored in /var/lib, Apache is usually in /home/htdocs or similar.

It appears that there are a couple of scripts that need to change to make this work. Is it better to change the startup scripts, or just create symlinks from the respective directories under /opt/lampp to the desired locations?

Thanks!

PostPosted: 31. December 2004 00:03
by Kristian Marcroft
Hi,

Symlinks will be better...
Some Paths you won't be able to change, cos they are staticly compiled..
So Symlinks is the best solution...

So long
KriS

PostPosted: 05. February 2005 20:30
by ArcticLama
Hi,

I too wanted to do the same thing as Infotactix asked. So I did exactly what you suggested: create a symlink:
Code: Select all
# mv /opt/lampp/htdocs /home
# cd /opt/lampp
# ln -s /home/htdocs htdocs

It did work perfectly :) Thanks a lot for your suggestion, Kristian!

PostPosted: 12. February 2005 19:53
by LiNx
All I wanted to change was the apache directory, and I did that my modifying two lines in httpd.conf at around line 350... I haven't had any problems since.