Let me say first and foremost, I am not trying to INSTALL Xdebug locally on my Mac and can not run the application on my Mac. I also can not downgrade my OS below Catalina so let's just not discuss those options please...
I got a new Macbook Pro running MacOS Catalina (10.15.7) and can not get Xdebug working to save my life. The PHP application runs on a SHARED development server hosted on Amazon. Seeing as how the environment is shared among several developers, we use Xdebug via remote_connect_back setting.
With my old Macbook Pro running High Sierra (10.13.3), it connects just fine and step debugging has been working for years. The result is the same with all of my co-workers: those on Mojave and below have no issue and Xdebug works wonderfully. All of us with Catalina and higher can not get Xdebug to connect to our machines from the shared dev server. We are all running PhpStorm 2020.3, and use the Chrome Xdebug helper plugin (with "phpstorm" set as the IDE key).
I have set up this configuration at least 2 dozen times (and wrote the company guide for setting up the dev environments including Xdebug), so it's a bit embarrassing that it won't work on newer Macbooks.
The computer I am currently testing has the firewall disabled, no internet security, clean install as of yesterday. Also tried with gatekeeper disabled, rootless protection disabled and Allow Remote connections from ANYONE. All to no avail. On my previous laptop, I can ssh into the dev server, and open a telnet session on port 9000 to my local laptop and it works fine. On the NEW computer, if I attempt a telnet session on port 9000 it just times out.
What is interesting is if I turn OFF listening for Xdebug connections in PhpStorm and run the telnet command again, I IMMEDIATELY get a connection refused message. So I KNOW I am getting the right machine, it's almost as if Apple implemented some security through obscurity logic between Mojave and Catalina.
It's also worth noting that one co-worker is running Catalina, but version 10.15.2 and his connects just fine and he is refusing to update (reasonably so). Any help would be greatly appreciated.
Edit/Update: I have tried both xdebug 2.7.2 via remote connect back on port 9000 and 3.02 via discover remote host on port 9003.
Second Edit/Update: If I open a reverse ssh tunnel on my laptop (ssh -N -R 9003:127.0.0.1:9003 dev_server_host) I can get Xdebug to work. However this solution isn't practical on a SHARED dev server as if more than one person does this we get cross talk. Just noting it to help with troubleshooting.
Third Edit/Update: This issue is still unresolved so I would love to find a solution at some point, but I have moved on by working with coworkers to get it running locally on docker. On docker we have no issue getting xdebug to connect. Our unit tests run a bit slower in docker, whether the code is mounted via a volume or not, but that is another topic for another day.
Related
I'm trying to figure out why my install of phpmyAdmin to a ubuntu machine on a google compute didn't work and then did.
I started by installing phpMyAdmin manually on vm1 it worked well. I used a snapshot of the disk from before the installation of phpMyAdmin and spun up a new vm. This vm had a different ip but ostensibly the same. In vm2, I tried the manual install that worked earlier in the day and received a timeout error. Next, I tried the package installer version of phpMyAdmin. It wasn't timing out but my root dB password didn't work. I left my system for ~1, came back, and everything was working again. What could be vm2's problem?
I'm trying to get started with WAMP server on a Windows 10 computer. When I try to launch the WAMP application on the computer, I get an error message that says This application was unable to start correctly (0xc000007b).
The WAMP icon in the taskbar tray is orange, with 2 of 3 services running.
I am still able to access the WAMP dashboard through localhost in my browser.
I've gone through and installed all the required Visual C++ redistributables to no avail.
I've enabled both the .NET frameworks.
I've installed Microsoft DirectX.
I've restarted the computer.
I don't have Skype.
Running as an administrator.
Some of the things I tried might be completely useless, I was just watching a few YouTube videos about how to resolve this error.
It says in 'services.msc' that it's mySQL that isn't running. Only MariaDB and Apache appear in services.msc, but I'm still able to access phpMyAdmin
Does anyone know what could be the issue? I'm just about at the stage of uninstalling WAMP and starting again, or maybe trying XAMPP instead.
UPDATE: I reinstalled WAMP entirely, and now I have a green icon in the taskbar, with all services running, however I am still not able to open the WAMP application as per the above question. Can I use WAMP without using the desktop client?
At first, I use Struts 2 to develop a website in Java web technology. So I installed Apache Tomcat as the localhost server and MYSQL as the database (MYSQL here is the full application from mysql.com, not the packages like XAMPP or WAMP...)
But now I switch to learn a little bit about PHP so I install WAMP full package. When I start all services of WAMP and go to browser and type localhost, everything work fine
But when I go to localhost/phpmyadmin, it seems to connect to the old MYSQL application in my computer (what I've used in Java web). And then I restart computer and use MYSQL Workbench (in the MYSQL application), but now it connects to the database of WAMP package, and I can not connect to the old database (in Java web) anymore
The solution is remove WAMP but I need WAMP for PHP
So I just want to ask how can I use MYSQL application and WAMP package together (MYSQL application for Java web and WAMP package for PHP)?
Thank you and apology for my bad English!
Go to C:\Program Files (x86)\MySQL\MySQL Server 5.1 and open my (Configuration file) and then navigate to
[client]
port=3306
Change this to
[client]
port:3307
This will make phpmyadmin to run on 3306 and Java-Mysql to run on 3307
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.
I have just installed CouchBase Server Enterprise v2.0.0 using the setup.exe on my Windows 7 64bit machine and supposedly the Browser based Console should appear automatically after installation but all i am getting is
Unable to Connect:
**Firefox can't establish a connection to the server at localhost:8091.**
The CouchBase service is running when I check?
I have uninstalled and reinstalled a couple of times now?
Am I missing something here?
You are probably hitting a known issue related to IP address acquisition during startup of Couchbase Server.
I have documented a work around here: http://tugdualgrall.blogspot.com/2012/12/what-to-do-if-your-couchbase-server.html
As stated in the blog post it will be fixed in the 2.0.1 release
I am currently running ubuntu 10.4, I would like to be able to run windows XP from within that machine, using vmware player/workstation. I am not sure which is better for my situation.
I need to verify my builds under a windows environment, which is why i need the vmware software, Does anyone have experience, running Hudson slaves on windows machine that is a VM, from a Linux machine that runs the master Hudson.
Are there any guides or tutorials on how to set this up, or practice that would speed up the process, and limit road blocks in the future.
Thanks.
Edit: VirtualBox would be just as useful. :) -- actually more interested in that.
Since you mentioned VirtualBox, there is a VirtualBox plugin for Hudson.