Raspberry Pi4 environment
Even though, Raspbian is a Linux distribution, it's a bit tricky to install the standard packages which on Ubuntu makes no problems at all.
Update
The update in this case is a must, without this it's impossible to run the project by following the steps in this guide.
Call these commands:
Php pear and pecl
Original post: https://stackoverflow.com/questions/52078688/sudo-pecl7-2-sp-command-not-found
Call the following commands:
MySql / MariaDb
Original post: https://pimylifeup.com/raspberry-pi-mysql/
Install the MySQL server software to your Raspberry Pi by calling:
sudo apt install mariadb-server
It's now needed to secure it by setting a password for the root user.
By default, MySQL is installed without any password set up meaning you can access the MySQL server without any authentication.
Run the following command to begin the MySQL securing process.
sudo mysql_secure_installation
Follow the prompts to set a password for the root user and to secure your MySQL installation.
For a more secure installation, answer Y
to all prompts when asked to answer Y
or N
.
Php
Original post: https://janw.me/raspberry-pi/installing-php74-rapsberry-pi/
To check if php7.4 is available run: sudo apt install --dry-run php7.4
If the php is not available then call
Installing php packages
Configuring FPM
Create extra config file sudo nano /etc/php/7.4/fpm/conf.d/90-pi-custom.ini
.
Add these lines to it:
Reload Php
Composer
Original post: https://lindevs.com/install-composer-on-raspberry-pi/
Call this set of commands: