Share database with XAMPP on Mac and PC - php

I'm using XAMPP and Bitbucket to keep all of my computers up to date with my website files and databases.
I have a PC desktop and a PC laptop that work fine together when it comes to updating databases between each other.
I now have a Mac laptop and for some reason, when I try to update my database to the one the PCs are using, it doesn't work. MySQL won't start when I tell it to using XAMPP.
What's wrong?

Bagwell!
I used to use Xampp as well on my PC, however, recently I switched to "Vagrant".
Vagrant uses Oracles free Virtual Box software to create a Virtual Machine on your computer. Once set up, you can access your server on your local network via Mac or PC.
It's quite easy to setup, as there is a great website called www.puphet.com where you can create a configuration file for your VM.
Anyhow, I found a great video online which explains how to setup Vagrant -
https://jtreminio.com/2013/05/introduction_to_vagrant_puppet_and_introducing_puphpet_a_simple_to_use_vagrant_puppet_gui_configurator/
Once you choose vagrant, I doubt you will ever use Xampp again.
Hope this helps!

Related

Desktop Application with Client Server Architecture That Syncs with Cloud Database

I have a web app running with PHP and MySQL.
I need to develop a desktop application which will sync data from the cloud DB whenever the client's computer connects to internet. If the client's computer is not connected to the internet, the desktop application will continue to work offline, using the local DB. The local DB is obviously a replica of the cloud DB.
I don't want to use Microsoft c# to create the desktop application. The desktop application needs to be cross platform and should run on Windows, Mac and Linux.
I have used XAMPP to create a local MySQL DB and have achieved the local app to sync with the cloud app. However, there are multiple problems to that approach.
-- Whenever my client's need to install the local app, they need to call me and I have to install XAMPP in their computer, setup the server, setup the local database and prepare it to sync with the cloud database with their account. They obviously aren't tech savvy so they don't know how to do it themselves.
-- If the client formats his computer, they will call me again and again and I have to set it up for them all the time, which isn't scalable in the longer haul.
-- XAMPP doesn't work when there are other processes running and using common ports. Example - Skype, Quickheal and other antivirus software running will prevent the SQL server to start. Sometimes what happens is that even after I have installed the local app, the client will install an antivirus software or some other tool and my local app will stop working on their computer.
Hence, I need to do away with XAMPP and switch to something else.
SQLite is out of question since it is serverless. I don't want to use .NET either. What I am looking for is this
I want to develop the database driven local application and package it somehow. I want to provider an installer file which will automatically install the database server, setup the database and everything else. The client will only login to the system in the local app and he doesn't have to setup any server. All the work that he does will be synced with the cloud server whenever internet connection resumes.
Please note that there is a master slave work involved. The client will have multiple terminal computers using the master system from other terminals and all these terminal computers will use the local database installed in the master computer.
I have tried to illustrate this with a diagram below
What's the best way to go about it?

how to make multiple xampp server on different pc of same localhost address?

my title might not be correct but this is what i want to to:
i made a website on wordpress and hosted it locally on one of my college pc(2gb ram, intel core 2 duo), using xampp.
the website is about filling the form for student data. today almost 500 students tried filling it at once, due to which i was getting the below error
"Apache XAMPP server HAS STOPPED WORKING"
1. search online
2. close the program.
can anyone suggest me the setting that i should make?
or should i upgrade the pc?
or can i make multiple server like more than one pc with xampp installed?
like if one pc with the server fails to respond it should be shifted to another pc with same xampp server or something like this?
but with same database and address.?

Moving wordpress from local to local

I have wordpress installed and running in my local machine with Windows and Xampp server. I want to access my site from all machines within my network. I have copied all the files with database dump, but it's not working. Posts, pages, plugins nothing are displaying.
I am new to wordpress, any help will be appreciated.
Thanks.
If your local Wordpress installation (running on 127.0.0.1) work, is not necessary any modifications.
Just access from computers on LAN with ip machine
192.168.0.1/wordpress <- IP of XAMPP PC.

How to use xdebug to remotely debug a php script hosted on a vmware

I'm having a really annoying problem. I use ZendStudio as a php IDE and I need to be able to debug an application which is deployed in a couple of servers:
A fisical server
A virtual server (vmware) hosted on my local machine
Both servers run CenOs, my local machine is running LinuxMint.
I configured the application so that when I save a file it is automatically uploaded to my virtual server.
The php configuration is the same in both servers, but, I can only debug using the fisical server.
I have tried several things including:
Changing the IP of the remote host to match every posible ip address for the host machine (vmware gives me two new ip addresses matching the subnet of the vm)
Activating xdebug.remote_connect_back
Activating xdebug.remote_autostart
Trying ZendDebugger
Nothing seemed to work.
I disabled ufw and eventually allowed port 9000.
Help please! :)
Edit:
I just created a new environment like this:
Fisical machine Ubuntu 10.10
VM LinuxMint 10 with apache+php+xdebug
From my fisical machine I created a new remote project pointing to the VM, created a test script, run the debugger and it worked! right out of the box... now, I'm not sure this is good or bad news, since I need to get this working with the CentOs... any ideas? Thanks!

How to run xampp in Microsoft Virtual PC's Windows XP?

Firefox and IE 7 are installed. I use MS Virtual PC for testing website in IE6 it works oon live site but I use XAMPP to render PHP files but h.ttp://localhost is not working Virtually running XP with IE6.
You have a XAMPP server running on your development machine, that you can access natively from http://localhost right?
The copy of Windows XP running inside Virtual PC is a completely separate machine. On this machine, localhost refers to the virtual machine, rather than your development machine.
You need to connect over the network to the development machine. If the IP address of your development machine is 123.123.123.123, you should be able to connect to it using http://123.123.123.123
Make sure that the IIS is on. If you're using Apache, make sure IIS is OFF.
I had this same problem - I personally gave up and used Wamp - which worked fine. Know it's not the most helpful answer...
+
just a thought - have you tried 127.0.0.1?
I ask since some XP updates caused the loopback address to stop working for a while. If you've just installed a fresh XP perhaps the updates that fixed that haven't been applied yet.

Categories