filmov
tv
Raspberry Pi: Web Server Setup (Apache, PHP, MySQL, PHPMyAdmin)

Показать описание
In episode 4 of the Raspberry PI video series on this channel, I will show you how to turn your Raspberry Pi into a web server with Apache, PHP, MySQL, and PHPMyAdmin.
Interested in hosting an entire website on your Raspberry Pi? This is part one of the process.
--- Highlights ---
0:01:27 - Install Apache (HTTP Server)
0:01:38 - Install & Configure PHP (Coding Interface)
0:02:24 - Install & Configure MySQL (For Databases)
0:03:18 - Install & Configure PHPMyAdmin (Database Management)
0:04:58 - How to Access Web Server/Web Site on Raspberry Pi
--- Commands Used ---
Get Latest Packages: sudo apt-get update
Install Apache: sudo apt-get install apache2 -y
Install PHP: sudo apt install libapache2-mod-php
Change Dir to Public Html: cd /var/www
Grant ownership to pi user: sudo chown pi: html
Install MySQL: sudo apt install mariadb-server php-mysql -y
Create User Query: CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
Grant User Permissions: GRANT ALL PRIVILEGES ON *.* to 'admin'@'localhost' WITH GRANT OPTION;
Install PHPMyAdmin: sudo apt-get install phpmyadmin
Restart ApacheService: sudo /etc/init.d/apache2 restart
Reboot Raspberry Pi: sudo reboot
#RaspberryPI
Interested in hosting an entire website on your Raspberry Pi? This is part one of the process.
--- Highlights ---
0:01:27 - Install Apache (HTTP Server)
0:01:38 - Install & Configure PHP (Coding Interface)
0:02:24 - Install & Configure MySQL (For Databases)
0:03:18 - Install & Configure PHPMyAdmin (Database Management)
0:04:58 - How to Access Web Server/Web Site on Raspberry Pi
--- Commands Used ---
Get Latest Packages: sudo apt-get update
Install Apache: sudo apt-get install apache2 -y
Install PHP: sudo apt install libapache2-mod-php
Change Dir to Public Html: cd /var/www
Grant ownership to pi user: sudo chown pi: html
Install MySQL: sudo apt install mariadb-server php-mysql -y
Create User Query: CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
Grant User Permissions: GRANT ALL PRIVILEGES ON *.* to 'admin'@'localhost' WITH GRANT OPTION;
Install PHPMyAdmin: sudo apt-get install phpmyadmin
Restart ApacheService: sudo /etc/init.d/apache2 restart
Reboot Raspberry Pi: sudo reboot
#RaspberryPI
Комментарии