Debian: apt-get install php4-cgi

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
Post Reply
webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Wie kann ich mit apt-get bestimmte Optionen angeben, mit denen ich z.B. das Paket php4-cgi installieren will? (z.b. mit MySQL Unterstützung)
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

soweit ich weiß hat das php4-cgi paket keine mysql unterstützung ...
http://lufthansen.net/linux/debian/php/ ... 0_i386.deb

kannst ja mal das probieren

ABER KEINE GARTANTIE UND KEINE HAFTUNG !!!
sfeni
Posts: 341
Joined: 2002-08-15 11:35
Location: Schwabenland
 

Re: Debian: apt-get install php4-cgi

Post by sfeni »

für mysql:

Code: Select all

apt-get install php4-cgi php4-mysql
EDIT:
Du kannst auch selber nachschauen, was du alles mitinstallieren kannst:

Code: Select all

apt-cache search php4
webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Re: Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Danke LuftHansen für dein Paket, jedoch bekomme ich immer noch die Meldung:

Code: Select all

Fatal error: Call to undefined function: mysql_connect() 
Obwohl jetzt auf meiner Php-Infoseite

Code: Select all

'--with-mysql=shared,/usr' 
steht.

@Sfeni
Ist das Paket php4-mysql für die MySQL-Unterstützung für das Paket php4-cgi?
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

du musst das mysql modul hinzu laden sry habe ich vergessen ...


cat /etc/php4/cgi/php.ini|grep -i mysql
extension=mysql.so
sfeni
Posts: 341
Joined: 2002-08-15 11:35
Location: Schwabenland
 

Re: Debian: apt-get install php4-cgi

Post by sfeni »

Das Modul php4-mysql ist für das apache-modul und die cgi-version.

das mit dem "extension=mysql.so" in der php.ini hab ich auch ganz vergessen, sorry

EDIT:
Aber das frägt er ja beim installieren, ob er das gleich aktivieren soll.
webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Re: Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Danke für die Hinweise.

Ich habe extension=mysql.so jetzt in die /etc/php4/cgi/php.ini geschrieben.
Leider bekomme ich jetzt beim Aufruf von PHP Seiten einen 500 Fehler.
In der Apache error log steht: Premature end of script headers.

Aber vielleicht hat das auch etwas mit der komischen Meldung beim Apache start zu tun:

Code: Select all

ipx20028:~# /etc/init.d/apache start
Starting web server: apachePHP Warning:  Unable to load dynamic library '/usr/share/extensions/no-debug-non-zts-20020429/gd.so' - /usr/share/extensions/no-debug-non-zts-20020429/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Re: Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Wow, LuftHansen, es geht jetzt irgendwie alles doch.

Ich bin nur etwas verwundert, wo solche Zeilen am Anfang der HTML Dateien herkommen und im Browser angezeigt werden:

Code: Select all

X-Powered-By: PHP/4.1.2 Set-Cookie: PHPSESSID=0805605844ad13db9ff0883b56431135; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-type: text/html 
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

in html seiten ??
das dint http header die haben in dem html teil nix zu suchen ..

hasse mal ne test url
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

hast du mal nen link zu net phpinfo() ?
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Re: Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Leider nicht, das habe ich auch schon verzweifelt gelesen.
Ich habe noch nie einen Server gehabt, wo es so schwer war php normal zum laufen zu bekommen.
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

warum willst du den php4-cgi laufen haben ?
webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Re: Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Weil ich suphp nutze (damit die User selbst Dateien per Script löschen können) und das so weit ich weiß php als cgi braucht.
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

hast du das soweit schon gemacht ?
http://www.debianhowto.de/howtos/de/suphp/c_suphp.html

guck aber nach den ich glaube es gibt ne neuere suphp version ..
webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Re: Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Ja, das war mein erster Anlauf.
Es ging auch alles so wie es soll, jedoch hatte das PHP Binary keine MySQL Unterstztütung.

Code: Select all

 
Fatal error: Call to undefined function: mysql_connect()  
Ich weiß nicht warum bei apt-get install php4-cgi php4-mysql kann man ja nicht viel falsch machen.
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

so also ich bin jetzt weg ...
aber versuch mal das hier ...
http://deb.debianhowto.de/dists/testing ... 1_i386.deb
aber ich glaube da war kein mysql support drin obwohl er es sein sollde oder ich war blind .. :D

den deshalb habe ich mir ja mein eigene packet kompiliert und hast du suphp3.1 ? wenn nicht probier den mal ...

so dann bis morgen ..
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

also ich setze gerade auch nenen eune server auf und hatte das gleiche prob wie du bei mir lag es daran das ich das modul msql geladen habe und nicht mysql.o


extension=mysql.so


so ist's richtig ...

denke das wird es bei dir auch sein ...
webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Re: Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Ja, genau das war es, vielen Dank LuftHansen!
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

hattest du es selber gefunden ?
webdienstleistungen
Posts: 59
Joined: 2003-01-04 21:42
Location: Dreieich
Contact:
 

Re: Debian: apt-get install php4-cgi

Post by webdienstleistungen »

Durch Zufall hatte ich es selber gefunden.
lufthansen
Posts: 390
Joined: 2002-09-24 17:31
Location: NRW
 

Re: Debian: apt-get install php4-cgi

Post by lufthansen »

dann häddest du es posten sollen damit andere die das gleiche prob haben hier ne lösung finden ...
:D
naja beim nächsten mal ...
Post Reply