Install PHP

sorry guys, listed at the bottom, but sometimes, i think, you are caring more about your seo rating than about people.
the topic is hot: ‘Buster’, but the same for Pi-32. except the fact that, for Pi-32 phpmyadmin (sudo apt install phpmyadmin [?]) will do everything for you

It’s really not ‘a rocket science’:

sudo apt install php

Unfortunately, only basic/common modules will be install: no mbstring, myswl, etc. will be supported. So

sudo apt install php-cli php-common php-curl php-gd php-mbstring php-mysql php-xml php-phpseclib php-mysqli php-pear php-gettext libapache2-mod-php php-zip

If you are planning to upload huge files, as me, go to

sudo nano /etc/php/7.3/apache2/php.ini

i did not set any specific version in ‘sudo apt install php-cli php-common php-curl php-gd php-mbstring’, so the latest will be installed. BUT, in ‘sudo nano /etc/php/7.3/apache2/php.ini’ you can see 7.3. that’s the current version installed at the time of writing.

… and search for ‘max’ and change the values. for ex:

post_max_size = 256M
upload_max_filesize = 256M

find them, put a values you want, save it, but do not forget

sudo service apache2 restart

Sources: https://computingforgeeks.com/install-php-on-debian-10-buster/

Leave a Reply

Your email address will not be published. Required fields are marked *

Yandex.Metrica