Building a LAMP Server on Raspberry Pi and Deploying a Laravel Project: Step-by-Step Guide



Building a LAMP Server on Raspberry Pi and Deploying a Laravel Project: Step-by-Step Guide

Building a LAMP Server on Raspberry Pi and Deploying a Laravel Project: Step-by-Step Guide

In this comprehensive tutorial, learn how to set up a powerful LAMP (Linux, Apache, MySQL, PHP) server on a Raspberry Pi. From installing the necessary components to configuring each step, we’ll cover everything you need for a seamless setup. But that’s not all! We’ll also guide you through the process of deploying a Laravel project on your newly created server. Get ready to harness the potential of Raspberry Pi and Laravel in this exciting hands-on guide.

Laravel app: https://ittihadsoft.net/products/taskwise-freelance-marketplace-php-script/

COMMAND
=========================
sudo apt install
sudo apt clean
sudo apt upgrade

sudo apt-get install apache2 -y
sudo wget -qO /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update
sudo apt install -y php8.2-common php8.2-cli
sudo apt install apache2 php8.2 php8.2-common php8.2-cli php8.2-mbstring php8.2-xml php8.2-pdo php8.2-mysql php8.2-curl php8.2-zip unzip -y

sudo apt install -y php8.2-mysql
sudo apt install -y libapache2-mod-php8.2
sudo rm index.html
sudo service apache2 restart
sudo apt install mariadb-server php-mysql -y
sudo service apache2 restart
sudo mysql_secure_installation