#make sure to get the latest php version sudo apt-get update #the version for your operating system sudo apt install php-cli #start server #will run http://localhost:8000/index.php , index.php in current folder php -S localhost:8000 #control-c to quit #to kill stray process on a port , kill http server fuser -k 8000/tcp #Uncaught PDOException: could not find driver #create file to see sudo nano /etc/php/8.0/cli/php.ini #uncomment the line extension=pdo_sqlite #by removing the ; semi colon [control-o] [enter] [control-x] #Unable to load dynamic library 'pdo_sqlite' sudo apt install php-sqlite3