Localhost Connection in Different OS - php

I have two operating systems installed on my computer. Mac and Windows. Currently i'm developing web based application using php, xampp, and sql server 2008.
I installed local server (xampp) on MAC os, and the database engine (sql server 2008) on Windows 2008.
How can I connect my xampp to the database in different OS?
Thank in advanced.

Assuming you are able to boot them simulatinously, the only thing you may need to do is to port forward your router using your db port.
You don't need to do some kind of xampp modification to connect to your database. Xampp is a single workstation solution for Apache, MySQL, php bundle. You are able to use any of them in collaboration with any other outer resource.
You may want to configure your phpmyadmin to connect your new db. Necessary config file is located here: /opt/lampp/phpmyadmin/config.inc.php

Related

PHP: Using different Windows user credentials with APACHE and WAMP Server

In my company we are currently running a WAMP server with SQLSRV drivers for our BD query's, we are looking to use Windows Authentication for SQLSRV connection instead of SQL AUTH , But the default Windows User where the WAMP server is different from the user we need to access the SQLSRV host.
Im looking for a way to change the credentials from the default user to a new user when using Windows Authentication in PHP. I was wondering if is possible to do it from Apache configuration or other tool inside WAMP server.
I have tried starting Apache service as a different user, and the entire WAMP server as different user, but make no difference.

Hosting php application on Windows Server 2008 R2

I have installed xampp on my local machine as well as Windows Server 2008 and Apache and MySql is running on both.
I created a test application which I am running on my local machine.
http://localhost/example/
I want to test this example application on the server. How can I do this?
adding 192.168.1.11/example/(ip address of the server) gives me 404 - File or directory not found.
You would have to move those files over to the server instance. and make a change in your XAMPP configuration to allow the IP of your local machine to connect to the instance.
Do you have physical access to the server instance? (I.E. VM/SSH, In basement)
This question might be helpful if you are looking to allow an external IP.
httpd-xampp.conf: How to allow access to an external IP besides localhost?

Connect to Quickbooks using QODBC driver remotely via PHP

I have Quickbooks installed on a local machine. QODBC is installed and I can successfully connect to QB both with their VB demo test tools and via PHP running on the local machine.
I'm simply using odbc_connect("QuickBooks Data", "", "");
However, I need to connect back to this machine from a remote machine where PHP is running the same script. What should the connection string look like? Should I be connecting to QuickBooks Data or QuickBooks Data QRemote
It seems that QRemote is meant to work only if the Remote Client is installed on the remote machine. As I'm connecting from a Linux (non gui) machine, I don't believe that's possible. However, I have opened up the necessary ports to connect to QRemote and verified via telnet that it's open.
How do I connect? Thanks.
For now, QODBC cannot be installed on Linux machine. But if you know any driver or method to link Linux to call DSN/Driver on the machine, you should be able to use QODBC from Linux.
Please share if you are interested in a Linux client for QRemote which will connect to QuickBooks Data on the Windows machine. We are collecting votes for Developing/Adding feature for Linux Client or QRemote Driver(Linux). (To show you interest toward Linux client for QRemote, Raise a support ticket at http://support.flexquarters.com/esupport/index.php?/Tickets/Submit )
For now, you can use a windows box at the remote site.
I would request you to refer
Accessing QuickBooks Data Remotely using QODBC & QRemote. (Video)
http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2517/
&
http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2483/0/using-quickbooks-data-remotely-via-qodbc
FAQ & Knowledge base : http://support.qodbc.com/
I would suggest to use Windows machine instead of Linux machine, install PHP, use either IIS or Apache and install QODBC.
With QODBC , QRemote will get install automatically. QRemote can work locally and remotely.
If you have QuickBooks Install the the PHP machine, you can use QuickBooks Data QRemote and connect locally.
Incase you have QuickBooks on remote machine, you can configure the DSN "QuickBooks Data QRemote" and point to remote machine's IP Address.
QODBC driver is meant to be installed on a Windows machine to access the data.
Refer :
Accessing QuickBooks Data Remotely using QODBC & QRemote. (Video)
http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2517/
How to use QODBC with PHP
http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2623/0/how-to-use-qodbc-with-php

Can I develop website in Wamp and then deploy it on Unix server host?

Is There a problem if I develop website in Wamp (Windows , Apache , MySQL , PHP) on Windows OS and decided to deploy this site on Unix server Host? Or should I deploy it on IIS Windows Server Host, please help me in this dilemma
You can develop your site using wamp and deploy on unix server without any issue. But you need to be careful with naming convention of files and database table/field name because window is case insensitive and unix/linux is case sensitive.

Share database with XAMPP on Mac and PC

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!

Categories