Fehler bei Php script / Debian 6.0 64bit

matrix1420

Cadet 2nd Year
Registriert
Feb. 2011
Beiträge
29
Hallo liebe Community .


Zu zeit bekomme ich bei meinen Debian 6.0 64bit immer eine fehlermeldung wenn ich
ein .PHP Script ausführen möchte...und zwar egal welchen.

PHP5 ist instaliert , apt-get update wie upgrade wurden auch durchgeführt


Fehlermeldung :

~# /usr/bin/php5-cgi /home/www/dax/dax.php
PHP Warning: Invalid argument supplied for foreach() in /home/www/dax/dax.php on line 7
X-Powered-By: PHP/5.3.3-7+squeeze3
Content-type: text/html.




____________

Der Script so wie die andren funktionieren auf einen Aandren Vserver problemlos
dort ist auch das gleiche betriebsystem.



Ist jemanden der Fehler bekannt?


MFg
 
Wieso verwendest du das cgi binary um n lokales Script aufzurufen?

installier dir mal php5-cli und verwende /usr/bin/php.

Dann lies dir den Quellcode durch und schau in Zeile 7 was dort steht :) Dann wird dir die Fehlermeldung vielleicht klar.
 
Danke dir , jedoch kommen wir anscheinend zu einen neuen fehler ;/


~# apt-get install php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-cli is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up lighttpd (1.4.28-2+squeeze1) ...
Starting web server: lighttpd2012-01-17 20:14:45: (network.c.358) can't bind to port: 80 Address already in use
b[failed!]b
invoke-rc.d: initscript lighttpd, action "start" failed.
dpkg: error processing lighttpd (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
lighttpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Du scheinst komplett überfordert mit der Administration von Linux-Servern zu sein ;) Überleg dir noch einmal, ob ein Root-Server das richtige für dich ist.
 
Edit : okay ohne cgi binary funktionieren die Scripts wieder


Jedoch bekomme ich bei so gut wie jeden apt-get xxxx ( upgrade z.b)...immer diese fehler meldung von oben





Edit2/ Stimmt ..bin ein kompleter amateur :P voralen wenn es um fehlermeldungen geht ^^
 
Die Fehlermeldung besagt im Wesentlichen, dass sich zwei Dienste um Port 80 streiten. In der Regel hast du zwei Webserver (z.B: Apache+Lighttpd) installiert. Einer von den beiden deinstallierst du am besten - wahrscheinlich den lighttpd, da der Andere bereits läuft.
 
Angeblich leüft nur apache , und trodzem kommt der fehler ...oder übersehe ich was?

UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Jan15 ? 00:00:00 init [2]
root 229 1 0 Jan15 ? 00:00:00 /usr/sbin/rsyslogd -c4
root 255 1 0 Jan15 ? 00:00:00 /usr/sbin/cron
www-data 4956 27784 0 10:12 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4957 27784 0 10:12 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4958 27784 0 10:12 ? 00:00:00 /usr/sbin/apache2 -k start
root 5411 1 0 Jan15 ? 00:00:05 /usr/sbin/munin-node
proftpd 5680 1 0 Jan15 ? 00:00:00 proftpd: (accepting connections)
root 6222 12312 0 20:01 ? 00:00:00 sshd: root@notty
root 6225 6222 0 20:01 ? 00:00:00 /usr/lib/openssh/sftp-server
root 6257 12312 0 20:14 ? 00:00:00 sshd: root@pts/3
root 6260 6257 0 20:14 pts/3 00:00:00 -bash
root 6389 1 0 Jan15 ? 00:00:00 sudo -u root /home/lpwi/daemon/server.php --start
root 6390 6389 0 Jan15 ? 00:00:01 /usr/bin/php -q /home/lpwi/daemon/server.php --start
root 6467 6260 0 20:38 pts/3 00:00:00 ps -fe
root 7744 1 0 Jan16 ? 00:00:00 SCREEN -AmdLS r1_U11015-voice-voice_1337_tsdns-1057 ./tsd
root 7745 7744 0 Jan16 pts/1 00:00:00 /bin/bash ./tsdns_run.sh
root 7746 7745 0 Jan16 pts/1 00:00:00 ./tsdnsserver_linux_amd64
1004 7857 1 0 Jan16 ? 00:00:00 SCREEN -AmdLS r1_U11015-voice-voice_1337-1057 ./ts3server
1004 7858 7857 0 Jan16 pts/0 00:00:00 /bin/bash ./ts3server_run.sh inifile=ts3server.ini
1004 7859 7858 0 Jan16 pts/0 00:06:04 ./ts3server_linux_amd64 inifile=ts3server.ini
root 12312 1 0 Jan16 ? 00:00:00 /usr/sbin/sshd
root 23413 1 0 Jan16 ? 00:00:00 /usr/sbin/pptpd
root 23551 1 0 Jan16 ? 00:00:00 SCREEN ruby start.rb
root 23552 23551 0 Jan16 pts/5 00:00:11 ruby start.rb
root 23559 1 0 Jan16 ? 00:00:00 SCREEN python dns.py
root 23560 23559 0 Jan16 pts/6 00:00:00 python dns.py
root 27784 1 0 04:46 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 27874 27784 0 04:46 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 27876 27784 0 04:46 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 27877 27784 0 04:46 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 27878 27784 0 04:46 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 27879 27784 0 04:46 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 27880 27784 0 04:46 ? 00:00:00 /usr/sbin/apache2 -k start
 
Klar läuft nur einer, der andere (in dem Fall lighttpd) will ja nicht weil apache bereits Port 80 belegt.

Im übrigen kann ich mich Enigma nur anschließen, üb erstmal bei dir zuhause mit ner vm - und dann wag dich wieder an ne Kiste im Netz ;)
 

Ähnliche Themen

Zurück
Oben