[vz-users] Installation auf Webhoster

Viper viper at viper1.de
Sat Apr 4 17:26:08 CEST 2015


Hallo Andreas,

ich habe das Image (von der Volkszählerseite) für den Raspberry auf die
SD-Karte geschrieben und auch schon meinen Stromzähler eingebunden.

Lokal lief das alles, habe auf meinem Webspace auch PHP 5.3 ausgewählt
(weiß allerdings nicht ob es V5.3.3 ist).

Gruß

Andre

Am 04.04.2015 um 17:17 schrieb Andreas Götz:
> Hallo Viper,
>
> Lief vz schon bei Dir lokal? Hast Du den vendor Ordner mit kopiert?
> Die Anleitungen sind leider völlig veraltet...
>
> Viele Grüße, Andreas
>
>
>
>
> Am 04.04.2015 um 11:34 schrieb Viper <viper at viper1.de
> <mailto:viper at viper1.de>>:
>
>> Hallo,
>>
>> ich brauche mal wieder eure Hilfe.
>>
>> Ich will mit meiner Installation auf meinen Wedspace bei Strato
>> umziehen und bin nach dieser Anleitung vorgegangen:
>> http://wiki.volkszaehler.org/howto/installation_auf_webhoster_2
>>
>> Ich habe also auf meinem Webspace einen Unterordner "volkszaehler"
>> angelegt und alles unterhalb von: /home/pi/volkszaehler.org
>> <http://volkszaehler.org> von der SD-Karte meines Raspberry dort
>> hinein kopiert.
>>
>> Dann habe ich noch die Datenbank vom Raspberry in die Datenbank von
>> Strato importiert.
>>
>> Meine volkszaehler.conf.php auf dem Webspace sieht nun so aus:
>>
>> <?php
>>
>> ...
>>
>> Â * See Doctrine doc for details:
>> http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en#getting-a-connection:driver
>> Â */
>> $config['db']['driver']Â Â Â  Â Â Â  Â Â Â  Â Â Â  = 'pdo_mysql';
>>
>> /**
>> Â * Hostname of database server
>> Â *
>> Â * Use 'localhost' for the machine your webserver is running on.
>> Â * See Doctrine doc for details:
>> http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en
>> Â */
>> $config['db']['host']Â Â Â  Â Â Â  Â Â Â  Â Â Â  = 'rdbms.strato.de
>> <http://rdbms.strato.de>';
>>
>> /**
>> Â * Username for the database server
>> Â *
>> Â * See Doctrine doc for details:
>> http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en
>> Â */
>> $config['db']['user'] = 'U20xxxxx';
>>
>> /**
>> Â * Password for the database server
>> Â *
>> Â * See Doctrine doc for details:
>> http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en
>> Â */
>> $config['db']['password'] = 'xxxxx';
>>
>> /**
>> Â * @var string database name
>> Â *
>> Â * See Doctrine doc for details:
>> http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en
>> Â */
>> $config['db']['dbname'] = 'DB2xxxxx';
>>
>> /**
>> Â * @var database connection encoding - should not be changed
>> Â *
>> Â * See
>> http://stackoverflow.com/questions/13399912/symfony2-charset-for-queries-parameters
>> Â */
>> $config['db']['charset']Â Â Â  Â Â Â  Â Â Â  = 'UTF8';
>>
>> /**
>> Â * Administration credentials
>> Â *
>> Â * For administration tasks (used by doctrine cli and the setup script)
>> Â * the following $['db']['admin'] settings will be merged with
>> $config['db']
>> Â */
>> $config['db']['admin']['user'] = 'U2xxxxx';
>> $config['db']['admin']['password'] = 'xxxx';
>>
>> /**
>> Â * Database aggregation
>> Â *
>> Â * See misc/tools/aggregation.php for details
>> Â */
>> $config['aggregation'] = false;
>>
>> /**
>> Â * Path of the SQLite database
>> Â *
>> Â * See Doctrine doc for details:
>> http://www.doctrine-project.org/projects/dbal/2.0/docs/reference/configuration/en
>> Â */
>> //$config['db']['path']Â Â Â  Â Â Â  Â Â Â  Â Â Â  = 'volkszaehler';
>>
>> $config['lib']['doctrine'] =
>> '/home/strato/www/vi/www.viper1.de/htdocs/volkszaehler/vendor/doctrine/'
>> <http://www.viper1.de/htdocs/volkszaehler/vendor/doctrine/%27>;
>>
>> ...
>>
>> ?>
>>
>> Und meine volkszaehler.conf auf dem Webspace sieht nun so aus:
>>
>> # volkszaehler.org <http://volkszaehler.org> default Apache configuration
>>
>> // Alias /volkszaehler.org <http://volkszaehler.org>
>> /usr/share/volkszaehler.org/htdocs <http://volkszaehler.org/htdocs>
>>
>> Alias /volkszaehler.org <http://volkszaehler.org>
>> /home/strato/www/vi/www.viper1.de/htdocs/volkszaehler/
>> <http://www.viper1.de/htdocs/volkszaehler/>
>>
>> // <Directory /usr/share/volkszaehler.org <http://volkszaehler.org>>
>> <Directory /home/strato/www/vi/www.viper1.de/htdocs/volkszaehler/
>> <http://www.viper1.de/htdocs/volkszaehler/>>
>> Â Â Â  Options AllowOverride FileInfo Limit Options Indexes
>> Â Â Â  DirectoryIndex index.php
>>
>> Â Â Â  <IfModule mod_php5.c>
>> Â Â Â  Â Â Â  AddType application/x-httpd-php .php
>>
>> Â Â Â  Â Â Â  php_flag magic_quotes_gpc Off
>> Â Â Â  Â Â Â  php_flag track_vars On
>> Â Â Â  Â Â Â  php_flag register_globals Off
>> Â Â Â  Â Â Â  php_value include_path .
>> Â Â Â  </IfModule>
>>
>> </Directory>
>>
>> Aber beim Aufrufen der Seite kommt immer folgender Fehler:
>>
>> 500:Internal Server Error
>> ../middleware.php/capabilities.json:
>>
>> Unknown middleware response
>>
>> Laut der Volkszähler FAQ http://wiki.volkszaehler.org/faq würde in
>> der volkszaehler.conf.php ein Verweis auf Doctrine fehlen weshalb ich
>> dies dort nachgetragen habe:
>>
>> $config['lib']['doctrine'] =
>> '/home/strato/www/vi/www.viper1.de/htdocs/volkszaehler/vendor/doctrine/'
>> <http://www.viper1.de/htdocs/volkszaehler/vendor/doctrine/%27>;
>>
>> Leider ist der Fehler immer noch da und wenn man den Wekklickt
>> öffnet sich zwar die Seite aber sobald man einen Kanal hinzufügen
>> will kommen nur JAVA RUNTIME errors und der oben schon aufgeführte
>> 500:Internal Server Error mit unterschiedlichen ../middelware.php/xxx
>> fehlern.
>>
>> Hat einer von euch eine Idee was ich falsch gemacht habe???
>>
>> Gruß,
>>
>> Andre

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20150404/e45a1347/attachment-0001.html>


More information about the volkszaehler-users mailing list