Raspberry Pi PHP installation

Publié le: 29 septembre 2021
sur la chaîne: dagnolof
62
0

sudo apt install php php-mbstring

Test if PHP is working
Change the index file under /mnt/shared_drive/www

Create a nex index file named index.php
Add following line in the file: echo "?php phpinfo ();?"
(There should be smaller than and greater then symbol afther en before the " symbol)

Open an internet brower, url = Ip address rapsberry PI
You should see the PHP welcome screen.



Debug Errors in PHP
Look in the apache2 error log file cat /var/log/apache2/error.log


1-Feb-2020
I got an fatal PHP error when trying to connect to a mysql database. PHP Fatal error: Uncaught Error: Class 'mysqli' not found in …….

Solved by installing php-mysql
sudo apt install php-mysql (Last letter is an l has leopold)


Sur cette page du site, vous pouvez voir la vidéo en ligne Raspberry Pi PHP installation durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur dagnolof 29 septembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 62 fois et il a aimé 0 téléspectateurs. Bon visionnage!