SETUP OF PROGRAMMING ENVIRONMENT (Arduino IDE for ESP8266)
https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide
- Install Arduino ide using sudo dnf install arduino
- Once Arduino has been installed go to File then preferences and enter http://arduino.esp8266.com/stable/package_esp8266com_index.json in the Additional Boards Manager URLs section
- Go to Tools then Board and then using the board manager install the corresponding file for the ESP8266
- Now that all the necessary tools for programming the ESP8266 are installed select the HUZZAH board and leave all the other settings as default
- Connect the FTDI cable to the board and make sure RX on the cable goes to TX on the board and the TX on the cable goes to RX
INSTALL APACHE
- Install Apache
- dnf install httpd -y
- Ensure httpd service starts at boot
- systemctl enable httpd
- Start httpd service
- systemctl start httpd
SETUP OF MYSQL DATABASE
- Ensure existing packages are updated
- dnf -y update
- Install MariaDB
- dnf install mariadb mariadb-server -y
- Ensure MySQL/ Mariadb starts at boot
- systemctl enable mariadb
- Start MySQL/ Mariadb
- systemctl start mariadb
- Set root password
- mysql_secure_installation
INSTALL PHP
- Install PHP
- dnf install php -y
- Install PHP modules
- dnf install php-mysql -y
- Install phpMyAdmin
- dnf install phpmyadmin -y
- Configure phpMyAdmin
- Edit Apache Virtual Host File
- vim /etc/httpd/conf.d/phpMyAdmin.conf
- Change the following 4 instances of “127.0.0.1” to your IP address in the file
- Require ip 127.0.0.1
- Allow from 127.0.0.1
- Require ip 127.0.0.1
- Allow from 127.0.0.1
- Save and exit
- :wq
- Edit Apache Virtual Host File
- Restart Apache
- systemctl restart httpd
- Access login page by entering the following into your address bar
- localhost/phpMyAdmin
INSTALL FLASK
- Installation for Python 2
- dnf install python-flask