I have this side project with me since 2007, it is an one file php website with sqlite db and some pictures and js and css. I am keeping it just to monitor sometime how are the things at php side.
Anyway when I first build up this site I was using shared hosting, and in time I moved to dedicated server and today I decided to move to koyeb.com which is a nice cloud provider.
How to move old php code to cloud, I followed these steps
{ "require": { "php": "^8.1", "ext-pdo": "*", "ext-pdo_sqlite": "*" } }
web: heroku-php-apache2 ./
I did not try to use Dockerfile but it can be configured with that too according to this page.
Reference:
The above is the detailed content of How to deploy old php website to koyeb. For more information, please follow other related articles on the PHP Chinese website!