
- #INTELLIJ PHP FOR MAC HOW TO#
- #INTELLIJ PHP FOR MAC INSTALL#
- #INTELLIJ PHP FOR MAC FULL#
- #INTELLIJ PHP FOR MAC CODE#
It should look like that: zend_extension =/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so If you miss the xdebug information, please check if this file has been created: /opt/local/var/db/php5/xdebug.ini. With Xdebug v2.1.1, Copyright (c ) 2002-2011, by Derick Rethans Zend Engine v2.3.0, Copyright (c ) 1998-2012 Zend Technologies If everything is alright, you should see something like that on your screen when asking for the version: $ php -version It is the default directory where Mac Port puts binaries and should be already available on your path. Your new PHP binaries should be available in /opt/local/bin.
#INTELLIJ PHP FOR MAC INSTALL#
This will delete the OSX pre-installed binaries (at least under 10.6.x).įor the sake of completeness, here is how you can install PHP and xdebug with Mac Ports: $> port install php53 Actually I could not edit the php.ini file which was used, not even with superuser rights. It was not the one I wanted, I wanted to go with the one I installed with Mac Ports. In my case, OS X delivered a PHP binary to /usr/bin/php. Most of us already know that the PHP version on command line might not match the version used by PHP. Luckily it turned out to be pretty easy, thanks to xdebug, Mac Ports and the fantastic IntelliJ IDE. While I had xdebug in place for my Apache HTTPD delivered applications, I had not anything ready for debugging CLI. But recently I tried to create a TestCase and there was an issue which I simply couldn’t find. just install them & use them because they work out of the box.Usually I don’t need much debugging with PHP. so to conclude, the definitive guide to using IntelliJ IDEs with WSL2 would be. Not needed anymore, since #1 works just fine.
#INTELLIJ PHP FOR MAC FULL#
You can store projects on the \wsl$ & use the full potential and speed of WSL2.

Things are much much faster if you just host & store all of your files under the \wsl$ folder of your distro. However, that caused performance drawbacks. The first workaround was, store everything on the Windows side & then just open the folder in PhpStorm.
#INTELLIJ PHP FOR MAC CODE#
However, if you're a Visual Studio Code user you got that first-class support from day one, but with tools like WebStorm, PhpStorm, unfortunately, it wasn't like that. However, the main issue from the start was that many development tools didn't support it. It is incomparably better on WSL2 and made me switch full-time to Windows. I've been a huge fan from the start, even with WSL1, but I still kept my dual-boot, mainly cause of performance.
#INTELLIJ PHP FOR MAC HOW TO#
Note: This is not an intro nor a guide on how to set up and install WSL2! Windows Subsystem for Linux is out for quite some time right now & it's finally getting into perfect shape and becoming a perfect tool for most developers. TLDR: Now you can use IntelliJ IDEs installed on Windows & store projects on Linux filesystem without needing to configure anything else & with a full speed advantage 🎉.
