Quantcast
Channel: MAMP Bad Gateway when PHP and HTML combined - Stack Overflow
Viewing all articles
Browse latest Browse all 2

MAMP Bad Gateway when PHP and HTML combined

$
0
0

I have always used PhpStorm on my PC and have XAMPP working perfectly. I have successfully set up MAMP, with apache and mysql working fine. I have properly configured the CLI interpreter, made a database and everything else that was recommended.

My problem is very weird and I cannot seem to find the solution. The problem is as follows:

PHP ONLY pages load fine and behave as expected. HTML ONLY pages work just fine too, as above.

The issue is that when I try to run a page that has a php script and also displays html, it gives me the 502 Bad Gateway issue (PhpStorm 2019.2.1).

If someone could please help me out that would be amazing, I have a new Macbook and am keen to get everything working as it was on my PC and begin developing my pages as normal.

Thanks a heap everyone!


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>