Page 1 of 1

Directory Config Switching

PostPosted: 17. January 2019 16:39
by DoughyInTheMiddle
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.

Re: Directory Config Switching

PostPosted: 17. January 2019 17:04
by Altrea
Xampp in a Dropbox... Some other users already had this idea...
Now they have crashed databases and not running server processes on their systems.

Re: Directory Config Switching

PostPosted: 17. January 2019 17:14
by DoughyInTheMiddle
I'm the ONLY user. It's a personal Wiki.

Re: Directory Config Switching

PostPosted: 17. January 2019 19:54
by Altrea
The Dropbox sync job is your second user.

Re: Directory Config Switching

PostPosted: 17. January 2019 20:34
by Nobbie
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!!

Re: Directory Config Switching

PostPosted: 17. January 2019 22:10
by DoughyInTheMiddle
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.

Re: Directory Config Switching

PostPosted: 17. January 2019 23:55
by Altrea
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.