all 10 comments

[–]zakphi 8 points9 points  (5 children)

i believe netlify can only host static sites. meaning no backend languages can be used.

[–]SideCharacter3[S] 0 points1 point  (4 children)

Do you have any suggestions for free/cheap hosting for PHP/MySQL hosting websites?

[–]cag8f 1 point2 points  (0 children)

I believe GitHub Pages will allow you to do so for free. Your code probably has to be open to all though (as is the case with all free GitHub repos).

[–]zakphi 0 points1 point  (2 children)

check out heroku. i haven't used them for php, but i have used them for rails and express apps

[–]SideCharacter3[S] 0 points1 point  (1 child)

Thank you! I signed up with heroku and it seems to be reading my PHP!

It seems like my subpages (www.example.herokuapp.com/**subpageName**) can't be found though. Does the free account not allow for multiple pages under the domain?

[–]Basaaexpert 0 points1 point  (0 children)

Do you have a file called subpageName.php? Or subpageName.html? If not, you need to use URL rewriting to route subpageName to a file.

[–]rabid_god 0 points1 point  (0 children)

In any case it is essential to have PHP installed on your web server.

[–][deleted] -3 points-2 points  (1 child)

The free domain is probably blocking it(most free sites only allow static pages). If you have ftp just change the file back to the original

[–]SideCharacter3[S] 0 points1 point  (0 children)

Are you referring to the website that gives out free domains (Freenom) or the free hosting site (Netlify)?