Phpstorm Wamp

Posted : admin On 1/29/2022

I used Netbeans for a while, but it wasn’t everything that I’d hoped for. So after using the trial of PHPStorm, I picked up a copy of it. Jetbrains makes some sweet IDEs and PHPStorm is awesome. So I wanted to add a follow up to my last post with instructions of how to get PHP debugging working with WAMP and PHPStorm. First off there are two changes that need to be made in the Apache httpd.conf file. The first one is Listen 0.0.0.0:80
Listen [::0]:80 needs to be Listen 0.0.0.0:8080
Listen [::0]:8080. Then ServerName localhost:80 needs to be ServerName localhost:8080. After that make the following changes in the php.ini:

  • You must select interpreter for your PHP storm to run build-in webserver. Go to Settings-PHP-Interpreter and select one you have. If you don't have, go and download latest PHP interpreter, then come back to phpstorm menu and add Interpreter as shown at picture above.
  • Installing WAMP on Windows Computer. First, you need to download the WAMP software and install.
WampPhpstorm Wamp

zend_extension =”c:/wamp/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11.dll”
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler=”dbgp”
xdebug.remote_host=”localhost”
;xdebug.remote_connect_back=1
xdebug.remote_port=9001
xdebug.remote_mode=req

The key part there is changing the port to 9001. Then in PHPStorm go to File -> Settings. Then from there go to Languages & Frameworks -> PHP -> Debug. Under the Xdebug section, change the Debug port to 9001. The last thing I had to do was create a PHP Web Application server in PHPStorm and point it to the localhost location for the site. I also made mappings from where my project files were to where the copied files are located in the WAMP folder.

Phpstorm wamp mysql

Phpstorm Xdebug Wamp

برنامه PhpStrom را باز کنید، از منوی بالای صفحه روی Tools رفته سپس به Deployment بروید، تنظیمات اتصال به سرور در اینجا قرار دارد؛ مثلا در Configuration می توانید سرور جدید وارد کنید یا سرورهای قبلی خود را مدیریت کنید. Under the Xdebug section, change the Debug port to 9001. The last thing I had to do was create a PHP Web Application server in PHPStorm and point it to the localhost location for the site. I also made mappings from where my project files were to where the copied files are located in the WAMP folder. Tags: debug, php, wamp, webstorm.

Phpstorm Wampserver

Tags: debug, php, wamp, webstorm