Phpstorm, php interpreter is not configured - wrong folder!

Asked

Viewed 986 times

0

Guys I was doing some naughty codes on php and everything was going well, until I started to do integration html with php, I put the file html in the same folder as php, in the right folder of mine MAMP(which I think is the htdocs, well at least it was working right until I try to integrate(mac use)), but when I put the code to run I get this error:

inserir a descrição da imagem aqui

Looking at the url further identified that the directory of the MAMP, that should be http://localhost:8888/html5+php/fusao.php?valor=2 was with the wrong numbers: http://localhost:63342/html5+php/fusao.php?valor=2.

In my Phpstorm he’s giving me this message:

inserir a descrição da imagem aqui

I tried to configure, but could not, looking at the tutorial Getbrains, I saw that for this I needed to be with the PHP version installed, but for some reason it is not, I could not understand very well how it installs, I tried to install a business by the terminal, but it did not help. What I find more interesting is that, if I arrange the number of the site up there it works as it should! Only when I pull straight from the button I have to go in the url change the numbers of 63342 for 8888. How can I fix it? Mine MAMP is just called MAMP. In my laygirl I think it’s actually all well-configured, just a directory that’s in trouble, but I don’t know how to fix it, someone knows how to fix it?

Obs: Man Phpstorm is trial.

  • 1

    I don’t understand what you are doing. Or intending to do. But error 502 is server error. It means your server is not active. Turn on apache and see if error continues.

  • A simple program q calculates the square root, but when I put the number and click on the button to calculate the root the directory q the php file tries to find this wrong.

  • Well, I don’t use MAMP, in Windows I used to use XAMPP or WAMP. But I’m working on linux. Because I think it’s better to work with development. I don’t know or never had to do this server integration with PHP Storm. I use PHP Storm only as an IDE.

  • instructions on this link nhttps://www.jetbrains.com/help/phpstorm/debugging-with-phpstorm-Ultimate-guide.html in Cli interpreter put -d-dxdebug.remote_host=127.0.0.1 in configuratios option

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.