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

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.

Related

xampp installed on Mac not accessible via localhost, only local ip

After intalling Xampp on my Mac.
The address is http://192.168.64.2/dashboard
how can I make it to be accessible via localhost or 127.0.0.1 ?
You most likely installed the application that sets up a virtual machine. Revisit the download page and select the application without 'vm' at the end
here: https://www.apachefriends.org/download.html
Like Ab Ned said, you've probably installed the VM version. I guess that's a good thing because it might save your from unwanted side-effects. So, if you want to stick with it, just activate the port forwarding:
There's also a little walkthrough at https://www.apachefriends.org/faq_stackman.html.

WAMP + XAMPP, localhost/phpmyadmin not accesible

I am new to alot of things with WAMP/XAMPP, so i followed a few tutorials online, which required me to go to localhost/phpmyadmin. But every time i open the "webisite" i get an Error 404. As far as i know, no ports are blocked for either of the programs. when i start both apache and mysql on XAMPP it is highlighted green, and the ports are
Apache : 80, 443
MySQL : 3306
When i go to the WAMP icon, and test the port for Apache it says:
your port 80 is actually used by :
Server: Apache/2.4.12 (Win32) OpenSSL/1.01l PHP/5.6.8
which in my eyes isn't a problem.
I installed XAMPP for limesurveys, which i want to host locally. So everytime i open localhost in my browser it loads a website where i can choose from surveys. This list is obviously empty, but the important information is, THAT the webisite is available. now when i try open localhost/phpmyadmin i get a website telling me about Error 404 and stuff. I have checked, that phpmyadmin is installed when i installed WAMP, and also, that the alias in C:/wamp/alias/phpmyadmin.conf directs to the correct folder C:/wamp/apps/phpmyadmin4.1.14/. What im wondering is, why i cant open phpmyadmin...
If you have installed both xampp and Wamp on your machine try uninstalling one and just work with either one, I would recommend xampp. Make sure you move all your work files from htdocs or www, if your are uninstalling xampp or wamp respectively. Then try turning apache and mysql on and see if it works.
Good luck!
You can of course keep both XAMPP and WAMP running together keeping in mind that you have changed the default ports for either of it to some other ports rather than 80,443 and 3306, but sometimes it could create conflict as when you install some other third party softwares or enable certain services that run on port 80,443,3306.
The best alternative here would be to install one of the servers inside a virtual machine with network configured as "host-only-adapter" so that from the base machine you could access XAMPP/WAMP installed on the virtual machine by just pointing the ip-address of the virtual machine through a web-browser.
or,
If you want to run both XAMPP and WAMP together on the same machine but access only one of the servers at a time then you could go ahead installing both of them one after another. But, keep in mind that before installing the other server you have to completely stop all the services running from the XAMPP or WAMP control panel then quit the application. After this step you can go ahead installing the other server without changing any configurations or port numbers. This is because in this case we assumed that only one of the servers would be accessed at a time. Hence, before launching the other server one has to completely quit the application that is running currently by stopping all of it's services. If skype is installed then one has to change the default incoming connection ports to other than port 80 and 443.
Like mentioned above, if at all the intention is to access both servers up and running concurrently then taking advantage of a virtual machine would be the best to avoid conflicts and a long-term troubleshoots eventually.
If you messed up changing ports and config files then you could end up with the following error while trying to access phpmyadmin from XAMPP control panel:
**mysql said: Cannot connect: invalid settings. xampp**
note: while launching the servers , run it as administrator else some services will not start properly.
"I TRIED INSTALLING BOTH XAMPP AND WAMP ON WINDOWS 10 AS SUCH AS POINTED BY MANY THREADS I CHANGED THE DEFAULT PORTS FOR MYSQL & APACHE XAMPP AS IT WOULD CONFLICT WITH WAMP ALREADY INSTALLED ONLY ENDING UP UNABLE TO ACCESS PHPMYADMIN FROM XAMPP CONTROL PANEL. THEN REINSTALLED XAMPP WITHOUT CHANGING ANY CONFIGS OR PORTS. STOP THE WAMP SERVICES, QUIT THE APP AND THEN LAUNCH PHPMYADMIN FROM XAMPP CONTROL PANEL. AT LAST IT WORKED!. THE PROCESS LOOKS SHORT THOUGH WHEN IN REALITY IT TOOK ME COUNTLESS HOURS AND PAIN RESEARCHING ON THE WEB AND TESTING FOR A POSSIBLE SOLUTION UNTILL I CAME UP WITH THIS."
Hopes, this quick tips and guides would be helpful.
Stop all IIS services and Skype with generally use the same ports.

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!

why apache web server running on windows 7 not able to allow external incoming connections

I have apache web server 2.4 set up on an Windows 7 - 64 bit in school with php 5.3 and mysql installed. This web server has a static ip address and I have allowed the Apache httpd.exe program on Windows 7 firewall.
When I tried to access the page in school (on the same LAN), I was able to access the page. But, when I tried to access it from home (with an external ip address) I wasn't able to access the web page hosted on the web server. When I tried to ping the static ip address of the web server in school it works but when I ping from outside school network, I get lost packets.
Further, I have Adobe Flash Media Server 4.5 installed on the same machine listening on ports 1935 and 1234.
I have also tried to uninstall and re-install apache but to no avail.
Any idea on how what is the problem here? Or any ways to test out the problem?
Is the problem because of Windows 7 tight firewall security? or 64-bit machine? or the adobe flash media server running on the same machine? or any misconfigurations out there in Apache?
Note: the static ip address is accessible and the server can serve a page when the server is running on windows xp previously. Recently, I just changed to windows 7 but the apache server can't seem to serve the same page.
Would really appreciate some help here!!! Thanks
Your server machine may have a firewall which allows connections, but the machine may stand behind the router which does not forward ports correctly. Have you checked this?
The LAN is being protected by the router to the external network. You need to get the administrator to configure this router.

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!

Categories