Configuring a XAMPP Apache server
Hello,
I'm following the Jetbrains guide to integrate a XAMPP Apache server into IDEA/Phpstorm.
After everything has been configured as the guide, the XAMPP server will not run even after I installed the Apache module as a Windows service.
I have a project folder into another storage drive D but I'm not able to run a working configuration for my php project.
The steps I've tried to do are:
- Add a new configuration -> PHP Web Page
- Select the XAMPP Apache server (localhost)
- Adding "lab6" to the start URL
I need also to create a subfolder under htdocs. When I run the configuration the browser says "Connection failed" but after starting the Apache server from the XAMPP control panel it says "Object not found".
请先登录再写评论。
Some questions, if you do not mind:
- What guide exactly did you follow? This one?
https://www.jetbrains.com/help/phpstorm/installing-an-amp-package.html#tutorial-integrating-mamp-with-product
- Do you have a Deployment configured already? (Build, Execution, Deployment | Deployment)
- Could you please confirm that XAMPP Apache server is working apart from PhpStorm, are you able to open something really simple (like index.html)?
Yes to all questions. I've managed to setup everything correctly but I cannot start a debug session using Firefox nor Chrome. Which information do I need to provide to get support?
Please don't use Run/Debug configurations for web debugging, it's much better to start debug sessions from the browser directly.
First, please check this guide: https://www.jetbrains.com/help/phpstorm/zero-configuration-debugging.html#activate-debugger-on-server
Then, if nothing works, check this troubleshooting guide: https://www.jetbrains.com/help/phpstorm/troubleshooting-php-debugging.html
Usually, the Xdebug remote host is very useful in such cases, configure it, and it'll tell you if a debugging session is being started at all.
I've installed one of the debugging extensions for FirefoxMy xampp local server php.ini file contains:
After loading all my project files to c:\xampp\htdocs\myapp I enable the "bug" icon in firefox but I'm not able to find any "Incoming connection from Xdebug" from Intellij IDEA.
If you load
phpinfo();with your web server, would there be Xdebug version shown here? http://prntscr.com/nyhwhiYes
Please configure the Xdebug remote log then and check what its content would be when you start a debugging session.
https://www.jetbrains.com/help/phpstorm/troubleshooting-php-debugging.html#collect-xdebug-logs
I've added the following line in the php.ini file
xdebug.remote_log="c:\xampp\php\log\xdebug.log"but no log is generated after a debug / run attempt
This is the log
Ok now I figured out how to launch a debug session from IDEA starting from Firefox but, when I reload the page IDEA loads three times the same php script and start three debug sessions even if I correctly set up the mapping path