Directory Config Switching

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

Directory Config Switching

Postby DoughyInTheMiddle » 17. January 2019 16:39

I've got a MediaWiki that I keep on my DropBox. At home, it's on my spare drive "F:\Dropbox\xampp\", but at work, it's on my user profile, "C:\Users\DoughyInTheMiddle\Dropbox\xampp\".

Just for Apache and MySQL to run, I know I need these files to be edited:
    php.ini
    httpd.conf
    httpd-ssl.conf
    httpd-xampp.conf
    my.ini
    properties.ini
And I've got copies of them that are "...- Home.xxxx" and "...- Work.xxxx" versions. I know that I could do a batch file to delete the "default" versions and swap in the relative version for where I'm at, and then launch Control Panel, but is there an easier way to do this?

Is it possible to edit the various files to use some sort of relative references rather than the "F:\" or "C:\Users\DoughyInTheMiddle\" being hardwritten in? I know there's an XAMPP portable version out there, but it appears that hasn't been updated since 2014, so that means older versions of PHP and Apache.

Thanks in advance for assistance.
DoughyInTheMiddle
 
Posts: 3
Joined: 17. January 2019 16:22
XAMPP version: 7.3
Operating System: Windows

Re: Directory Config Switching

Postby Altrea » 17. January 2019 17:04

Xampp in a Dropbox... Some other users already had this idea...
Now they have crashed databases and not running server processes on their systems.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Directory Config Switching

Postby DoughyInTheMiddle » 17. January 2019 17:14

I'm the ONLY user. It's a personal Wiki.
DoughyInTheMiddle
 
Posts: 3
Joined: 17. January 2019 16:22
XAMPP version: 7.3
Operating System: Windows

Re: Directory Config Switching

Postby Altrea » 17. January 2019 19:54

The Dropbox sync job is your second user.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Directory Config Switching

Postby Nobbie » 17. January 2019 20:34

DoughyInTheMiddle wrote:I'm the ONLY user. It's a personal Wiki.


That does not matter. If you access with more than only ONE client, you will crash your database. Not today, probably not tomorrow, but somewhere in the future. DO NOT USE CLOUD AS A DATABASE!

As MySQL is already a server, why dont you simply run your MySQL Server on one of your PCs and then configure all other clients to access this server? Thats how client and server technologie is meant to be used. Running a MySQL database on a cloud server is a huge misunderstanding of the concepts and it will DEFINATELY LEAD TO CRASHED DATABASES. DEFINATELY!!
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Directory Config Switching

Postby DoughyInTheMiddle » 17. January 2019 22:10

Even if only one client is ever active at a time? i.e. I shut down the client from home before I access it from work and vice versa.
DoughyInTheMiddle
 
Posts: 3
Joined: 17. January 2019 16:22
XAMPP version: 7.3
Operating System: Windows

Re: Directory Config Switching

Postby Altrea » 17. January 2019 23:55

Yes, even then. Nobody will guarantee you that a cloud sync is in a consistent and healthy condition.
But at the end it is your system, do whatever you want with it.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 127 guests