+ 1

502 error in html template

hi guys i have a html template and i want to change it to a php file like this (index.html to index.php) when i change it to php 502 error appear i need to use php code to connect to database

2nd Jan 2020, 10:26 AM
shayan
shayan - avatar
5 odpowiedzi
+ 1
Look at your server this error means something is wrong with your server https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
2nd Jan 2020, 11:08 AM
Nico Ruder
Nico Ruder - avatar
+ 1
Maybe a typo in your index.php file which makes this error
2nd Jan 2020, 11:24 AM
Nico Ruder
Nico Ruder - avatar
0
my server is fine i can connect to my database in another php file in my project only my main page (indx.html) show this error
2nd Jan 2020, 11:14 AM
shayan
shayan - avatar
0
i'm new to php, html and css my problem solved ! I did not define interpreter for php in phpstorm IDE 😅 thank you nico for your response
2nd Jan 2020, 11:46 AM
shayan
shayan - avatar
0
No problem
2nd Jan 2020, 12:19 PM
Nico Ruder
Nico Ruder - avatar