phpstorm 运行 php 出现 502 Bad Gateway

已标记关键词 清除标记
<div class="post-text" itemprop="text"> <p>This is my first post here. I followed instructions and explored all the internet on this topic, still didn't figure out the solution. Added interpreter as you can see on this screenshot:</p> <p><img src="https://i.stack.imgur.com/toZSk.png" alt="1"></p> <p>I created PHP Web Application as visible here:</p> <p><img src="https://i.stack.imgur.com/qWwPF.png" alt="2"></p> <p>And after that I when I try to run it in any browser I get this message (Don't have reputation 10 so couldn't post it as 3rd picture):</p> <blockquote> <p>"Object not found!</p> </blockquote> <p>The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.</p> <p>If you think this is a server error, please contact the webmaster.</p> <blockquote> <p>Error 404</p> <p>localhost Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.20"</p> </blockquote> <p>Please help me, I don't know what to do anymore. Thanks in advance!</p> <p>EDIT 1:</p> <p>So I figured out that my php file and all the other files (css, js, html, img) have to be in xamp/htdocs folder so I can run it manually by writing "localhost/filename.php" in address bar. It works only if my php file is exactly in htdocs folder. Otherwise when I try to run my file from folder where the rest of my project is and in address I add "localhost/projectfolder/homepage.php" I got message saying: "</p> <blockquote> <p>Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0</p> <p>Fatal error: Unknown: Failed opening required 'D:/xampp/htdocs/Damir Jelusić/homepage.php' (include_path='D:\xampp\php\PEAR') in Unknown on line 0"</p> </blockquote> <p>I couldn't find a solution to this. Also I would like to be able to run my php page just by clickin little chrome icon in phpstorm. Tell me if it is possible. Cheers!</p> </div>
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页