Autor Beitrag
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 27.12.17 13:56 
user profile iconChristian S. hat folgendes geschrieben Zum zitierten Posting springen:
Er sucht ja aber offensichtlich nicht in tag07_neu sondern in tag07 ...
die neuesten Zeilen sind die letzten 4 vom 26.12.

ausblenden Quelltext
1:
2:
3:
4:
[Tue Dec 26 11:48:00.101947 2017] [mpm_prefork:notice] [pid 623] AH00169: caught SIGTERM, shutting down
[Tue Dec 26 11:48:07.704464 2017] [mpm_prefork:notice] [pid 664] AH00163: Apache/2.4.10 (Raspbian) configured -- resuming normal operations
[Tue Dec 26 11:48:07.743319 2017] [core:notice] [pid 664] AH00094: Command line: '/usr/sbin/apache2'
[Tue Dec 26 17:58:07.590056 2017] [:error] [pid 667] [client 192.168.178.38:37151] PHP Notice:  Undefined index: licht_an in /var/www/html/tag07_neu/index.php on line 9
und zumindest da steht tag07_neu drin

Zitat:
ausblenden Quelltext
1:
PHP Notice: Undefined index: licht_an in /var/www/html/tag07_neu/index.php on line 9					
dann schau doch mal was diese Zeile zu bedeuten haben könnte

da steht nämlich:
ausblenden PHP-Quelltext
1:
2:
3:
4:
5:
 8:  <?php
 9:    if ($_POST["licht_an"]) {
10:      echo exec('python /var/www/html/tag07/07led.py');
11:    }
12:  ?>
Na was hast du offensichtlich vergessen? ;) (Und es ist gleich noch ein Fehler zu sehen - also 2 Dinge)

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)

Für diesen Beitrag haben gedankt: LINUS19
LINUS19 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 156
Erhaltene Danke: 1

Windows 10, 7
Java(Eclipse)
BeitragVerfasst: Mi 27.12.17 14:23 
Es funktioniert jetzt , aber was meinst du mit 2 Fehlern?


Zuletzt bearbeitet von LINUS19 am Mi 27.12.17 14:42, insgesamt 2-mal bearbeitet
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 27.12.17 14:25 
anders herum - Was hast du denn korrigiert

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)
LINUS19 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 156
Erhaltene Danke: 1

Windows 10, 7
Java(Eclipse)
BeitragVerfasst: Mi 27.12.17 14:43 
Das hatte ich verändert: echo exec('python /var/www/html/tag07_neu/07led.py') ;
Symbroson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 382
Erhaltene Danke: 67

Raspbian, Ubuntu, Win10
C, C++, Python, JavaScript, Lazarus, Delphi7, Casio Basic
BeitragVerfasst: Mi 27.12.17 14:56 
ok, wenn es jetzt funktioniert, ist es ja gut.
Ich habe noch vermutet, dass du die php Seite im Browser mal aufgerufen hast, aber das "licht_an" Argument vergessen hattest. Dadurch wurde vmtl dieser 'PHP Notice: Undefined index: licht_an in /var/www/html/tag07_neu/index.php on line 9' Fehler hervorgerufen

_________________
most good programmers do programming not because they expect to get paid or get adulation by the public, but because it's fun to program. (Linus Torvalds)

Für diesen Beitrag haben gedankt: LINUS19