Raspberry Pi 4B LAMPS web server
- Apache2 sudo apt install apache2 -y
- Change permission of website storage
- sudo a2enmod rewrite
- sudo systemctl restart apache2
- sudo chown -R pi:www-data /var/www/html/
- sudo chmod -R 770 /var/www/html/
- Modify Apache2 config file
- sudo nano /etc/apache2/apache2.conf
- From:
Directory /var/www/
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
/Directory - To:
Directory /var/www/
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
/Directory - sudo service apache2 restart
- PHP sudo apt install php libapache2-mod-php -y
- MariaDB/MySQL sudo apt-get install mysql-server php-mysql -y
- Setup MySQL Database
- sudo mysql_secure_installation
- PHPMyAdmin sudo apt install phpmyadmin -y
Host: Localhost
Username: root
Password: frpi
Database: fr