Problems with the Linux version of XAMPP, questions, comments, and anything related.
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?
- Posts: 1
- Joined: 30. December 2004 20:16
- Location: Vermont, USA
Symlinks will be better...
Some Paths you won't be able to change, cos they are staticly compiled..
So Symlinks is the best solution...
- AF Moderator
- Posts: 2962
- Joined: 03. January 2003 12:08
- Location: Diedorf
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!
- Posts: 1
- Joined: 05. February 2005 19:46
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.
- Posts: 12
- Joined: 11. February 2005 22:15
Return to XAMPP for Linux
Who is online
Users browsing this forum: No registered users and 1 guest