Page 6 of 10
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Monday 03 March 2014 15:05
by wxop
This should work fine without any speed issues. BTW If you're not really familiar with NGINX, i suggest you to install it with Apache, which is the "supported way" for installing PMD.
Whitout hundred of client at the same time, you wont notice any speed difference between Apache vs Nginx. And if memory is an issue (which I really doubt), you could simply tweak the Apache config to reduce the number of servers started.
a+
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Monday 03 March 2014 15:39
by vincent13
thanks, but what's BTW ?
and , if i want save the PMD's config , what are the main file i must save ? (excuse my poor english )
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Monday 03 March 2014 16:17
by gertjuhh
vincent13 wrote:thanks, but what's BTW ?
By The Way
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Monday 03 March 2014 18:57
by wxop
vincent13 wrote:
if i want save the PMD's config , what are the main file i must save ? (excuse my poor english )
PMD/inc/conf is the directory that contains all the config files
et ya pas de probleme pour ton anglais

Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Monday 03 March 2014 20:05
by vincent13
thank you WXOP, i came to install phpmydomo on the sd card of domoticz with apache.
But in my browser , i 've always the same message: 403 forbidden
this is th directory /var/www:
drwxr-xr-x 4 root root 4096 Mar 3 18:53 .
drwxr-xr-x 12 root root 4096 Mar 3 18:30 ..
-rw-r--r-- 1 pi pi 57 Feb 8 20:02 _boot.php
-rw-r--r-- 1 pi pi 69 Feb 8 20:02 controller.php
-rw-r--r-- 1 pi pi 377 Feb 8 20:02 .htaccess
drwxr-xr-x 14 pi pi 4096 Mar 3 18:27 inc
-rw-r--r-- 1 root root 177 Mar 3 18:31 index.html
-rw-r--r-- 1 pi pi 430 Feb 8 20:02 index.php
drwxr-xr-x 5 pi pi 4096 Feb 8 20:02 static
And now this is the .htaccess file
root@domoticzpi:/var/www# more .htaccess
#####################################################
# BEGIN Controller
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)controller\.php$ - [L]
RewriteRule ^(.*)static/ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . controller.php [L]
</IfModule>
# END Controller
#####################################################
somebody can help me ?
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Monday 03 March 2014 20:27
by vincent13
i 've testing a modification of the file defautl:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
# the above line is good but the bellow line is not good !!!!!!!!!!!!!!!!!
# Options Indexes
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
are you agree with my file ???
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Monday 03 March 2014 21:40
by wxop
I cant fully understand what you means...
remet le en francais
Si tu suis bien
scrupulesement le manuel de PMD ca devrait marcher sans probleme!
Si tu as un message d'erreur 403, etudie bien le /var/log/apache2/error.log qui va t'indiquer plus précisement le probleme que tu rencontre.
NB; si tu change quelque chose dans la config d'apache, il faut le redemarer pour que ca soit actif :
apache2ctl restart
A ce stade, c'est pas tres clair pour moi: poste plus précisément ce que tu fait (en francais) et je pourrais peut etre t'aider.
a+
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Monday 03 March 2014 23:11
by vincent13
pour supprimer mon erreur 403 , je viens de modifier le fichier default d'apache dont le contenu d'origine est ci dessous:
--------------------------------------------
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
----------------------------------------
justement après avoir regardé le fichier error.log d'apache dans lequel on peut voir des erreurs de " FollowSymLinks "ci dessous:
---------------------------------------
[Mon Mar 03 20:13:50 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u8 configured -- resuming normal operat
ions
[Mon Mar 03 20:19:50 2014] [error] [client 192.168.0.3] Options FollowSymLinks or SymLinksIfOwnerMatch is off which
implies that RewriteRule directive is forbidden: /var/www/
[Mon Mar 03 20:19:51 2014] [error] [client 192.168.0.3] Options FollowSymLinks or SymLinksIfOwnerMatch is off which
implies that RewriteRule directive is forbidden: /var/www/favicon.ico
[Mon Mar 03 20:19:53 2014] [error] [client 192.168.0.3] Options FollowSymLinks or SymLinksIfOwnerMatch is off which
implies that RewriteRule directive is forbidden: /var/www/favicon.ico
------------------------------------
j'ai changé la ligne "options" du fichier "default" par ceci:
Options Indexes FollowSymLinks MultiViews
et depuis je peux me connecter à PMD, est ce que tu trouves cela normal ,au vue des indications dans les docs d'installation ????
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Tuesday 04 March 2014 10:32
by wxop
C'est tout a fait normal qu'il faille mettre FollowSymLinks. Pour la doc, je me suis basé sur une install de base debian qui a DEJA le FollowSymLinks, mais qui par contre a le AllowOverride à None. Sinon je pense que le "MultiViews" n'est pas necessaire
Comme quoi la conf apache par defaut de la Rasbian, n'est pas identique a la conf par defaut de la Debian...
Grace a toi, Je vais mieux le preciser dans la doc.

Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Tuesday 04 March 2014 11:10
by vincent13
In english:
"options" without "multiviews" is well.
For information, my distribution is a package on SDcard image with raspbian and domoticz included.
If i want to access of my PMD from internete , there is no security (login/password or anything else), can you predict this option ?
thanks
En français:
C'est mieux en français non ??
Sinon je viens en effet de supprimer le "multiviews" et tout fonctionne nickel aussi .
Pour information mon installation provient d'une image de carte sd avec domoticz intégré
Par contre as-tu déjà intégrer une option pour sécuriser l'accès à PMD car j'ai configuré ma freebox pour avoir un accès externe et du coup n'importe qui peut faire n'importe quoi avec mon PMD (comme dirait Rémi Gaillard)
bon dev
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Tuesday 04 March 2014 12:21
by mbliek
English please.
So everyone can use this information.
Or continue by PM.
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Tuesday 04 March 2014 19:46
by wxop
mbliek wrote:English please.
So everyone can use this information.
Or continue by PM.
You're perfectly right
To resume : we've found that there is a different Apache Default config for the Pi compared to a default Debian install. So i've updated the Installation Documentation to reflect this. (this will be online in a fews days, when I'll update the PMD version)
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Tuesday 04 March 2014 20:00
by wxop
vincent13 wrote:
Par contre as-tu déjà intégrer une option pour sécuriser l'accès à PMD car j'ai configuré ma freebox pour avoir un accès externe...
Question is about : securing the PMD access, especially when the PMD site is forwarded to the Internet public IP.
If you tweak the Apache configuration for PMD, it is easy to add an Authentication scheme for the PMD's Virtual Host, at the Apache conf level:
http://httpd.apache.org/docs/2.2/howto/auth.html
I might add this at the .htaccess level of PMD, but only if I find a transparent way to add this to the default install, without adding complexness for a "newbie" user. (PullRequests are welcome!)
Best Regards
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Tuesday 04 March 2014 20:36
by vincent13
thanks

Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Friday 21 March 2014 10:07
by BigDog
i have it running but the Doorsensors are displaying as unknown device with a ? in front of it
is there anyting i or the dev. can do?
Greetz Bob
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Friday 21 March 2014 12:18
by BigDog
the icons @ the top and foot menu arent showing

dont know why becose all the other images are ok
greetz Bob
--------------EDITED-----------------
have found a BUG

i have changed the directory that it isnt in the root ---> domo
but the images stil use the root to find the images(fonts)
have copyed the fonts to to right place but it stil need to be changed by the dev
Greetz Bob
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Friday 21 March 2014 13:45
by BigDog
hi
i was wondering if the domo website can only be accesed in the local area and not the internet
becose there isnt a pass on it and if they know the adres they could control the switches
Greetz Bob
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Sunday 30 March 2014 20:43
by wxop
BigDog wrote:hi
i was wondering if the domo website can only be accesed in the local area and not the internet
becose there isnt a pass on it and if they know the adres they could control the switches
Greetz Bob
As soon as your PMD install is not on your Internet router, you can't access it from the internet, except if you manually setup a "forward" on your router.
In this case is it not password protecetd, but you can either redirected a hard to guess port ie (internet_ip:65327-> PMD_ip:80), or (way bteter) modify the apache virtual host configuration to setup a secure authentication:
http://httpd.apache.org/docs/2.2/howto/auth.html
HTH
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Thursday 03 April 2014 13:43
by shardik
I'm trying to get the PMD interface to work on my linux machine, but it's not working.
I used to get a forbidden message, i fixed that but now i only get a white empty screen....
my .htaccess file:
Code: Select all
#####################################################
# BEGIN Controller
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)controller\.php$ - [L]
RewriteRule ^(.*)static/ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . controller.php [L]
</IfModule>
# END Controller
#####################################################
the needed part from /etc/apache2/apache2.conf
Code: Select all
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Quick edit: Not running on a Pi but on ubuntu server.
Quick edit2: mod_rewrite is enabled ->
Code: Select all
Loaded Modules:
core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status
Re: phpMyDomo: a convenient Domoticz Web Interface
Posted: Thursday 03 April 2014 16:39
by wxop
please check the apache error_log, should be in /var/log/apache2 or something like that.
If you can figure what's happening, post the corresponding log.
HTH