#make sure to get the latest php version sudo apt-get update #the version for your operating system sudo apt install php-cli #start php built in server #no need for firewall [ufw] ubuntu blocks all outgoing ports by default using iptables #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 install symfony to get all packages add to .htaccess hidden file to redirect http to https rewriteCond %{HTTPS} !on rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] create php.ini using multiphp editor