Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-03 Diskussionsfäden Daniel Lauckner
Hallo,


am Dienstag, 3. Oktober 2017 um 10:12 hat Udo1 geschrieben:
>> sudo apt-get purge phpmyadmin
> Führte dazu das Apache überhaupt nicht mehr lief.

Nachvollziehbar: Die Konfiguration von Apache verweist ja noch auf
phpmyadmin. Sollte sich nach der erneuten Installation von phpmyadmin
wieder einrenken.

Falls nicht: FUBAR
Also Image nochmal ganz von vorne (Sorry :/ ).


mfg Daniel












Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-03 Diskussionsfäden Udo1

Hallo Daniel,

Am 03.10.2017 um 05:36 schrieb Daniel Lauckner:

Wenn das auch noch keine Besserung bringt würde ich DB und user
manuell löschen:

sudo mysql -u root
drop database phpmyadmin;
drop user 'phpmyadmin'@'localhost';
quit


Das funktionierte gar nicht, phpmyadmin wäre nicht vorhanden, weder 
Datenbank noch user.



sudo apt-get purge phpmyadmin

Führte dazu das Apache überhaupt nicht mehr lief.

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Daniel Lauckner
Hallo,


am Montag, 2. Oktober 2017 um 22:35 hat Udo1 geschrieben:
> Mit Glück hab ich es nicht so: siehe Bild

Ok, dann halt die Konfiguration nochmal durchgehen:

sudo dpkg-reconfigure -plow phpmyadmin

Ich vermute das du die Datenbank für phpmyadmin nochmal neu
installieren lassen musst. Bei beibehaltung der DB hatte er mich hier
nicht nach dem Passwort gefragt.

Wenn das auch noch keine Besserung bringt würde ich DB und user
manuell löschen:

sudo mysql -u root
drop database phpmyadmin;
drop user 'phpmyadmin'@'localhost';
quit

und es nochmal versuchen.

Danach fällt mir nur noch De- und Neuinstallation als Lösung ein:

sudo apt-get purge phpmyadmin


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1



Am 02.10.2017 um 21:43 schrieb Daniel Lauckner:

Mit etwas Glück passt dann alles.


Mit Glück hab ich es nicht so: siehe Bild

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Daniel Lauckner
Hallo,


am Montag, 2. Oktober 2017 um 19:10 hat Udo1 geschrieben:
> Am 02.10.2017 um 16:16 schrieb Daniel Lauckner:
>> Hattest du bei der Installation von phpmyadmin ein Passwort vergeben?

> Nein, hatte ich nicht.

Du kannst mal versuchen dem User nachträglich ein Passwort zu verpassen:

sudo mysql -u root -p
(Passwort: raspberry)
use mysql;
UPDATE user SET password=PASSWORD('phpmyadmin') where User='phpmyadmin';
flush privileges;
quit

Das neue Passwort (phpmyadmin) dann noch in
/etc/phpmyadmin/config-db.php

einpflegen. Mit etwas Glück passt dann alles.


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1

Hallo Daniel,

Am 02.10.2017 um 16:16 schrieb Daniel Lauckner:

Hattest du bei der Installation von phpmyadmin ein Passwort vergeben?


Nein, hatte ich nicht.

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Daniel Lauckner
Hallo,


am Montag, 2. Oktober 2017 um 16:08 hat Udo1 geschrieben:
> Funktioniert soweit, nur bei phpmyadmin kommen noch Fehlermeldungen:
> siehe Bild

Hm, hab ich bei mir nicht.
Hattest du bei der Installation von phpmyadmin ein Passwort vergeben?


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Daniel Lauckner
Hallo,


am Montag, 2. Oktober 2017 um 14:30 hat Udo1 geschrieben:

> Am 02.10.2017 um 13:40 schrieb Daniel Lauckner:
>> Ja, das ist genau das was ich gestern schon befürchtet hatte.

> :) schön, und was machen wir jetzt?

Ich hab Franks Vorschlag mit dem zusätzlichen User umgesetzt,
das neue Script kannst du dir wieder von meinem Repo bei github
holen.


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1


Am 02.10.2017 um 13:40 schrieb Daniel Lauckner:

Ja, das ist genau das was ich gestern schon befürchtet hatte.


:) schön, und was machen wir jetzt?

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Daniel Lauckner
Hallo,


am Montag, 2. Oktober 2017 um 12:13 hat Daniel Lauckner geschrieben:
> am Montag, 2. Oktober 2017 um 11:19 hat Andreas Goetz geschrieben:
>> 2017-10-02 11:00 GMT+02:00 Frank Richter :
>>>
>>> wie wär's mit einem dedizierten admin-user für vz, um die Nutzung von root 
>>> zu umgehen?

> Hab ich am Anfang auch überlegt aber aus irgend einem Grund erstmal
> verworfen.

Ok, ich habs fast.
https://raw.githubusercontent.com/J-A-U/volkszaehler.org/avoid_sudo/misc/tools/install.sh

@Andi an einer Stelle komme ich ohne sudo noch immer nicht weiter.
Offenbar weil ~/volkszaehler.org/lib/Model/Proxy/ immernoch root
zugewiesen wird. Wüsste gerne ob sich da von deiner Seite aus was
drehen lässt?

Die Zeile 277:
php misc/tools/doctrine orm:generate-proxies

Fabriziert:
  [InvalidArgumentException]
  Proxies destination directory '/home/pi/volkszaehler.org/lib/Model/Pr
  oxy' does not have write permissions.

orm:generate-proxies [--filter FILTER] [--] []


> Macht mir jetzt keine Kopfschmerzen (mehr). 1-2 sudo im Script fänd
> ich ok.

Aktuell sind es 3, ich hoffe der 4. lässt sich auch noch vermeiden.

>> Der Installer würde ja weiterhin root brauchen um die User
>> anzulegen.
> Ich bräuchte für den SQL-Query aber wohl etwas Hilfe.
> Und geh ich recht in der Annahme das man erst die Datenbank anlegen
> muss bevor man den user vz-admin anlegt?

Hat sich beides erledigt.



mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1


Am 02.10.2017 um 12:28 schrieb Daniel Lauckner:

Sie sind nicht doppelt vorhanden. Siehe:
$ ls -l/var/www/


Ja, ok. Habe ich verstanden.

Nächstes Problem:

Nach Installation von phpmyadmin nach wiki verweigert phpmyadmin den 
Zugriff mit User root und PW: raspberry


siehe Bild

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Daniel Lauckner
Hallo,


am Montag, 2. Oktober 2017 um 12:18 hat Udo1 geschrieben:
> symbolischer Link gut und schön, aber warum sind dann alle Verzeichnisse
> und Dateien von volkszaehler.org jetzt auf der SD-Karte doppelt 
> vorhanden? Das ist doch Platzverschwendung.

Sie sind nicht doppelt vorhanden. Siehe:
$ ls -l /var/www/

Der Vorteil eines Symlink liegt darin das man den working directory
beibehält (also den Weg den man übern Link gekommen ist), die Dateien
aber wo anders im Dateisystem liegen.

Für uns halt insofern praktisch weil /var/www/volkszaehler/
abwärtskompatibel ist und wir nicht die ganze Doku übern Haufen werfen
müssen.


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1

Hallo Daniel,

Am 02.10.2017 um 11:56 schrieb Daniel Lauckner:

Das ist der Zweck eines symbolischen Links.


symbolischer Link gut und schön, aber warum sind dann alle Verzeichnisse 
und Dateien von volkszaehler.org jetzt auf der SD-Karte doppelt 
vorhanden? Das ist doch Platzverschwendung.


Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Frank Richter
Moin Andreas,

Am 2. Oktober 2017 um 11:19 schrieb Andreas Goetz :

> Moin Frank,
>
> 2017-10-02 11:00 GMT+02:00 Frank Richter :
>
>> Moin allerseits,
>>
>> wie wär's mit einem dedizierten admin-user für vz, um die Nutzung von
>> root zu umgehen?
>>
>
> Würde das denn das Problem mit phpmyadmin lösen (ja, da müsste man den
> User dann halt auch nehmen)?
>

Würde ich zumindest annehmen, testen kann ich das mangels Raspbian stretch
gerade nicht.

Der Installer würde ja weiterhin root brauchen um die User anzulegen.
> Ansonsten ist VZ egal was in der Config steht. Im Prinzip würde dafür nur
> eine Abfrage für root (um User anzulegen) und den admin User (die gibts
> schon) fehlen.
>
> Ich habe prinzipiell auch kein Problem damit dem VZ User Delete zu geben-
> im JWT Branch ist ja eine Firewall + Authentifizierung eingebaut per
> default sicherstellt dass nicht authentifizierte User nur GET Requests
> ausführen dürfen (und =xyz ignoriert wird). Wer mehr will (POST,
> PATCH, DELETE) muss dafür angemeldet sein und sich per JSON Web Token
> ausweisen _ODER_ aus dem lokalen Netz kommen.
>

Ich würde den admin-user in der vz.conf jetzt nicht ohne Not abschaffen.
Wenn es mit root nicht mehr geht, brauchen wir eben einen zusätzlichen
User. In Sachen Zugriffskontrolle wärs ja eigentlich auch schöner, wenn man
mit dem Admin-User zwar erweiterte Rechte für die vz-DB hätte, aber
trotzdem keinen Unfug in anderen DBs machen könnte...


> Hats mangels Interesse leider nicht in den Master geschafft
>

Ja, schade. Ich würde darauf nicht mehr verzichten wollen.

Grüße
Frank


> vg
> Andreas
>
>
>> Grüße
>> Frank
>>
>> Am 2. Oktober 2017 um 06:44 schrieb Daniel Lauckner :
>>
>>> Hallo,
>>>
>>>
>>> am Sonntag, 1. Oktober 2017 um 22:22 hat Daniel Lauckner geschrieben:
>>> > Ich hab die 3 sudo noch schnell eingefügt, sind in meinem Repo auch
>>> > schon online.
>>>
>>> Hat natürlich nicht gereicht: doctrine braucht auch root-access zur DB.
>>> Das gefällt mir so jetzt aber nicht wirklich, sind zu viele sudo
>>> im Script. :/
>>>
>>> > Du müsstest halt dem User vz Schreibrechte geben,
>>>
>>> Löschrechte meinte ich...
>>>
>>>
>>> mfg Daniel
>>>
>>>
>>
>


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Daniel Lauckner
Hallo,


am Montag, 2. Oktober 2017 um 11:37 hat Udo1 geschrieben:
> Komischerweise gibt es unter
> /var/www/ auch alle volkzaehler.org-Verzeichnisse.

Das ist der Zweck eines symbolischen Links. ;)


mfg Daniel





Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1

Hallo Andreas,

Am 02.10.2017 um 11:35 schrieb Andreas Goetz:

Bei mir sieht das so aus:


Deine default.conf sieht aber mehr nach Wheezy aus, bei Jessie und 
Stretch sieht die Datei so aus:


pi@volkszaehler:~ $ cat /etc/apache2/sites-enabled/000-default.conf

# The ServerName directive sets the request scheme, hostname 
and port that

# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: 
header to
# match this virtual host. For the default virtual host (this 
file) this
# value is not decisive as it is used as a last resort host 
regardless.

# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/volkszaehler.org/htdocs/

# Available loglevels: trace8, ..., trace1, debug, info, 
notice, warn,

# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For 
example the

# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf


# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Andreas Goetz
Moin,

> On 2. Oct 2017, at 11:31, Frank Richter  wrote:
> 
> Moin Udo,
> 
> möglicherweise musst du als DocumentRoot weiterhin /var/www/... angeben und 
> dort per Symlink nach /home/pi weiterleiten. Daniel hatte das glaub ich schon 
> vorbereitet.

Bei mir sieht das so aus:


ServerAdmin cpui...@gmx.de
ServerName domain

DocumentRoot /var/www/volkszaehler.org/htdocs

   Options FollowSymLinks
   AllowOverride None



   Options Indexes FollowSymLinks MultiViews
   AllowOverride FileInfo Limit Options=All,MultiViews- Indexes Authconfig
   Order allow,deny
   allow from all



  ProxyPass ws://localhost:8082


ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

SSLCertificateFile /etc/letsencrypt/live/domain/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf


Es ist also nicht notwendig die DocumentRoot unter /var/www zu lassen- das 
macht allerdings massiv Sinn falls auch PHPMyAdmin mit in das Image rein soll, 
sonst gibts dafür ja keine Heimat mehr.

Viele Grüße, Andreas

> 
> Grüße
> Frank
> 
> Am 02.10.2017 11:17 schrieb "Udo1" >:
> Am 02.10.2017  um 10:59 schrieb Udo1:
> Hat aber funktioniert:
> 
> Nicht ganz. Nach dem Ausführen der install.sh habe ich die 
> apache2/sites-enabled/000-default.conf editiert.
> Hinter DocumentRoot habe ich /home/pi/volkszaehler.org/htdocs/ 
>  eingefügt.
> Nach restart von apache2 bekomme ich im Webbrowser:
> 
> Forbidden
> 
> You don't have permission to access / on this server.
> Apache/2.4.25 (Raspbian) Server at 192.168.178.116 Port 80
> 
> 
> Was habe ich falsch gemacht?
> 
> Gruß
> Udo



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Frank Richter
Moin Udo,

möglicherweise musst du als DocumentRoot weiterhin /var/www/... angeben und
dort per Symlink nach /home/pi weiterleiten. Daniel hatte das glaub ich
schon vorbereitet.

Grüße
Frank

Am 02.10.2017 11:17 schrieb "Udo1" :

> Am 02.10.2017 um 10:59 schrieb Udo1:
>
>> Hat aber funktioniert:
>>
>
> Nicht ganz. Nach dem Ausführen der install.sh habe ich die
> apache2/sites-enabled/000-default.conf editiert.
> Hinter DocumentRoot habe ich /home/pi/volkszaehler.org/htdocs/ eingefügt.
> Nach restart von apache2 bekomme ich im Webbrowser:
>
> Forbidden
>
> You don't have permission to access / on this server.
> Apache/2.4.25 (Raspbian) Server at 192.168.178.116 Port 80
>
>
> Was habe ich falsch gemacht?
>
> Gruß
> Udo
>


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1

Am 02.10.2017 um 11:23 schrieb Andreas Goetz:

Was sagt /var/log/apache2/access.log (oder so in der Gegend)?


pi@volkszaehler:~ $ cat /var/log/apache2/access.log
192.168.178.91 - - [02/Oct/2017:11:08:09 +0200] "GET / HTTP/1.1" 403 511 
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 
Firefox/55.0"
192.168.178.91 - - [02/Oct/2017:11:08:09 +0200] "GET /favicon.ico 
HTTP/1.1" 403 521 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) 
Gecko/20100101 Firefox/55.0"
192.168.178.91 - - [02/Oct/2017:11:13:09 +0200] "GET / HTTP/1.1" 403 511 
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 
Firefox/55.0"
192.168.178.91 - - [02/Oct/2017:11:13:16 +0200] "GET / HTTP/1.1" 403 511 
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 
Firefox/55.0"
192.168.178.91 - - [02/Oct/2017:11:13:17 +0200] "GET / HTTP/1.1" 403 510 
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 
Firefox/55.0"
192.168.178.91 - - [02/Oct/2017:11:21:12 +0200] "GET / HTTP/1.1" 403 511 
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 
Firefox/55.0"
192.168.178.91 - - [02/Oct/2017:11:22:38 +0200] "GET / HTTP/1.1" 403 511 
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 
Firefox/55.0"
192.168.178.91 - - [02/Oct/2017:11:22:47 +0200] "GET / HTTP/1.1" 403 511 
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 
Firefox/55.0"



Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Andreas Goetz
Moin Udo,

2017-10-02 11:17 GMT+02:00 Udo1 :

> Am 02.10.2017 um 10:59 schrieb Udo1:
>
>> Hat aber funktioniert:
>>
>
> Nicht ganz. Nach dem Ausführen der install.sh habe ich die
> apache2/sites-enabled/000-default.conf editiert.
> Hinter DocumentRoot habe ich /home/pi/volkszaehler.org/htdocs/ eingefügt.
> Nach restart von apache2 bekomme ich im Webbrowser:
>
> Forbidden
>
> You don't have permission to access / on this server.
> Apache/2.4.25 (Raspbian) Server at 192.168.178.116 Port 80
>

Was sagt /var/log/apache2/access.log (oder so in der Gegend)?


> Was habe ich falsch gemacht?
>
> Gruß
> Udo
>

vg Andreas


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Andreas Goetz
Moin Frank,

2017-10-02 11:00 GMT+02:00 Frank Richter :

> Moin allerseits,
>
> wie wär's mit einem dedizierten admin-user für vz, um die Nutzung von root
> zu umgehen?
>

Würde das denn das Problem mit phpmyadmin lösen (ja, da müsste man den User
dann halt auch nehmen)?

Der Installer würde ja weiterhin root brauchen um die User anzulegen.
Ansonsten ist VZ egal was in der Config steht. Im Prinzip würde dafür nur
eine Abfrage für root (um User anzulegen) und den admin User (die gibts
schon) fehlen.

Ich habe prinzipiell auch kein Problem damit dem VZ User Delete zu geben-
im JWT Branch ist ja eine Firewall + Authentifizierung eingebaut per
default sicherstellt dass nicht authentifizierte User nur GET Requests
ausführen dürfen (und =xyz ignoriert wird). Wer mehr will (POST,
PATCH, DELETE) muss dafür angemeldet sein und sich per JSON Web Token
ausweisen _ODER_ aus dem lokalen Netz kommen.

Hats mangels Interesse leider nicht in den Master geschafft

vg
Andreas


> Grüße
> Frank
>
> Am 2. Oktober 2017 um 06:44 schrieb Daniel Lauckner :
>
>> Hallo,
>>
>>
>> am Sonntag, 1. Oktober 2017 um 22:22 hat Daniel Lauckner geschrieben:
>> > Ich hab die 3 sudo noch schnell eingefügt, sind in meinem Repo auch
>> > schon online.
>>
>> Hat natürlich nicht gereicht: doctrine braucht auch root-access zur DB.
>> Das gefällt mir so jetzt aber nicht wirklich, sind zu viele sudo
>> im Script. :/
>>
>> > Du müsstest halt dem User vz Schreibrechte geben,
>>
>> Löschrechte meinte ich...
>>
>>
>> mfg Daniel
>>
>>
>


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1

Am 02.10.2017 um 10:59 schrieb Udo1:

Hat aber funktioniert:


Nicht ganz. Nach dem Ausführen der install.sh habe ich die 
apache2/sites-enabled/000-default.conf editiert.

Hinter DocumentRoot habe ich /home/pi/volkszaehler.org/htdocs/ eingefügt.
Nach restart von apache2 bekomme ich im Webbrowser:

Forbidden

You don't have permission to access / on this server.
Apache/2.4.25 (Raspbian) Server at 192.168.178.116 Port 80


Was habe ich falsch gemacht?

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Frank Richter
Moin allerseits,

wie wär's mit einem dedizierten admin-user für vz, um die Nutzung von root
zu umgehen?

Grüße
Frank

Am 2. Oktober 2017 um 06:44 schrieb Daniel Lauckner :

> Hallo,
>
>
> am Sonntag, 1. Oktober 2017 um 22:22 hat Daniel Lauckner geschrieben:
> > Ich hab die 3 sudo noch schnell eingefügt, sind in meinem Repo auch
> > schon online.
>
> Hat natürlich nicht gereicht: doctrine braucht auch root-access zur DB.
> Das gefällt mir so jetzt aber nicht wirklich, sind zu viele sudo
> im Script. :/
>
> > Du müsstest halt dem User vz Schreibrechte geben,
>
> Löschrechte meinte ich...
>
>
> mfg Daniel
>
>


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-02 Diskussionsfäden Udo1

Am 02.10.2017 um 06:44 schrieb Daniel Lauckner:

Hat natürlich nicht gereicht: doctrine braucht auch root-access zur DB.
Das gefällt mir so jetzt aber nicht wirklich, sind zu viele sudo
im Script. :/


Hat aber funktioniert:

pi@volkszaehler:~ $ bash install.sh
volkszaehler.org installation script

checking prerequisites: php: /usr/bin/php
 mysql: /usr/bin/mysql
 awk: /usr/bin/awk
 sed: /bin/sed
 grep: /bin/grep
 wget: /usr/bin/wget
 mktemp: /bin/mktemp
 mkdir: /bin/mkdir
 git: /usr/bin/git

checking php version: 7.0.19-1 >= 7.0, ok

volkszaehler setup...
volkszaehler path? [/home/pi/volkszaehler.org]
git clone volkszaehler.org into /home/pi/volkszaehler.org
Cloning into '/home/pi/volkszaehler.org'...
remote: Counting objects: 11093, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 11093 (delta 8), reused 13 (delta 4), pack-reused 11073
Receiving objects: 100% (11093/11093), 7.19 MiB | 3.17 MiB/s, done.
Resolving deltas: 100% (6088/6088), done.
link from webserver to volkszaehler directory? [/var/www/volkszaehler.org]
linking /var/www/volkszaehler.org to /home/pi/volkszaehler.org

checking composer...
~/volkszaehler.org ~
composer not found, downloading...
All settings correct for using Composer
Downloading...

Composer (version 1.5.2) successfully installed to: 
/home/pi/volkszaehler.org/composer.phar

Use it: php composer.phar

~
composer: /home/pi/volkszaehler.org/composer.phar

installing dependencies...
~/volkszaehler.org ~
Loading composer repositories with package information
Updating dependencies
Package operations: 40 installs, 0 updates, 0 removals
  - Installing psr/log (1.0.2): Downloading (100%)
  - Installing symfony/debug (v3.3.9): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.5.0): Downloading (100%)
  - Installing symfony/console (v3.3.9): Downloading (100%)
  - Installing doctrine/lexer (v1.0.1): Downloading (100%)
  - Installing doctrine/inflector (v1.2.0): Downloading (100%)
  - Installing doctrine/collections (v1.4.0): Downloading (100%)
  - Installing doctrine/cache (v1.6.2): Downloading (100%)
  - Installing doctrine/annotations (v1.4.0): Downloading (100%)
  - Installing doctrine/common (v2.7.3): Downloading (100%)
  - Installing doctrine/dbal (v2.5.13): Downloading (100%)
  - Installing andig/dbcopy (1.1): Downloading (100%)
  - Installing symfony/routing (v3.3.9): Downloading (100%)
  - Installing symfony/http-foundation (v3.3.9): Downloading (100%)
  - Installing react/promise (v2.5.1): Downloading (100%)
  - Installing evenement/evenement (v2.0.0): Downloading (100%)
  - Installing react/stream (v0.4.6): Downloading (100%)
  - Installing react/event-loop (v0.4.3): Downloading (100%)
  - Installing react/socket (v0.5.1): Downloading (100%)
  - Installing psr/http-message (1.0.1): Downloading (100%)
  - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
  - Installing ratchet/rfc6455 (v0.2.3): Downloading (100%)
  - Installing cboden/ratchet (v0.4): Downloading (100%)
  - Installing react/promise-stream (v0.1.1): Downloading (100%)
  - Installing ringcentral/psr7 (1.2.1): Downloading (100%)
  - Installing react/http (dev-master cd15204): Cloning cd15204bd1 from 
cache

  - Installing paragonie/random_compat (v2.0.11): Downloading (100%)
  - Installing monolog/monolog (1.23.0): Downloading (100%)
  - Installing react/promise-timer (v1.2.0): Downloading (100%)
  - Installing react/cache (v0.4.1): Downloading (100%)
  - Installing react/dns (v0.4.11): Downloading (100%)
  - Installing react/socket-client (v0.5.3): Downloading (100%)
  - Installing symfony/process (v3.3.9): Downloading (100%)
  - Installing mkraemer/react-pcntl (v2.0.0): Downloading (100%)
  - Installing php-pm/php-pm (dev-master 5a883f4): Cloning 5a883f48f0 
from cache

  - Installing symfony/event-dispatcher (v3.3.9): Downloading (100%)
  - Installing symfony/http-kernel (v3.3.9): Downloading (100%)
  - Installing php-pm/httpkernel-adapter (dev-master b373b03): Cloning 
b373b0384f from cache

  - Installing doctrine/instantiator (1.0.5): Downloading (100%)
  - Installing doctrine/orm (v2.5.11): Downloading (100%)
Writing lock file
Generating autoload files

install server-side graph generation (jpgraph, not required for 
frontend)? [n]

~

volkszaehler.org is not configured yet. creating new config from sample 
config file.

mysql admin user? [root]
mysql admin password? [] raspberry
mysql database? [volkszaehler]
mysql user? [vz]
mysql password? [demo]

create volkszaehler.org database? [y]
creating database volkszaehler...
~/volkszaehler.org ~
ATTENTION: This operation should not be executed in a production 
environment.


Creating database schema...
Database schema created successfully!
Processing entity "Volkszaehler\Model\Aggregate"
Processing entity "Volkszaehler\Model\Entity"
Processing entity "Volkszaehler\Model\Channel"
Processing entity "Volkszaehler\Model\Data"
Processing entity "Volkszaehler\Model\Property"
Processing entity "Volkszaehler\Model\Aggregator"


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 22:22 hat Daniel Lauckner geschrieben:
> Ich hab die 3 sudo noch schnell eingefügt, sind in meinem Repo auch
> schon online.

Hat natürlich nicht gereicht: doctrine braucht auch root-access zur DB.
Das gefällt mir so jetzt aber nicht wirklich, sind zu viele sudo
im Script. :/

> Du müsstest halt dem User vz Schreibrechte geben,

Löschrechte meinte ich...


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 22:12 hat Udo1 geschrieben:

> Am 01.10.2017 um 22:07 schrieb Daniel Lauckner:
>> Blöd ist halt das ich gleich auf Arbeit muss...
>> 
> Kein Problem. Hat ja Zeit.

Besser gesagt: hätte sein sollen *autsch*

Ich hab die 3 sudo noch schnell eingefügt, sind in meinem Repo auch
schon online.

Du müsstest halt dem User vz Schreibrechte geben, im Moment ist der
Standard laut Script noch [n].
Sollten wir das ändern? Kommt mir gefährlich vor...


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1


Am 01.10.2017 um 22:07 schrieb Daniel Lauckner:

Blöd ist halt das ich gleich auf Arbeit muss...


Kein Problem. Hat ja Zeit.

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 21:58 hat Udo1 geschrieben:

> Am 01.10.2017 um 21:43 schrieb Daniel Lauckner:
>> Man kommt als root auf die MariaDB nur wenn man an der Konsole als
>> root angemeldet ist.

> Könnte da eine Lösung bei sein:
> https://stackoverflow.com/questions/39281594/error-1698-28000-access-denied-for-user-rootlocalhost

Option 1 ist das selbe wie unter
https://kofler.info/root-login-problem-mit-mariadb/
beschrieben.


Blöd ist halt das ich gleich auf Arbeit muss...


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 21:51 hat Andreas Götz geschrieben:
> Mit sudo gehts Udo ;)

Wobei das ja nicht die Lösung sein kann. Dann wird VZ nämlich nach
/root/volkszaehler.org mit den bekannten Problemen installiert
(update nur mit sudo).


> Am 01.10.2017 um 21:48 schrieb Udo1 :
>> ok, heißt dann für das Script?

Wollte gerade schon ein zusätzliche sudo mit einfügen, dann kam mir
aber in Sinn:

Wenn die das konsequent durchgezogen haben hat man auch von phpmyadmin
keinen root-Zugriff auf die DB.
Was zum Problem wird wenn der User vz keine Schreibrechte bekommt,
dann müsste man sich über die Konsole anmelden um Datenbankeinträge zu
löschen. *urgs*


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Götz
Mit sudo gehts Udo ;)

Reimt sich :)

> Am 01.10.2017 um 21:48 schrieb Udo1 :
> 
> 
>> Am 01.10.2017 um 21:43 schrieb Daniel Lauckner:
>> Man kommt als root auf die MariaDB nur wenn man an der Konsole als
>> root angemeldet ist.
> 
> ok, heißt dann für das Script?
> 
> Gruß
> Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1


Am 01.10.2017 um 21:43 schrieb Daniel Lauckner:

Man kommt als root auf die MariaDB nur wenn man an der Konsole als
root angemeldet ist.


ok, heißt dann für das Script?

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 21:37 hat Daniel Lauckner geschrieben:
> ich bin irritiert.

> Bei mir auf Raspian Light Stretch komm ich als root nimmer auf den
> SQL-Server, obwohl die volkszaehler Datenbank vorhanden ist und ich
> als user vz auch Zugriff habe.

Oh ist fies!
https://kofler.info/root-login-problem-mit-mariadb/

Man kommt als root auf die MariaDB nur wenn man an der Konsole als
root angemeldet ist.


pi@raspberrypi:~ $ mysql -u root -p volkszaehler
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
pi@raspberrypi:~ $ sudo mysql -u root -p volkszaehler
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
[...]

Passwort wie gehabt: raspberry


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 21:34 hat Udo1 geschrieben:

> Am 01.10.2017 um 21:19 schrieb Daniel Lauckner:
>> Ich weiß das noch genau weil ich dem Script beim ersten Mal vergessen
>> hatte das Passwort zu geben und für mysql mehrfach eingeben musste.

> Welches Passwort hast du da vergeben?

Das war "rasperry".
Nicht vergeben, verwendet.


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


ich bin irritiert.

Bei mir auf Raspian Light Stretch komm ich als root nimmer auf den
SQL-Server, obwohl die volkszaehler Datenbank vorhanden ist und ich
als user vz auch Zugriff habe.

Dementsprechend kann das Script natürlich auch nix mehr ausrichten.


mfg Daniel


am Sonntag, 1. Oktober 2017 um 21:19 hat Daniel Lauckner geschrieben:
> Hallo,


> am Sonntag, 1. Oktober 2017 um 20:41 hat Udo1 geschrieben:
>> Am 01.10.2017 um 20:23 schrieb Andreas Goetz:
>>> Kann es sein dass sich das Root PW von mysql/mariadb geändert hat?
>>> 

>> Also rasbian und rasbian-light kommt ohne root-Passwort.

> Sollte eigentlich das bekannte Standardpasswort sein.

> Ich weiß das noch genau weil ich dem Script beim ersten Mal vergessen
> hatte das Passwort zu geben und für mysql mehrfach eingeben musste.


> mfg Daniel






mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1


Am 01.10.2017 um 21:19 schrieb Daniel Lauckner:

Ich weiß das noch genau weil ich dem Script beim ersten Mal vergessen
hatte das Passwort zu geben und für mysql mehrfach eingeben musste.


Welches Passwort hast du da vergeben?

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 20:41 hat Udo1 geschrieben:
> Am 01.10.2017 um 20:23 schrieb Andreas Goetz:
>> Kann es sein dass sich das Root PW von mysql/mariadb geändert hat?
>> 

> Also rasbian und rasbian-light kommt ohne root-Passwort.

Sollte eigentlich das bekannte Standardpasswort sein.

Ich weiß das noch genau weil ich dem Script beim ersten Mal vergessen
hatte das Passwort zu geben und für mysql mehrfach eingeben musste.


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Am 01.10.2017 um 20:23 schrieb Andreas Goetz:

Kann es sein dass sich das Root PW von mysql/mariadb geändert hat?



Also rasbian und rasbian-light kommt ohne root-Passwort.


Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz
Mhhm.

> On 1. Oct 2017, at 20:19, Udo1  wrote:
> 
> Am 01.10.2017 um 19:30 schrieb Andreas Goetz:
>> Mag sein, aber die Meldung ist ja eindeutig:
>> PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
>> Wie sieht die Datei denn aus?
> 
> Ok, die Datei war defekt, warum auch immer...
> 
> Die Abhängigkeiten gepurged und neu installiert.
> Das Install-Skript läuft soweit durch bis hier hin:
> 
> create volkszaehler.org database? [y]
> creating database volkszaehler...
> ERROR 1698 (28000): Access denied for user 'root'@'localhost'
> pi@volkszaehler:~ $

Das war ja unten auch schon so:

volkszaehler.org  is not configured yet. creating new 
config from sample config file.
mysql admin user? [root]
mysql admin password? [] raspberry
mysql database? [volkszaehler]
mysql user? [vz]
mysql password? [demo]

create volkszaehler.org  database? [y]
creating database volkszaehler...
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
pi@volkszaehler:~ $

> 
> 
> Gruß
> Udo

Kann es sein dass sich das Root PW von mysql/mariadb geändert hat?

Viele Grüße, Andreas



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz

> On 1. Oct 2017, at 19:39, Udo1  wrote:
> 
> 
> 
> Am 01.10.2017 um 19:37 schrieb Udo1:
>> Am 01.10.2017 um 19:30 schrieb Andreas Goetz:
>>> Wie sieht die Datei denn aus?
>> Komisch:
> 
> Ich überlege die Datei zu löschen und php7.0-cli neu zu installieren.

Sieht ein bisschen nach defekter SD aus??? Neuinstallation klingt auf jeden 
Fall gut.

Viele Grüße, Andreas



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1



Am 01.10.2017 um 19:37 schrieb Udo1:

Am 01.10.2017 um 19:30 schrieb Andreas Goetz:

Wie sieht die Datei denn aus?


Komisch:


Ich überlege die Datei zu löschen und php7.0-cli neu zu installieren.


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Am 01.10.2017 um 19:30 schrieb Andreas Goetz:

Wie sieht die Datei denn aus?


Komisch:

pi@volkszaehler:/etc/php/7.0/cli $ cat php.ini
[PHP]

;;;
; About php.ini   ;
;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of 
locations.

; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working direc`
>mysqlAddGeometryColumn▒DropGeometryColumnd▒▒▒d▒S▒BYYл}Yл}
8+

/S▒S▒▒S▒u!▒eS▒▒S▒&d▒!BYYл}YлS▒!
 ▒@`@`▒`
▒▒▒d▒S8▒(▒BY Yл▒Yл▒YлXNPuTTY
RS▒S▒▒S▒▒S▒▒▒S▒J▒   localhostroot
d▒SBYYл▒Yл▒▒d▒S▒BYYл▒Yл▒XX
e
P)
F   I▒▒ ▒-MIN▒Syntax:
MIN([DISTINCT] expr)

Returns the minimum value of expr. MIN() may take a string argument; in
such cases, it returns the minimum string value.
The DISTINCT keyword can be used to find the minimum of the distinct values
of expr, however, this produces the same result as omitting DISTINCT.

MIN() returns NULL if there were no matching rows.


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz
Mag sein, aber die Meldung ist ja eindeutig:

PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16

Wie sieht die Datei denn aus?

Viele Grüße, 
Andreas

> On 1. Oct 2017, at 19:29, Udo1  wrote:
> 
> Hallo Andreas,
> 
> Am 01.10.2017 um 19:07 schrieb Andreas Goetz:
>> Du hast Deine php.ini in Zeile 16 kaputt gemacht- da kann das 
>> Installationsskript nix für?
> 
> Ich habe da nichts gemacht, nur die Abhängigkeiten installiert. Dabei ist 
> kein Fehler aufgetreten.
> 
> Dann das Skript aufgerufen.
> 
> Gruß
> Udo



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Hallo Andreas,

Am 01.10.2017 um 19:07 schrieb Andreas Goetz:

Du hast Deine php.ini in Zeile 16 kaputt gemacht- da kann das 
Installationsskript nix für?


Ich habe da nichts gemacht, nur die Abhängigkeiten installiert. Dabei 
ist kein Fehler aufgetreten.


Dann das Skript aufgerufen.

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz
Hi Udo,

Du hast Deine php.ini in Zeile 16 kaputt gemacht- da kann das 
Installationsskript nix für?

Viele Grüße, Andreas

> On 1. Oct 2017, at 18:54, Udo1  wrote:
> 
> Hallo Daniel,
> 
> Am 01.10.2017 um 15:26 schrieb Daniel Lauckner:
>> Wenns so ok ist mach ich den Pull-Request ins VZ-Repo.
> 
> Leider noch nicht:
> 
> pi@volkszaehler:~ $ bash install.sh
> volkszaehler.org installation script
> 
> checking prerequisites: php: /usr/bin/php
> mysql: /usr/bin/mysql
> awk: /usr/bin/awk
> sed: /bin/sed
> grep: /bin/grep
> wget: /usr/bin/wget
> mktemp: /bin/mktemp
> mkdir: /bin/mkdir
> git: /usr/bin/git
> 
> PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
> PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
> checking php version: 7.0.19-1 PHP:  syntax error, unexpected ')' in 
> /etc/php/7.0/cli/php.ini on line 16
> >= 7.0, ok
> 
> volkszaehler setup...
> volkszaehler path? [/home/pi/volkszaehler.org]
> git clone volkszaehler.org into /home/pi/volkszaehler.org
> Cloning into '/home/pi/volkszaehler.org'...
> remote: Counting objects: 11087, done.
> remote: Compressing objects: 100% (11/11), done.
> remote: Total 11087 (delta 5), reused 9 (delta 3), pack-reused 11073
> Receiving objects: 100% (11087/11087), 7.19 MiB | 2.85 MiB/s, done.
> Resolving deltas: 100% (6085/6085), done.
> link from webserver to volkszaehler directory? [/var/www/volkszaehler.org]
> linking /var/www/volkszaehler.org to /home/pi/volkszaehler.org
> 
> checking composer...
> ~/volkszaehler.org ~
> composer not found, downloading...
> PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
> All settings correct for using Composer
> Downloading...
> 
> Composer (version 1.5.2) successfully installed to: 
> /home/pi/volkszaehler.org/composer.phar
> Use it: php composer.phar
> 
> ~
> composer: /home/pi/volkszaehler.org/composer.phar
> 
> installing dependencies...
> ~/volkszaehler.org ~
> PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
> Loading composer repositories with package information
> Updating dependencies
> Package operations: 40 installs, 0 updates, 0 removals
>  - Installing psr/log (1.0.2): Downloading (100%)
>  - Installing symfony/debug (v3.3.9): Downloading (100%)
>  - Installing symfony/polyfill-mbstring (v1.5.0): Downloading (100%)
>  - Installing symfony/console (v3.3.9): Downloading (100%)
>  - Installing doctrine/lexer (v1.0.1): Downloading (100%)
>  - Installing doctrine/inflector (v1.2.0): Downloading (100%)
>  - Installing doctrine/collections (v1.4.0): Downloading (100%)
>  - Installing doctrine/cache (v1.6.2): Downloading (100%)
>  - Installing doctrine/annotations (v1.4.0): Downloading (100%)
>  - Installing doctrine/common (v2.7.3): Downloading (100%)
>  - Installing doctrine/dbal (v2.5.13): Downloading (100%)
>  - Installing andig/dbcopy (dev-master 94a72ce): Cloning 94a72ce582 from cache
>  - Installing symfony/routing (v3.3.9): Downloading (100%)
>  - Installing symfony/http-foundation (v3.3.9): Downloading (100%)
>  - Installing react/promise (v2.5.1): Downloading (100%)
>  - Installing evenement/evenement (v2.0.0): Downloading (100%)
>  - Installing react/stream (v0.4.6): Downloading (100%)
>  - Installing react/event-loop (v0.4.3): Downloading (100%)
>  - Installing react/socket (v0.5.1): Downloading (100%)
>  - Installing psr/http-message (1.0.1): Downloading (100%)
>  - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
>  - Installing ratchet/rfc6455 (v0.2.3): Downloading (100%)
>  - Installing cboden/ratchet (v0.4): Downloading (100%)
>  - Installing react/promise-stream (v0.1.1): Downloading (100%)
>  - Installing ringcentral/psr7 (1.2.1): Downloading (100%)
>  - Installing react/http (dev-master cd15204): Cloning cd15204bd1 from cache
>  - Installing paragonie/random_compat (v2.0.11): Downloading (100%)
>  - Installing monolog/monolog (1.23.0): Downloading (100%)
>  - Installing react/promise-timer (v1.2.0): Downloading (100%)
>  - Installing react/cache (v0.4.1): Downloading (100%)
>  - Installing react/dns (v0.4.11): Downloading (100%)
>  - Installing react/socket-client (v0.5.3): Downloading (100%)
>  - Installing symfony/process (v3.3.9): Downloading (100%)
>  - Installing mkraemer/react-pcntl (v2.0.0): Downloading (100%)
>  - Installing php-pm/php-pm (dev-master 5a883f4): Cloning 5a883f48f0 from 
> cache
>  - Installing symfony/event-dispatcher (v3.3.9): Downloading (100%)
>  - Installing symfony/http-kernel (v3.3.9): Downloading (100%)
>  - Installing php-pm/httpkernel-adapter (dev-master b373b03): Cloning 
> b373b0384f from cache
>  - Installing doctrine/instantiator (1.0.5): Downloading (100%)
>  - Installing doctrine/orm (v2.5.11): Downloading (100%)
> Writing lock file
> Generating autoload files
> 
> install server-side graph generation (jpgraph, not required for frontend)? [n]
> ~
> 
> volkszaehler.org is not configured yet. creating new config from sample 
> config file.
> mysql 

Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Hallo Daniel,

Am 01.10.2017 um 15:26 schrieb Daniel Lauckner:

Wenns so ok ist mach ich den Pull-Request ins VZ-Repo.


Leider noch nicht:

pi@volkszaehler:~ $ bash install.sh
volkszaehler.org installation script

checking prerequisites: php: /usr/bin/php
 mysql: /usr/bin/mysql
 awk: /usr/bin/awk
 sed: /bin/sed
 grep: /bin/grep
 wget: /usr/bin/wget
 mktemp: /bin/mktemp
 mkdir: /bin/mkdir
 git: /usr/bin/git

PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
checking php version: 7.0.19-1 PHP:  syntax error, unexpected ')' in 
/etc/php/7.0/cli/php.ini on line 16

>= 7.0, ok

volkszaehler setup...
volkszaehler path? [/home/pi/volkszaehler.org]
git clone volkszaehler.org into /home/pi/volkszaehler.org
Cloning into '/home/pi/volkszaehler.org'...
remote: Counting objects: 11087, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 11087 (delta 5), reused 9 (delta 3), pack-reused 11073
Receiving objects: 100% (11087/11087), 7.19 MiB | 2.85 MiB/s, done.
Resolving deltas: 100% (6085/6085), done.
link from webserver to volkszaehler directory? [/var/www/volkszaehler.org]
linking /var/www/volkszaehler.org to /home/pi/volkszaehler.org

checking composer...
~/volkszaehler.org ~
composer not found, downloading...
PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
All settings correct for using Composer
Downloading...

Composer (version 1.5.2) successfully installed to: 
/home/pi/volkszaehler.org/composer.phar

Use it: php composer.phar

~
composer: /home/pi/volkszaehler.org/composer.phar

installing dependencies...
~/volkszaehler.org ~
PHP:  syntax error, unexpected ')' in /etc/php/7.0/cli/php.ini on line 16
Loading composer repositories with package information
Updating dependencies
Package operations: 40 installs, 0 updates, 0 removals
  - Installing psr/log (1.0.2): Downloading (100%)
  - Installing symfony/debug (v3.3.9): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.5.0): Downloading (100%)
  - Installing symfony/console (v3.3.9): Downloading (100%)
  - Installing doctrine/lexer (v1.0.1): Downloading (100%)
  - Installing doctrine/inflector (v1.2.0): Downloading (100%)
  - Installing doctrine/collections (v1.4.0): Downloading (100%)
  - Installing doctrine/cache (v1.6.2): Downloading (100%)
  - Installing doctrine/annotations (v1.4.0): Downloading (100%)
  - Installing doctrine/common (v2.7.3): Downloading (100%)
  - Installing doctrine/dbal (v2.5.13): Downloading (100%)
  - Installing andig/dbcopy (dev-master 94a72ce): Cloning 94a72ce582 
from cache

  - Installing symfony/routing (v3.3.9): Downloading (100%)
  - Installing symfony/http-foundation (v3.3.9): Downloading (100%)
  - Installing react/promise (v2.5.1): Downloading (100%)
  - Installing evenement/evenement (v2.0.0): Downloading (100%)
  - Installing react/stream (v0.4.6): Downloading (100%)
  - Installing react/event-loop (v0.4.3): Downloading (100%)
  - Installing react/socket (v0.5.1): Downloading (100%)
  - Installing psr/http-message (1.0.1): Downloading (100%)
  - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
  - Installing ratchet/rfc6455 (v0.2.3): Downloading (100%)
  - Installing cboden/ratchet (v0.4): Downloading (100%)
  - Installing react/promise-stream (v0.1.1): Downloading (100%)
  - Installing ringcentral/psr7 (1.2.1): Downloading (100%)
  - Installing react/http (dev-master cd15204): Cloning cd15204bd1 from 
cache

  - Installing paragonie/random_compat (v2.0.11): Downloading (100%)
  - Installing monolog/monolog (1.23.0): Downloading (100%)
  - Installing react/promise-timer (v1.2.0): Downloading (100%)
  - Installing react/cache (v0.4.1): Downloading (100%)
  - Installing react/dns (v0.4.11): Downloading (100%)
  - Installing react/socket-client (v0.5.3): Downloading (100%)
  - Installing symfony/process (v3.3.9): Downloading (100%)
  - Installing mkraemer/react-pcntl (v2.0.0): Downloading (100%)
  - Installing php-pm/php-pm (dev-master 5a883f4): Cloning 5a883f48f0 
from cache

  - Installing symfony/event-dispatcher (v3.3.9): Downloading (100%)
  - Installing symfony/http-kernel (v3.3.9): Downloading (100%)
  - Installing php-pm/httpkernel-adapter (dev-master b373b03): Cloning 
b373b0384f from cache

  - Installing doctrine/instantiator (1.0.5): Downloading (100%)
  - Installing doctrine/orm (v2.5.11): Downloading (100%)
Writing lock file
Generating autoload files

install server-side graph generation (jpgraph, not required for 
frontend)? [n]

~

volkszaehler.org is not configured yet. creating new config from sample 
config file.

mysql admin user? [root]
mysql admin password? [] raspberry
mysql database? [volkszaehler]
mysql user? [vz]
mysql password? [demo]

create volkszaehler.org database? [y]
creating database volkszaehler...
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
pi@volkszaehler:~ $

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 13:01 hat Udo1 geschrieben:
>> Hat jemand Einsprüche?

> Ich nicht, wenn die Änderungen sofort kommen, kann ich die noch ins neue
> Image einfließen lassen.

Arbeite bereits dran.


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Am 01.10.2017 um 12:55 schrieb Daniel Lauckner:

Mir war halt aufgefallen das du nur das eine Paket umbenannt hattest.


Ja, aber das reichte nicht.

P.S. php-apcu, nicht acpu.  


:) war der erste Versuch


Hat jemand Einsprüche?


Ich nicht, wenn die Änderungen sofort kommen, kann ich die noch ins neue 
Image einfließen lassen.


Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 12:50 hat Udo1 geschrieben:
>> Der alte Paketname "php-apc" war meines Wissens korrekt für PHP5.

> Für PHP 5 richtig, für PHP 7 muss es heißen php-acpu.

Mir war halt aufgefallen das du nur das eine Paket umbenannt hattest.


mfg Daniel

P.S. php-apcu, nicht acpu. ;) 



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz
Hi Udo,

> On 1. Oct 2017, at 12:43, Udo1  wrote:
> 
> Am 01.10.2017 um 12:35 schrieb Andreas Goetz:
>> Muss ich mal probieren und bei Gelegenheit ändern.
> 
> Das hauptsächliche Problem waren jetzt die fehlerhaften bzw. fehlenden 
> Abhängigkeiten.
> 
> Was mir noch nicht gefällt ist, das das Install-Skript mit sudo aufgerufen 
> werden muss und damit auch composer als root aufgerufen wird.
> Damit kommt regelmäßig die Warnmeldung von Composer.

Das stört mich seit ewigen Zeiten und liegt einfach daran dass vz unter 
/var/www installiert wird.

Ich packe das immer ins Home Verzeichnis und setze dann links.

> Klar, ist nur eine Warnung, aber auch Warnungen sollten nicht ignoriert 
> werden.
> 
> Gruß
> Udo

Viele Grüße, Andreas



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 12:43 hat Udo1 geschrieben:
> Was mir noch nicht gefällt ist, das das Install-Skript mit sudo

Ich fürchte das lässt sich nicht vermeiden.

> Damit kommt regelmäßig die Warnmeldung von Composer.

Wir hatte schonmal davon gesprochen den Standard-Pfad von VZ nach ~ zu
verlegen und von /var/www/volkszaehler/ zu verlinken um sudo (auch bei
Updates) zu umgehen.

Hat jemand Einsprüche?


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1



Am 01.10.2017 um 12:33 schrieb Daniel Lauckner:

Die Paketliste für PostgreSQL würde ich einfach analog zu der
für MySQL anpassen (statt des Hinweis).

Done. Aber ich weiß trotzdem nicht ob es tut.


Der alte Paketname "php-apc" war meines Wissens korrekt für PHP5.


Für PHP 5 richtig, für PHP 7 muss es heißen php-acpu.

Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Am 01.10.2017 um 12:35 schrieb Andreas Goetz:

Muss ich mal probieren und bei Gelegenheit ändern.



Das hauptsächliche Problem waren jetzt die fehlerhaften bzw. fehlenden 
Abhängigkeiten.


Was mir noch nicht gefällt ist, das das Install-Skript mit sudo 
aufgerufen werden muss und damit auch composer als root aufgerufen wird.

Damit kommt regelmäßig die Warnmeldung von Composer.
Klar, ist nur eine Warnung, aber auch Warnungen sollten nicht ignoriert 
werden.


Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz
Eine Lösung fällt mir noch ein: wir könnten die composer.lock Datei mit 
installieren. Diese Dokumentiert welche Module konkret installiert werden. 
Damit müsste auch composer install nicht mehr überlegen was zu tun ist sondern 
einfach die Liste abarbeiten (m.E. einfacher). Tatsächlich ist das sogar das 
vorgeschlagene Vorgehen von Composer.

Muss ich mal probieren und bei Gelegenheit ändern.

Viele Grüße, Andreas

> On 1. Oct 2017, at 12:29, Andreas Goetz  wrote:
> 
> PS.: neben —no-dev lässt sich auch noch --ignore-platform-reqs
> anfügen. Dann wird aber (leider) auch nicht mehr geprüft ob die richtige PHP 
> Version installiert ist…
> 
> Viele Grüße, Andreas
> 
>> On 1. Oct 2017, at 12:26, Andreas Goetz > > wrote:
>> 
>> Also eigentlich ist Composer da sehr deutlich:
>> 
>> ❯ composer install --no-dev
>> Loading composer repositories with package information
>> Updating dependencies
>> Your requirements could not be resolved to an installable set of packages.
>> 
>>   Problem 1
>> - The requested PHP extension ext-foo * is missing from your system. 
>> Install or enable PHP's foo extension.
>> 
>> Running update with --no-dev does not mean require-dev is ignored, it just 
>> means the packages will not be installed. If dev requirements are blocking 
>> the update you have to resolve those problems.
>> 
>> Ich weiss zwar nicht warum es das tut, aber die Botschaft ist klar…
>> 
>> Also kein Bug.
>> 
>> Viele Grüße, 
>> Andreas
>> 
>> 
>>> On 1. Oct 2017, at 11:02, Udo1 > wrote:
>>> 
>>> Hallo Andreas,
>>> 
>>> Am 01.10.2017 um 10:56 schrieb Andreas Goetz:
 composer install —no-dev
 Geht das?
>>> 
>>> 
>>> Im Skript wird composer mit der --no-dev Option aufgerufen:
>>> 
 echo
 echo "installing dependencies..."
 pushd "$vz_dir"
"$COMPOSER" install --no-dev
echo
ask "install server-side graph generation (jpgraph, not required 
 for frontend)?" n
if [ "$REPLY" == "y" ]; then
"$COMPOSER" require --update-no-dev 
 jpgraph/jpgraph:dev-master
fi
 popd
>>> 
>>> 
>>> Gruß
>>> Udo
>> 
> 



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 12:22 hat Udo1 geschrieben:
> Auf jeden Fall stimmte die Beschreibung der Installation im Wiki nicht
> mehr. Habe ich mal geändert.

Die Paketliste für PostgreSQL würde ich einfach analog zu der
für MySQL anpassen (statt des Hinweis).

Der alte Paketname "php-apc" war meines Wissens korrekt für PHP5.


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz
PS.: neben —no-dev lässt sich auch noch --ignore-platform-reqs
anfügen. Dann wird aber (leider) auch nicht mehr geprüft ob die richtige PHP 
Version installiert ist…

Viele Grüße, Andreas

> On 1. Oct 2017, at 12:26, Andreas Goetz  wrote:
> 
> Also eigentlich ist Composer da sehr deutlich:
> 
> ❯ composer install --no-dev
> Loading composer repositories with package information
> Updating dependencies
> Your requirements could not be resolved to an installable set of packages.
> 
>   Problem 1
> - The requested PHP extension ext-foo * is missing from your system. 
> Install or enable PHP's foo extension.
> 
> Running update with --no-dev does not mean require-dev is ignored, it just 
> means the packages will not be installed. If dev requirements are blocking 
> the update you have to resolve those problems.
> 
> Ich weiss zwar nicht warum es das tut, aber die Botschaft ist klar…
> 
> Also kein Bug.
> 
> Viele Grüße, 
> Andreas
> 
> 
>> On 1. Oct 2017, at 11:02, Udo1 > wrote:
>> 
>> Hallo Andreas,
>> 
>> Am 01.10.2017 um 10:56 schrieb Andreas Goetz:
>>> composer install —no-dev
>>> Geht das?
>> 
>> 
>> Im Skript wird composer mit der --no-dev Option aufgerufen:
>> 
>>> echo
>>> echo "installing dependencies..."
>>> pushd "$vz_dir"
>>>"$COMPOSER" install --no-dev
>>>echo
>>>ask "install server-side graph generation (jpgraph, not required for 
>>> frontend)?" n
>>>if [ "$REPLY" == "y" ]; then
>>>"$COMPOSER" require --update-no-dev 
>>> jpgraph/jpgraph:dev-master
>>>fi
>>> popd
>> 
>> 
>> Gruß
>> Udo
> 



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz
Also eigentlich ist Composer da sehr deutlich:

❯ composer install --no-dev
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
- The requested PHP extension ext-foo * is missing from your system. 
Install or enable PHP's foo extension.

Running update with --no-dev does not mean require-dev is ignored, it just 
means the packages will not be installed. If dev requirements are blocking the 
update you have to resolve those problems.

Ich weiss zwar nicht warum es das tut, aber die Botschaft ist klar…

Also kein Bug.

Viele Grüße, 
Andreas


> On 1. Oct 2017, at 11:02, Udo1  wrote:
> 
> Hallo Andreas,
> 
> Am 01.10.2017 um 10:56 schrieb Andreas Goetz:
>> composer install —no-dev
>> Geht das?
> 
> 
> Im Skript wird composer mit der --no-dev Option aufgerufen:
> 
>> echo
>> echo "installing dependencies..."
>> pushd "$vz_dir"
>>"$COMPOSER" install --no-dev
>>echo
>>ask "install server-side graph generation (jpgraph, not required for 
>> frontend)?" n
>>if [ "$REPLY" == "y" ]; then
>>"$COMPOSER" require --update-no-dev jpgraph/jpgraph:dev-master
>>fi
>> popd
> 
> 
> Gruß
> Udo



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Am 01.10.2017 um 10:45 schrieb Udo1:

Nachdem ich alle Abhängigkeiten auf PHP 7.0 umgeschrieben hatte:

sudo apt-get install git-core libapache2-mod-php7.0 php7.0-cli 
php7.0-mysql php-acpu mysql-server mysql-client


Image neu aufgesetzt und Abhängigkeiten erweitert:

sudo apt-get install git-core libapache2-mod-php7.0 php7.0-cli 
php7.0-mysql php-apcu mysql-server mysql-client php7.0-xml php-mbstring



Was für eine Rückmeldung bekommst du mit?
$ php --ini


pi@raspberrypi:~ $ php --ini
Configuration File (php.ini) Path: /etc/php/7.0/cli
Loaded Configuration File: /etc/php/7.0/cli/php.ini
Scan for additional .ini files in: /etc/php/7.0/cli/conf.d
Additional .ini files parsed:  /etc/php/7.0/cli/conf.d/10-mysqlnd.ini,
/etc/php/7.0/cli/conf.d/10-opcache.ini,
/etc/php/7.0/cli/conf.d/10-pdo.ini,
/etc/php/7.0/cli/conf.d/15-xml.ini,
/etc/php/7.0/cli/conf.d/20-apcu.ini,
/etc/php/7.0/cli/conf.d/20-apcu_bc.ini,
/etc/php/7.0/cli/conf.d/20-calendar.ini,
/etc/php/7.0/cli/conf.d/20-ctype.ini,
/etc/php/7.0/cli/conf.d/20-dom.ini,
/etc/php/7.0/cli/conf.d/20-exif.ini,
/etc/php/7.0/cli/conf.d/20-fileinfo.ini,
/etc/php/7.0/cli/conf.d/20-ftp.ini,
/etc/php/7.0/cli/conf.d/20-gettext.ini,
/etc/php/7.0/cli/conf.d/20-iconv.ini,
/etc/php/7.0/cli/conf.d/20-json.ini,
/etc/php/7.0/cli/conf.d/20-mbstring.ini,
/etc/php/7.0/cli/conf.d/20-mysqli.ini,
/etc/php/7.0/cli/conf.d/20-pdo_mysql.ini,
/etc/php/7.0/cli/conf.d/20-phar.ini,
/etc/php/7.0/cli/conf.d/20-posix.ini,
/etc/php/7.0/cli/conf.d/20-readline.ini,
/etc/php/7.0/cli/conf.d/20-shmop.ini,
/etc/php/7.0/cli/conf.d/20-simplexml.ini,
/etc/php/7.0/cli/conf.d/20-sockets.ini,
/etc/php/7.0/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.0/cli/conf.d/20-sysvsem.ini,
/etc/php/7.0/cli/conf.d/20-sysvshm.ini,
/etc/php/7.0/cli/conf.d/20-tokenizer.ini,
/etc/php/7.0/cli/conf.d/20-wddx.ini,
/etc/php/7.0/cli/conf.d/20-xmlreader.ini,
/etc/php/7.0/cli/conf.d/20-xmlwriter.ini,
/etc/php/7.0/cli/conf.d/20-xsl.ini


Jetzt lief die Installation per Install.sh einwandfrei durch. Fehlten 
also noch die Abhängigkeiten php7.0-xml und php-mbstring.


Auf jeden Fall stimmte die Beschreibung der Installation im Wiki nicht 
mehr. Habe ich mal geändert.


Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Daniel Lauckner
Hallo,


am Sonntag, 1. Oktober 2017 um 10:45 hat Udo1 geschrieben:
> Nach langer Liste mit gleicher Meldung, nur unterschiedlichen
> Versionsnummern:

>>  To enable extensions, verify that they are enabled in your .ini files:
>> - /etc/php/7.0/cli/php.ini
>> - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini

Was für eine Rückmeldung bekommst du mit?
$ php --ini

> Also, die Installation der Middleware schlägt mit dem jetzigen 
> Install-Skript fehl.

Wohl eher composer der da zicken macht.

Übrigens: Ich hatte neulich das Problem das composer der verfügbare
RAM ausging und auf dem Rpi-B swap aktivieren musste...


mfg Daniel



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Hallo Andreas,

Am 01.10.2017 um 10:56 schrieb Andreas Goetz:

composer install —no-dev

Geht das?



Im Skript wird composer mit der --no-dev Option aufgerufen:


echo
echo "installing dependencies..."

pushd "$vz_dir"
"$COMPOSER" install --no-dev

echo
ask "install server-side graph generation (jpgraph, not required for 
frontend)?" n
if [ "$REPLY" == "y" ]; then
"$COMPOSER" require --update-no-dev jpgraph/jpgraph:dev-master
fi
popd



Gruß
Udo


Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Andreas Goetz
Hallo Udo,

die ext-dom Meldung heißt dass ein PHP Modul fehlt. Vmtl. braucht phpunit das 
um XML Files zu lesen.

Du kannst aber einfach ohne die “dev” Requirements installieren:


composer install —no-dev

Geht das?

Viele Grüße, 
Andreas


> On 1. Oct 2017, at 10:45, Udo1  wrote:
> 
> Am 30.09.2017 um 20:15 schrieb Udo1:
>> Doch mehr Probleme:
> 
> Nachdem ich alle Abhängigkeiten auf PHP 7.0 umgeschrieben hatte:
> 
> sudo apt-get install git-core libapache2-mod-php7.0 php7.0-cli php7.0-mysql 
> php-acpu mysql-server mysql-client
> 
> und diese ohne Probleme geladen wurden, versuchte ich das Install-Skript 
> ablaufen zu lassen.
> Ergebnis:
> 
>> pi@volkszaehler:~ $ sudo bash install.sh
>> volkszaehler.org installation script
>> checking prerequisites: php: /usr/bin/php
>> mysql: /usr/bin/mysql
>> awk: /usr/bin/awk
>> sed: /bin/sed
>> grep: /bin/grep
>> wget: /usr/bin/wget
>> mktemp: /bin/mktemp
>> mkdir: /bin/mkdir
>> git: /usr/bin/git
>> checking php version: 7.0.19-1 >= 5.6, ok
>> volkszaehler setup...
>> volkszaehler path? [/var/www/volkszaehler.org]
>> git clone volkszaehler.org into /var/www/volkszaehler.org
>> Cloning into '/var/www/volkszaehler.org'...
>> remote: Counting objects: 11087, done.
>> remote: Compressing objects: 100% (11/11), done.
>> remote: Total 11087 (delta 5), reused 9 (delta 3), pack-reused 11073
>> Receiving objects: 100% (11087/11087), 7.19 MiB | 2.81 MiB/s, done.
>> Resolving deltas: 100% (6085/6085), done.
>> checking composer...
>> /var/www/volkszaehler.org /home/pi
>> composer not found, downloading...
>> All settings correct for using Composer
>> Downloading...
>> Composer (version 1.5.2) successfully installed to: 
>> /var/www/volkszaehler.org/composer.phar
>> Use it: php composer.phar
>> /home/pi
>> composer: /var/www/volkszaehler.org/composer.phar
>> installing dependencies...
>> /var/www/volkszaehler.org /home/pi
>> Do not run Composer as root/super user! See https://getcomposer.org/root for 
>> details
>> Loading composer repositories with package information
>> Updating dependencies
>> Your requirements could not be resolved to an installable set of packages.
>>  Problem 1
>>- phpunit/phpunit 5.7.x-dev requires ext-dom * -> the requested PHP 
>> extension dom is missing from your system.
> 
> Nach langer Liste mit gleicher Meldung, nur unterschiedlichen Versionsnummern:
> 
>> To enable extensions, verify that they are enabled in your .ini files:
>>- /etc/php/7.0/cli/php.ini
>>- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
>>- /etc/php/7.0/cli/conf.d/10-opcache.ini
>>- /etc/php/7.0/cli/conf.d/10-pdo.ini
>>- /etc/php/7.0/cli/conf.d/20-apcu.ini
>>- /etc/php/7.0/cli/conf.d/20-apcu_bc.ini
>>- /etc/php/7.0/cli/conf.d/20-calendar.ini
>>- /etc/php/7.0/cli/conf.d/20-ctype.ini
>>- /etc/php/7.0/cli/conf.d/20-exif.ini
>>- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
>>- /etc/php/7.0/cli/conf.d/20-ftp.ini
>>- /etc/php/7.0/cli/conf.d/20-gettext.ini
>>- /etc/php/7.0/cli/conf.d/20-iconv.ini
>>- /etc/php/7.0/cli/conf.d/20-json.ini
>>- /etc/php/7.0/cli/conf.d/20-mysqli.ini
>>- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
>>- /etc/php/7.0/cli/conf.d/20-phar.ini
>>- /etc/php/7.0/cli/conf.d/20-posix.ini
>>- /etc/php/7.0/cli/conf.d/20-readline.ini
>>- /etc/php/7.0/cli/conf.d/20-shmop.ini
>>- /etc/php/7.0/cli/conf.d/20-sockets.ini
>>- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
>>- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
>>- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
>>- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
>>  You can also run `php --ini` inside terminal to see which files are used by 
>> PHP in CLI mode.
>> Running update with --no-dev does not mean require-dev is ignored, it just 
>> means the packages will not be installed. If dev requirements are blocking 
>> the update you have to resolve those problems.
> 
> Also, die Installation der Middleware schlägt mit dem jetzigen Install-Skript 
> fehl.



Re: [vz-dev] 'php-apc' has no installation candidate

2017-10-01 Diskussionsfäden Udo1

Am 30.09.2017 um 20:15 schrieb Udo1:

Doch mehr Probleme:


Nachdem ich alle Abhängigkeiten auf PHP 7.0 umgeschrieben hatte:

sudo apt-get install git-core libapache2-mod-php7.0 php7.0-cli 
php7.0-mysql php-acpu mysql-server mysql-client


und diese ohne Probleme geladen wurden, versuchte ich das Install-Skript 
ablaufen zu lassen.

Ergebnis:


pi@volkszaehler:~ $ sudo bash install.sh
volkszaehler.org installation script

checking prerequisites: php: /usr/bin/php
 mysql: /usr/bin/mysql
 awk: /usr/bin/awk
 sed: /bin/sed
 grep: /bin/grep
 wget: /usr/bin/wget
 mktemp: /bin/mktemp
 mkdir: /bin/mkdir
 git: /usr/bin/git

checking php version: 7.0.19-1 >= 5.6, ok

volkszaehler setup...
volkszaehler path? [/var/www/volkszaehler.org]
git clone volkszaehler.org into /var/www/volkszaehler.org
Cloning into '/var/www/volkszaehler.org'...
remote: Counting objects: 11087, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 11087 (delta 5), reused 9 (delta 3), pack-reused 11073
Receiving objects: 100% (11087/11087), 7.19 MiB | 2.81 MiB/s, done.
Resolving deltas: 100% (6085/6085), done.

checking composer...
/var/www/volkszaehler.org /home/pi
composer not found, downloading...
All settings correct for using Composer
Downloading...

Composer (version 1.5.2) successfully installed to: 
/var/www/volkszaehler.org/composer.phar
Use it: php composer.phar

/home/pi
composer: /var/www/volkszaehler.org/composer.phar

installing dependencies...
/var/www/volkszaehler.org /home/pi
Do not run Composer as root/super user! See https://getcomposer.org/root for 
details
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
- phpunit/phpunit 5.7.x-dev requires ext-dom * -> the requested PHP 
extension dom is missing from your system.


Nach langer Liste mit gleicher Meldung, nur unterschiedlichen 
Versionsnummern:



 To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/20-apcu.ini
- /etc/php/7.0/cli/conf.d/20-apcu_bc.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.ini
- /etc/php/7.0/cli/conf.d/20-exif.ini
- /etc/php/7.0/cli/conf.d/20-fileinfo.ini
- /etc/php/7.0/cli/conf.d/20-ftp.ini
- /etc/php/7.0/cli/conf.d/20-gettext.ini
- /etc/php/7.0/cli/conf.d/20-iconv.ini
- /etc/php/7.0/cli/conf.d/20-json.ini
- /etc/php/7.0/cli/conf.d/20-mysqli.ini
- /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.0/cli/conf.d/20-phar.ini
- /etc/php/7.0/cli/conf.d/20-posix.ini
- /etc/php/7.0/cli/conf.d/20-readline.ini
- /etc/php/7.0/cli/conf.d/20-shmop.ini
- /etc/php/7.0/cli/conf.d/20-sockets.ini
- /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.0/cli/conf.d/20-sysvsem.ini
- /etc/php/7.0/cli/conf.d/20-sysvshm.ini
- /etc/php/7.0/cli/conf.d/20-tokenizer.ini
  You can also run `php --ini` inside terminal to see which files are used by 
PHP in CLI mode.
Running update with --no-dev does not mean require-dev is ignored, it just 
means the packages will not be installed. If dev requirements are blocking the 
update you have to resolve those problems.


Also, die Installation der Middleware schlägt mit dem jetzigen 
Install-Skript fehl.


Re: [vz-dev] 'php-apc' has no installation candidate

2017-09-30 Diskussionsfäden Udo1

Am 30.09.2017 um 19:56 schrieb Udo1:

Bei der Installation unter neuestem Stretch-Light:


Doch mehr Probleme:


pi@raspberrypi:~ $ sudo apt-get install git-core libapache2-mod-php5 php5-cli 
php5-mysql php-apcu mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-core is already the newest version (1:2.11.0-3+deb9u2).
php-apcu is already the newest version (5.1.8+4.0.11-1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php5-mysql : Depends: libmysqlclient18 but it is not installable
E: Unable to correct problems, you have held broken packages.




Re: [vz-dev] 'php-apc' has no installation candidate

2017-09-30 Diskussionsfäden Udo1

Natürlich: sudo :(

Am 30.09.2017 um 20:01 schrieb Udo1:

Am 30.09.2017 um 19:56 schrieb Udo1:

E: Package 'php-apc' has no installation candidate


apt-get update wurde vorher durchgeführt.

Hat jemand eine Idee?

Habs schon:
Muss heißen:
supo apt-get install php-apcu

Gruß
Udo



Re: [vz-dev] 'php-apc' has no installation candidate

2017-09-30 Diskussionsfäden Udo1

Am 30.09.2017 um 19:56 schrieb Udo1:

E: Package 'php-apc' has no installation candidate


apt-get update wurde vorher durchgeführt.

Hat jemand eine Idee?

Habs schon:
Muss heißen:
supo apt-get install php-apcu

Gruß
Udo


[vz-dev] 'php-apc' has no installation candidate

2017-09-30 Diskussionsfäden Udo1

Bei der Installation unter neuestem Stretch-Light:


pi@raspberrypi:~ $ sudo apt-get install git-core libapache2-mod-php5 php5-cli 
php5-mysql php-apc mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-apc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php-apc' has no installation candidate


apt-get update wurde vorher durchgeführt.

Hat jemand eine Idee?



Noch was anderes, was ich im Wiki gefunden habe:


Vollautomatisiert mit Ansible und DebOps

Siehe hierzu debops-contrib.volkszaehler.


WAS IST DAS? Erklärungen dazu im Wiki wären vielleicht angebracht.

Gruß
Udo