add permissions to edit this folder:
sudo chmod -R 777 /var/www/html
alternetives multiplatform
https://github.com/cytopia/devilbox/
https://laravel.com/docs/8.x/homestead
- Block all access "xmlrpc.php" and temporary block access to "wp-login.php" (by IP)
BEGIN Disable XML-RPC.PHP
<Files "xmlrpc.php">
Order Deny,Allow
Deny from all
</Files>
END Disable XML-RPC.PHP
BEGIN Limit Access to WP-LOGIN.PHP
<Files "wp-login.php">
Order Deny,Allow
Deny from all
Allow from 1.2.3.4
</Files>
END Limit Access to WP-LOGIN.PHP
-
Change default "admin" username if used
-
Set plugin to control login attempts
https://wordpress.org/plugins/loginizer/
(4. Password protect access to "wp-login.php" ... this doesn't work on my server, and it's apparently not the best solution)
BEGIN Password Protect WP-LOGIN.PHP
<FilesMatch "wp-login.php">
AuthUserFile /home/user/.htpasswd
AuthName "Authorized Only"
AuthType Basic
Require valid-user
</FilesMatch>
END Password Protect WP-LOGIN.PHP
BEGIN Disable XML-RPC.PHP
<Files "xmlrpc.php">
Order Deny,Allow
Deny from all
</Files>
END Disable XML-RPC.PHP
enable php shortcodes:
sudo nano /etc/php/5.6/apache2/php.ini
short_open_tag = On
permissons (for local setup)
chown -R www-data.www-data /var/www
chmod -R 777 /var/www
restart apache-a (two ways)
service apache2 restart
/etc/init.d/apache2 restart
location
/etc/php/5.6/apache2/php.ini
npr.
short_open_tag = On
esp8266 as WiFi client
Pi as access point
UDP protocol on esp8266 to talk with Pi
python code to talk with esp8266 using UDP
python UDP implementation On Pi
https://wiki.python.org/moin/UdpCommunication
guide for setup Access Point on Pi
https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/overview
in esp8266 arduino IDE go to example select wifi--> wifiUDPSendReceiveString Example and change #include <WiFi.h> to #include <ESP8266WiFi.h> and Loadit to your nodeMcu..