Problems with the Linux version of XAMPP, questions, comments, and anything related.
by infotactix » 30. December 2004 20:53
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!
-
infotactix
-
- Posts: 1
- Joined: 30. December 2004 20:16
- Location: Vermont, USA
by Kristian Marcroft » 31. December 2004 00:03
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
-
Kristian Marcroft
- AF Moderator
-
- Posts: 2962
- Joined: 03. January 2003 12:08
- Location: Diedorf
-
by ArcticLama » 05. February 2005 20:30
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!
-
ArcticLama
-
- Posts: 1
- Joined: 05. February 2005 19:46
by LiNx » 12. February 2005 19:53
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.
-
LiNx
-
- Posts: 12
- Joined: 11. February 2005 22:15
Return to XAMPP for Linux
Who is online
Users browsing this forum: No registered users and 147 guests