Is it possible to use php on glitch?

I’m making a website and is it possible to use php on glitch?

Yup, it sure is! You can remix the hello-httpd project (or lamp-poc, if you want) by @RiversideRocks and put everything you have there.

If you want to use PHP purely, there is a simpler way.
Just put the following in glitch.json:glitch.json:

{
  "start": "php -S 0.0.0.0:3000"
}

After that, add index.php etc.

keep in mind that PHP, Apache and MySQL are OS packages and their versions are out of date:

1 Like