root@raspberrypi:/var/www/html/secure# php _fetchdomoticz.php
PHP Notice: Undefined variable: domoticzurl in /var/www/html/secure/_fetchdomoticz.php on line 14
PHP Warning: file_get_contents(/json.htm?type=devices&used=true): failed to open stream: No such file or directory in /var/www/html/secure/_fetchdomoticz.php on line 14
php is running correct with apache in my case
PHP Version 7.0.33-0+deb9u3
This is what I did not:
Code: Select all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache
sudo apt-get install mysql-server
sudo apt-get install phpmyadmin
sudo mysql_secure_installation
mysql -u root -p
GRANT ALL PRIVILEGES ON *.* TO 'domotica'@'localhost' IDENTIFIED BY 'domotica';
CREATE DATABASE domotica;
Code: Select all
mysql -u domotica -p domotica < 'Create-Update SQL Database.txt'
mysql -u root -p
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| domotica |
| information_schema |
| mysql |
| performance_schema |
+--------------------+
4 rows in set (0.00 sec)
sudo ln -s /usr/share/phpmyadmin /var/www/html
Code: Select all
pass2php.php
functions.php
_fetchdomoticz.php
config.php
Code: Select all
/var/html/secure
Code: Select all
/domoitcz/script/lua
Code: Select all
/domoitcz/script/lua